mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
build depend:Revert Make.dep intermediate ddc file
Revert "Parallelize depend file generation"
This reverts commit d5b6ec450f.
parallel depend ddc does not significantly speed up compilation,
intermediately generated .ddc files can cause problems if compilation is interrupted unexpectedly
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
@@ -246,15 +246,12 @@ endif
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile chip$(DELIM)Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile chip$(DELIM)Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
ifeq ($(BOARDMAKE),y)
|
ifeq ($(BOARDMAKE),y)
|
||||||
$(Q) $(MAKE) -C board depend
|
$(Q) $(MAKE) -C board depend
|
||||||
endif
|
endif
|
||||||
$(Q) $(MAKE) makedepfile DEPPATH="$(patsubst %,--dep-path %,$(subst :, ,$(VPATH)))"
|
$(Q) $(MKDEP) $(patsubst %,--dep-path %,$(subst :, ,$(VPATH))) \
|
||||||
|
"$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
@@ -221,15 +221,12 @@ endif
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile chip$(DELIM)Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile chip$(DELIM)Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
ifeq ($(BOARDMAKE),y)
|
ifeq ($(BOARDMAKE),y)
|
||||||
$(Q) $(MAKE) -C board depend
|
$(Q) $(MAKE) -C board depend
|
||||||
endif
|
endif
|
||||||
$(Q) $(MAKE) makedepfile DEPPATH="$(patsubst %,--dep-path %,$(subst :, ,$(VPATH)))"
|
$(Q) $(MKDEP) $(patsubst %,--dep-path %,$(subst :, ,$(VPATH))) \
|
||||||
|
"$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
@@ -112,15 +112,12 @@ export_startup: $(STARTUP_OBJS)
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile chip/Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile chip/Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
ifeq ($(BOARDMAKE),y)
|
ifeq ($(BOARDMAKE),y)
|
||||||
$(Q) $(MAKE) -C board depend
|
$(Q) $(MAKE) -C board depend
|
||||||
endif
|
endif
|
||||||
$(Q) $(MAKE) makedepfile DEPPATH="--dep-path chip --dep-path common --dep-path $(ARCH_SUBDIR)"
|
$(Q) $(MKDEP) --dep-path chip --dep-path common --dep-path $(ARCH_SUBDIR) \
|
||||||
|
"$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
@@ -124,15 +124,12 @@ export_startup: $(STARTUP_OBJS)
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile chip/Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile chip/Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
ifeq ($(BOARDMAKE),y)
|
ifeq ($(BOARDMAKE),y)
|
||||||
$(Q) $(MAKE) -C board depend
|
$(Q) $(MAKE) -C board depend
|
||||||
endif
|
endif
|
||||||
$(Q) $(MAKE) makedepfile DEPPATH="--dep-path chip --dep-path common --dep-path $(ARCH_SUBDIR)"
|
$(Q) $(MKDEP) --dep-path chip --dep-path common --dep-path $(ARCH_SUBDIR) \
|
||||||
|
"$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
@@ -110,15 +110,12 @@ export_startup: $(STARTUP_OBJS)
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile chip/Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile chip/Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
ifeq ($(BOARDMAKE),y)
|
ifeq ($(BOARDMAKE),y)
|
||||||
$(Q) $(MAKE) -C board depend
|
$(Q) $(MAKE) -C board depend
|
||||||
endif
|
endif
|
||||||
$(Q) $(MAKE) makedepfile DEPPATH="--dep-path chip --dep-path common --dep-path $(ARCH_SUBDIR)"
|
$(Q) $(MKDEP) --dep-path chip --dep-path common --dep-path $(ARCH_SUBDIR) \
|
||||||
|
"$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
@@ -113,15 +113,12 @@ export_startup: $(STARTUP_OBJS)
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile chip/Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile chip/Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
ifeq ($(BOARDMAKE),y)
|
ifeq ($(BOARDMAKE),y)
|
||||||
$(Q) $(MAKE) -C board depend
|
$(Q) $(MAKE) -C board depend
|
||||||
endif
|
endif
|
||||||
$(Q) $(MAKE) makedepfile DEPPATH="--dep-path chip --dep-path common --dep-path $(ARCH_SUBDIR)"
|
$(Q) $(MKDEP) --dep-path chip --dep-path common --dep-path $(ARCH_SUBDIR) \
|
||||||
|
"$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
@@ -152,15 +152,12 @@ endif
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile chip$(DELIM)Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile chip$(DELIM)Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
ifeq ($(BOARDMAKE),y)
|
ifeq ($(BOARDMAKE),y)
|
||||||
$(Q) $(MAKE) -C board depend
|
$(Q) $(MAKE) -C board depend
|
||||||
endif
|
endif
|
||||||
$(Q) $(MAKE) makedepfile DEPPATH="$(patsubst %,--dep-path %,$(subst :, ,$(VPATH)))"
|
$(Q) $(MKDEP) $(patsubst %,--dep-path %,$(subst :, ,$(VPATH))) \
|
||||||
|
"$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
@@ -118,15 +118,11 @@ export_startup: $(STARTUP_OBJS)
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile chip/Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile chip/Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
ifeq ($(BOARDMAKE),y)
|
ifeq ($(BOARDMAKE),y)
|
||||||
$(Q) $(MAKE) -C board depend
|
$(Q) $(MAKE) -C board depend
|
||||||
endif
|
endif
|
||||||
$(Q) $(MAKE) makedepfile DEPPATH="--dep-path chip --dep-path common"
|
$(Q) $(MKDEP) --dep-path chip --dep-path common "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
@@ -223,15 +223,12 @@ endif
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
ifeq ($(BOARDMAKE),y)
|
ifeq ($(BOARDMAKE),y)
|
||||||
$(Q) $(MAKE) -C board depend
|
$(Q) $(MAKE) -C board depend
|
||||||
endif
|
endif
|
||||||
$(Q) $(MAKE) makedepfile DEPPATH="$(patsubst %,--dep-path %,$(subst :, ,$(VPATH)))"
|
$(Q) $(MKDEP) $(patsubst %,--dep-path %,$(subst :, ,$(VPATH))) \
|
||||||
|
"$(CC)" -- $(CFLAGS) -- $(SRCS) > Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
@@ -457,10 +457,6 @@ export_startup: sim_head.o $(HOSTOBJS) nuttx-names.dat
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HOSTSRCS:.c=.ddh)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
config.h: $(TOPDIR)/include/nuttx/config.h
|
config.h: $(TOPDIR)/include/nuttx/config.h
|
||||||
@echo "CP: $<"
|
@echo "CP: $<"
|
||||||
$(Q) cp $< $@
|
$(Q) cp $< $@
|
||||||
@@ -469,7 +465,8 @@ config.h: $(TOPDIR)/include/nuttx/config.h
|
|||||||
$(Q) if [ -e board/Makefile ]; then \
|
$(Q) if [ -e board/Makefile ]; then \
|
||||||
$(MAKE) -C board depend ; \
|
$(MAKE) -C board depend ; \
|
||||||
fi
|
fi
|
||||||
$(Q) $(MAKE) makedepfile
|
$(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(ASRCS) $(CSRCS) >Make.dep
|
||||||
|
$(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(HOSTCFLAGS) -- $(HOSTSRCS) >>Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
@@ -211,15 +211,12 @@ endif
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile chip$(DELIM)Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile chip$(DELIM)Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
ifeq ($(BOARDMAKE),y)
|
ifeq ($(BOARDMAKE),y)
|
||||||
$(Q) $(MAKE) -C board depend
|
$(Q) $(MAKE) -C board depend
|
||||||
endif
|
endif
|
||||||
$(Q) $(MAKE) makedepfile DEPPATH="$(patsubst %,--dep-path %,$(subst :, ,$(VPATH)))"
|
$(Q) $(MKDEP) $(patsubst %,--dep-path %,$(subst :, ,$(VPATH))) \
|
||||||
|
"$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
@@ -136,15 +136,12 @@ export_startup: $(STARTUP_OBJS)
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile chip/Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile chip/Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
ifeq ($(BOARDMAKE),y)
|
ifeq ($(BOARDMAKE),y)
|
||||||
$(Q) $(MAKE) -C board depend
|
$(Q) $(MAKE) -C board depend
|
||||||
endif
|
endif
|
||||||
$(Q) $(MAKE) makedepfile DEPPATH="--dep-path chip --dep-path common --dep-path $(ARCH_SUBDIR)"
|
$(Q) $(MKDEP) --dep-path chip --dep-path common --dep-path $(ARCH_SUBDIR) \
|
||||||
|
"$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
@@ -153,15 +153,12 @@ export_startup: $(STARTUP_OBJS)
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile chip/Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile chip/Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
ifeq ($(BOARDMAKE),y)
|
ifeq ($(BOARDMAKE),y)
|
||||||
$(Q) $(MAKE) -C board depend
|
$(Q) $(MAKE) -C board depend
|
||||||
endif
|
endif
|
||||||
$(Q) $(MAKE) makedepfile DEPPATH="--dep-path chip --dep-path common --dep-path $(ARCH_SUBDIR)"
|
$(Q) $(MKDEP) --dep-path chip --dep-path common --dep-path $(ARCH_SUBDIR) \
|
||||||
|
"$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
@@ -202,15 +202,12 @@ export_startup: $(STARTUP_OBJS)
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_CSRC:.c=.ddc) $(HEAD_ASRC:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile chip/Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile chip/Make.defs $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
ifeq ($(BOARDMAKE),y)
|
ifeq ($(BOARDMAKE),y)
|
||||||
$(Q) $(MAKE) -C board depend
|
$(Q) $(MAKE) -C board depend
|
||||||
endif
|
endif
|
||||||
$(Q) $(MAKE) makedepfile DEPPATH="$(patsubst %,--dep-path %,$(subst :, ,$(VPATH)))"
|
$(Q) $(MKDEP) $(patsubst %,--dep-path %,$(subst :, ,$(VPATH))) \
|
||||||
|
"$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
+1
-5
@@ -56,12 +56,8 @@ $(COBJS): %$(OBJEXT): %.c
|
|||||||
$(BIN): $(OBJS)
|
$(BIN): $(OBJS)
|
||||||
$(call ARCHIVE, $@, $(OBJS))
|
$(call ARCHIVE, $@, $(OBJS))
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
$(Q) $(MAKE) makedepfile
|
$(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
+1
-5
@@ -82,12 +82,8 @@ $(COBJS): %$(OBJEXT): %.c
|
|||||||
$(BIN): $(OBJS)
|
$(BIN): $(OBJS)
|
||||||
$(call ARCHIVE, $@, $(OBJS))
|
$(call ARCHIVE, $@, $(OBJS))
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
$(Q) $(MAKE) makedepfile
|
$(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
+6
-5
@@ -64,12 +64,13 @@ $(CXXOBJS): %$(OBJEXT): %.cxx
|
|||||||
$(BIN): $(OBJS)
|
$(BIN): $(OBJS)
|
||||||
$(call ARCHIVE, $@, $(OBJS))
|
$(call ARCHIVE, $@, $(OBJS))
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(CXXSRCS:.cxx=.ddx)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
$(Q) $(MAKE) makedepfile
|
ifneq ($(SRCS),)
|
||||||
|
$(Q) $(MKDEP) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
|
endif
|
||||||
|
ifneq ($(CXXSRCS),)
|
||||||
|
$(Q) $(MKDEP) "$(CXX)" -- $(CXXFLAGS) -- $(CXXSRCS) >>Make.dep
|
||||||
|
endif
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
+1
-5
@@ -97,13 +97,9 @@ $(COBJS): %$(OBJEXT): %.c
|
|||||||
$(BIN): $(OBJS)
|
$(BIN): $(OBJS)
|
||||||
$(call ARCHIVE, $@, $(OBJS))
|
$(call ARCHIVE, $@, $(OBJS))
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
ifeq ($(CONFIG_CRYPTO),y)
|
ifeq ($(CONFIG_CRYPTO),y)
|
||||||
$(Q) $(MAKE) makedepfile
|
$(Q) $(MKDEP) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
endif
|
endif
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
|
|||||||
+1
-5
@@ -106,12 +106,8 @@ $(BIN): $(OBJS)
|
|||||||
|
|
||||||
context::
|
context::
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
$(Q) $(MAKE) makedepfile
|
$(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
+1
-5
@@ -87,12 +87,8 @@ $(BIN): $(OBJS)
|
|||||||
|
|
||||||
context::
|
context::
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
$(Q) $(MAKE) makedepfile
|
$(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
+1
-5
@@ -109,12 +109,8 @@ $(BIN): $(OBJS)
|
|||||||
|
|
||||||
mklibgraphics: $(BIN)
|
mklibgraphics: $(BIN)
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: gensources Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: gensources Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
$(Q) $(MAKE) makedepfile
|
$(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
+2
-10
@@ -178,18 +178,10 @@ endif
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, bin/Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
makekdepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, kbin/Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
$(Q) $(MAKE) makedepfile OBJPATH="bin"
|
$(Q) $(MKDEP) --obj-path bin --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >bin/Make.dep
|
||||||
ifneq ($(CONFIG_BUILD_FLAT),y)
|
ifneq ($(CONFIG_BUILD_FLAT),y)
|
||||||
$(Q) $(MAKE) makekdepfile CFLAGS="$(CFLAGS) $(KDEFINE)" OBJPATH="kbin"
|
$(Q) $(MKDEP) --obj-path kbin --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(CFLAGS) $(KDEFINE) -- $(SRCS) >kbin/Make.dep
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LIBC_ZONEINFO_ROMFS),y)
|
ifeq ($(CONFIG_LIBC_ZONEINFO_ROMFS),y)
|
||||||
$(Q) $(MAKE) -C zoneinfo depend BIN=$(BIN)
|
$(Q) $(MAKE) -C zoneinfo depend BIN=$(BIN)
|
||||||
|
|||||||
@@ -103,12 +103,8 @@ context: .tzbuilt romfs
|
|||||||
|
|
||||||
# Create dependencies
|
# Create dependencies
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
$(Q) $(MAKE) makedepfile
|
$(Q) $(MKDEP) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
@@ -61,12 +61,8 @@ $(COBJS): %$(OBJEXT): %.c
|
|||||||
$(BIN): $(OBJS)
|
$(BIN): $(OBJS)
|
||||||
$(call ARCHIVE, $@, $(OBJS))
|
$(call ARCHIVE, $@, $(OBJS))
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
$(Q) $(MAKE) makedepfile
|
$(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
+2
-10
@@ -65,18 +65,10 @@ endif
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, bin/Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
makekdepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, kbin/Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
$(Q) $(MAKE) makedepfile OBJPATH="bin"
|
$(Q) $(MKDEP) --obj-path bin --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >bin/Make.dep
|
||||||
ifneq ($(CONFIG_BUILD_FLAT),y)
|
ifneq ($(CONFIG_BUILD_FLAT),y)
|
||||||
$(Q) $(MAKE) makekdepfile CFLAGS="$(CFLAGS) $(KDEFINE)" OBJPATH="kbin"
|
$(Q) $(MKDEP) --obj-path kbin --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(CFLAGS) $(KDEFINE) -- $(SRCS) >kbin/Make.dep
|
||||||
endif
|
endif
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
|
|||||||
@@ -89,9 +89,11 @@ endef
|
|||||||
ifneq ($(filter $(ARCH),i387 amd64),) # Add ld80 directory on x86 and x64
|
ifneq ($(filter $(ARCH),i387 amd64),) # Add ld80 directory on x86 and x64
|
||||||
$(eval $(call INC_template,openlibm/openlibm/ld80))
|
$(eval $(call INC_template,openlibm/openlibm/ld80))
|
||||||
VPATH += :openlibm/openlibm/ld80
|
VPATH += :openlibm/openlibm/ld80
|
||||||
|
DEPPATH += --dep-path openlibm/openlibm/ld80
|
||||||
else ifneq ($(filter $(ARCH),aarch64),) # Add ld128 directory on aarch64
|
else ifneq ($(filter $(ARCH),aarch64),) # Add ld128 directory on aarch64
|
||||||
$(eval $(call INC_template,openlibm/openlibm/ld128))
|
$(eval $(call INC_template,openlibm/openlibm/ld128))
|
||||||
VPATH += :openlibm/openlibm/ld128
|
VPATH += :openlibm/openlibm/ld128
|
||||||
|
DEPPATH += --dep-path openlibm/openlibm/ld128
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(eval $(call INC_template,openlibm/openlibm/src,src))
|
$(eval $(call INC_template,openlibm/openlibm/src,src))
|
||||||
@@ -102,6 +104,10 @@ VPATH += :openlibm/openlibm/src
|
|||||||
VPATH += :openlibm/openlibm/$(ARCH)
|
VPATH += :openlibm/openlibm/$(ARCH)
|
||||||
VPATH += :openlibm/openlibm/bsdsrc
|
VPATH += :openlibm/openlibm/bsdsrc
|
||||||
|
|
||||||
|
DEPPATH += --dep-path openlibm/openlibm/src
|
||||||
|
DEPPATH += --dep-path openlibm/openlibm/$(ARCH)
|
||||||
|
DEPPATH += --dep-path openlibm/openlibm/bsdsrc
|
||||||
|
|
||||||
CFLAGS += ${INCDIR_PREFIX}openlibm/openlibm
|
CFLAGS += ${INCDIR_PREFIX}openlibm/openlibm
|
||||||
CFLAGS += ${INCDIR_PREFIX}openlibm/openlibm/$(ARCH)
|
CFLAGS += ${INCDIR_PREFIX}openlibm/openlibm/$(ARCH)
|
||||||
CFLAGS += ${INCDIR_PREFIX}openlibm/openlibm/src
|
CFLAGS += ${INCDIR_PREFIX}openlibm/openlibm/src
|
||||||
|
|||||||
+2
-10
@@ -220,18 +220,10 @@ endif
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, bin/Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
makekdepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, kbin/Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile gensources $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile gensources $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
$(Q) $(MAKE) makedepfile OBJPATH="bin"
|
$(Q) $(MKDEP) --obj-path bin --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >bin/Make.dep
|
||||||
ifneq ($(CONFIG_BUILD_FLAT),y)
|
ifneq ($(CONFIG_BUILD_FLAT),y)
|
||||||
$(Q) $(MAKE) makekdepfile CFLAGS="$(CFLAGS) $(KDEFINE)" OBJPATH="kbin"
|
$(Q) $(MKDEP) --obj-path kbin --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(CFLAGS) $(KDEFINE) -- $(SRCS) >kbin/Make.dep
|
||||||
endif
|
endif
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
|
|||||||
+1
-5
@@ -76,12 +76,8 @@ $(BIN): $(OBJS)
|
|||||||
|
|
||||||
context::
|
context::
|
||||||
|
|
||||||
makedepfile: $(CXXSRCS:.cxx=.ddx) $(CPPSRCS:.cpp=.ddp)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
$(Q) $(MAKE) makedepfile
|
$(Q) $(MKDEP) $(DEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
+2
-10
@@ -94,18 +94,10 @@ endif
|
|||||||
|
|
||||||
context::
|
context::
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, bin/Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
makekdepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, kbin/Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
$(Q) $(MAKE) makedepfile OBJPATH="bin"
|
$(Q) $(MKDEP) --obj-path bin --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >bin/Make.dep
|
||||||
ifneq ($(CONFIG_BUILD_FLAT),y)
|
ifneq ($(CONFIG_BUILD_FLAT),y)
|
||||||
$(Q) $(MAKE) makekdepfile CFLAGS="$(CFLAGS) $(KDEFINE)" OBJPATH="kbin"
|
$(Q) $(MKDEP) --obj-path kbin --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(CFLAGS) $(KDEFINE) -- $(SRCS) >kbin/Make.dep
|
||||||
endif
|
endif
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
|
|||||||
+1
-5
@@ -84,13 +84,9 @@ $(COBJS): %$(OBJEXT): %.c
|
|||||||
$(BIN): $(OBJS)
|
$(BIN): $(OBJS)
|
||||||
$(call ARCHIVE, $@, $(OBJS))
|
$(call ARCHIVE, $@, $(OBJS))
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
ifeq ($(CONFIG_NET),y)
|
ifeq ($(CONFIG_NET),y)
|
||||||
$(Q) $(MAKE) makedepfile
|
$(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
endif
|
endif
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
|
|||||||
+1
-5
@@ -49,12 +49,8 @@ $(BIN): $(OBJS)
|
|||||||
|
|
||||||
context::
|
context::
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
$(Q) $(MAKE) makedepfile
|
$(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
+1
-5
@@ -45,12 +45,8 @@ $(COBJS): %$(OBJEXT): %.c
|
|||||||
$(BIN): $(OBJS)
|
$(BIN): $(OBJS)
|
||||||
$(call ARCHIVE, $@, $(OBJS))
|
$(call ARCHIVE, $@, $(OBJS))
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
$(Q) $(MAKE) makedepfile
|
$(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
+1
-5
@@ -66,12 +66,8 @@ $(COBJS): %$(OBJEXT): %.c
|
|||||||
$(BIN): $(OBJS)
|
$(BIN): $(OBJS)
|
||||||
$(call ARCHIVE, $@, $(OBJS))
|
$(call ARCHIVE, $@, $(OBJS))
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
$(Q) $(MAKE) makedepfile
|
$(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
+2
-5
@@ -82,12 +82,9 @@ $(BIN3): $(WRAP_OBJS)
|
|||||||
|
|
||||||
$(SYSCALLWRAPS): .context
|
$(SYSCALLWRAPS): .context
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
$(Q) $(MAKE) makedepfile DEPPATH="$(PROXYDEPPATH) $(STUBDEPPATH) $(WRAPDEPPATH)"
|
$(Q) $(MKDEP) $(PROXYDEPPATH) $(STUBDEPPATH) $(WRAPDEPPATH) \
|
||||||
|
"$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
@@ -221,25 +221,6 @@ else
|
|||||||
MKDEP ?= $(TOPDIR)$(DELIM)tools$(DELIM)mkdeps$(HOSTEXEEXT)
|
MKDEP ?= $(TOPDIR)$(DELIM)tools$(DELIM)mkdeps$(HOSTEXEEXT)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Per-file dependency generation rules
|
|
||||||
|
|
||||||
OBJPATH ?= .
|
|
||||||
|
|
||||||
%.dds: %.S
|
|
||||||
$(Q) $(MKDEP) --obj-path $(OBJPATH) --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $< > $@
|
|
||||||
|
|
||||||
%.ddc: %.c
|
|
||||||
$(Q) $(MKDEP) --obj-path $(OBJPATH) --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $< > $@
|
|
||||||
|
|
||||||
%.ddp: %.cpp
|
|
||||||
$(Q) $(MKDEP) --obj-path $(OBJPATH) --obj-suffix $(OBJEXT) $(DEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $< > $@
|
|
||||||
|
|
||||||
%.ddx: %.cxx
|
|
||||||
$(Q) $(MKDEP) --obj-path $(OBJPATH) --obj-suffix $(OBJEXT) $(DEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $< > $@
|
|
||||||
|
|
||||||
%.ddh: %.c
|
|
||||||
$(Q) $(MKDEP) --obj-path $(OBJPATH) --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(HOSTCFLAGS) -- $< > $@
|
|
||||||
|
|
||||||
# INCDIR - Convert a list of directory paths to a list of compiler include
|
# INCDIR - Convert a list of directory paths to a list of compiler include
|
||||||
# directories
|
# directories
|
||||||
# Example: CFFLAGS += ${shell $(INCDIR) [options] "compiler" "dir1" "dir2" "dir2" ...}
|
# Example: CFFLAGS += ${shell $(INCDIR) [options] "compiler" "dir1" "dir2" "dir2" ...}
|
||||||
|
|||||||
+1
-5
@@ -43,12 +43,8 @@ $(COBJS): %$(OBJEXT): %.c
|
|||||||
$(BIN): $(OBJS)
|
$(BIN): $(OBJS)
|
||||||
$(call ARCHIVE, $@, $(OBJS))
|
$(call ARCHIVE, $@, $(OBJS))
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
$(Q) $(MAKE) makedepfile
|
$(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
+1
-5
@@ -48,12 +48,8 @@ $(COBJS): %$(OBJEXT): %.c
|
|||||||
$(BIN): $(OBJS)
|
$(BIN): $(OBJS)
|
||||||
$(call ARCHIVE, $@, $(OBJS))
|
$(call ARCHIVE, $@, $(OBJS))
|
||||||
|
|
||||||
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
||||||
$(call CATFILE, Make.dep, $^)
|
|
||||||
$(call DELFILE, $^)
|
|
||||||
|
|
||||||
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
||||||
$(Q) $(MAKE) makedepfile
|
$(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
Reference in New Issue
Block a user