diff options
Diffstat (limited to 'nuttx/libc/Makefile')
-rw-r--r-- | nuttx/libc/Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/nuttx/libc/Makefile b/nuttx/libc/Makefile index c79c5e7d7..72c12863b 100644 --- a/nuttx/libc/Makefile +++ b/nuttx/libc/Makefile @@ -105,7 +105,12 @@ endif # Dependencies .depend: Makefile $(SRCS) - $(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep +ifeq ($(CONFIG_NUTTX_KERNEL),y) + $(Q) $(MKDEP) --obj-path ubin --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make_ubin.dep + $(Q) $(MKDEP) --obj-path kbin --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make_kbin.dep +else + $(Q) $(MKDEP) --obj-path bin --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make_bin.dep +endif $(Q) touch $@ depend: .depend @@ -127,7 +132,11 @@ distclean: clean $(Q) $(MAKE) -C bin distclean TOPDIR=$(TOPDIR) $(Q) $(MAKE) -C ubin distclean TOPDIR=$(TOPDIR) $(Q) $(MAKE) -C kbin distclean TOPDIR=$(TOPDIR) - $(call DELFILE, Make.dep) + $(call DELFILE, Make_bin.dep) + $(call DELFILE, Make_ubin.dep) + $(call DELFILE, Make_kbin.dep) $(call DELFILE, .depend) --include Make.dep +-include Make_bin.dep +-include Make_ubin.dep +-include Make_kbin.dep |