diff options
Diffstat (limited to 'nuttx/mm')
-rw-r--r-- | nuttx/mm/.gitignore | 4 | ||||
-rw-r--r-- | nuttx/mm/Makefile | 15 |
2 files changed, 15 insertions, 4 deletions
diff --git a/nuttx/mm/.gitignore b/nuttx/mm/.gitignore index 4b32ec6a3..882c76e88 100644 --- a/nuttx/mm/.gitignore +++ b/nuttx/mm/.gitignore @@ -1,4 +1,6 @@ -/Make.dep +/Make_bin.dep +/Make_ubin.dep +/Make_kbin.dep /.depend /*.asm /*.obj diff --git a/nuttx/mm/Makefile b/nuttx/mm/Makefile index 182664338..e47ac183f 100644 --- a/nuttx/mm/Makefile +++ b/nuttx/mm/Makefile @@ -100,7 +100,12 @@ endif # Dependencies .depend: Makefile $(SRCS) - $(Q) $(MKDEP) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep +ifeq ($(CONFIG_NUTTX_KERNEL),y) + $(Q) $(MKDEP) --obj-path ubin --obj-suffix $(OBJEXT) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make_ubin.dep + $(Q) $(MKDEP) --obj-path kbin --obj-suffix $(OBJEXT) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make_kbin.dep +else + $(Q) $(MKDEP) --obj-path bin --obj-suffix $(OBJEXT) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make_bin.dep +endif $(Q) touch $@ depend: .depend @@ -122,7 +127,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 |