Makerules 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. #
  2. # Licensed under LGPL v2.1, see the file COPYING.LIB in this tarball for details.
  3. #
  4. .SUFFIXES: .c .S .o .os .oS .so .a .s .i
  5. PHONY := FORCE
  6. .PHONY: dummy $(PHONY) \
  7. all check test $(clean_targets) \
  8. config dist menuconfig oldconfig release \
  9. subdirs utils help
  10. # order is important, the stripping uses STRIP_FLAGS for lib-so, but not for lib-a
  11. ifeq ($(HAVE_SHARED),y)
  12. .LIBPATTERNS: "lib%.so"
  13. libs: $(lib-so-y) $(lib-a-y)
  14. $(lib-so-y): | $(interp)
  15. else
  16. .LIBPATTERNS: "lib%.a"
  17. ifeq ($(UCLIBC_FORMAT_SHARED_FLAT),y)
  18. libs: $(lib-gdb-y)
  19. endif
  20. libs: $(lib-a-y)
  21. endif
  22. objs: all_objs
  23. shared_objs = $(libc-y:.o=.os) $(libc-shared-y) $(libc-nonshared-y) \
  24. $(libcrypt-so-y) $(libdl-so-y) \
  25. $(libintl-so-y) $(libm-so-y) $(libnsl-so-y) \
  26. $(libpthread-so-y) $(libpthread-nonshared-y) $(libthread_db-so-y) \
  27. $(libresolv-so-y) $(librt-so-y) \
  28. $(ldso-y) \
  29. $(libutil-so-y)
  30. ar_objs = $(libc-y) $(libc-static-y) $(libcrypt-a-y) \
  31. $(libdl-a-y) $(libintl-a-y) $(libm-a-y) $(libnsl-a-y) \
  32. $(libpthread-a-y) $(libthread_db-a-y) \
  33. $(libresolv-a-y) $(librt-a-y) $(libutil-a-y)
  34. ifeq ($(DOPIC),y)
  35. ar_objs := $(ar_objs:.o=.os)
  36. endif
  37. flat_objs = $(lib-gdb-y)
  38. ifeq ($(HAVE_SHARED),y)
  39. all_objs: $(sort $(shared_objs) $(ar_objs))
  40. else
  41. all_objs: $(ar_objs)
  42. endif
  43. $(shared_objs) $(ar_objs): | $(sub_headers)
  44. headers-y: $(headers-y)
  45. @true
  46. MAKEFLAGS += --no-print-directory
  47. SHELL_SET_X := set +x
  48. ifneq ($(findstring s,$(MAKEFLAGS)),)
  49. export MAKE_IS_SILENT := y
  50. SECHO := -@false
  51. DISP := sil
  52. Q := @
  53. else
  54. export MAKE_IS_SILENT := n
  55. SECHO := @echo
  56. ifneq ($(V)$(VERBOSE),)
  57. SHELL_SET_X := set -x
  58. DISP := ver
  59. Q :=
  60. else
  61. DISP := pur
  62. Q := @
  63. endif
  64. endif
  65. show_objs = $(subst ../,,$@)
  66. pur_disp_compile.c = echo " "CC $(show_objs)
  67. pur_disp_compile.i = echo " "CPP $(show_objs)
  68. pur_disp_compile.s = echo " "CC-S $(show_objs)
  69. pur_disp_compile.u = echo " "CC $(show_objs)
  70. pur_disp_compile.S = echo " "AS $(show_objs)
  71. pur_disp_compile.m = $(pur_disp_compile.c)
  72. pur_disp_compile-m = echo " "CC-m $(show_objs)
  73. pur_disp_hcompile.u= echo " "HOSTCC $(show_objs)
  74. pur_disp_hcompile.o= echo " "HOSTCC-o $(show_objs)
  75. pur_disp_strip = echo " "STRIP $(STRIP_FLAGS) $@
  76. pur_disp_t_strip = echo " "STRIP $(STRIP_FLAGS) $@
  77. pur_disp_ar = echo " "AR $(ARFLAGS) $@
  78. pur_disp_ld = echo " "LD $(1)
  79. pur_disp_ln = echo " "LN $@
  80. pur_disp_mkdir = echo " "MKDIR $@
  81. pur_disp_gen = echo " "GEN $@
  82. pur_disp_unifdef = echo " "UNIFDEF $@
  83. pur_disp_rm = echo " "CLEAN $(@:_clean=)
  84. sil_disp_compile.c = true
  85. sil_disp_compile.i = true
  86. sil_disp_compile.s = true
  87. sil_disp_compile.u = true
  88. sil_disp_compile.S = true
  89. sil_disp_compile.m = true
  90. sil_disp_compile-m = true
  91. sil_disp_hcompile.u= true
  92. sil_disp_hcompile.o= true
  93. sil_disp_strip = true
  94. sil_disp_t_strip = true
  95. sil_disp_ar = true
  96. sil_disp_ld = true
  97. sil_disp_ln = true
  98. sil_disp_mkdir = true
  99. sil_disp_gen = true
  100. sil_disp_unifdef = true
  101. sil_disp_rm = true
  102. ver_disp_compile.c = echo $(cmd_compile.c)
  103. ver_disp_compile.i = echo $(cmd_compile.i)
  104. ver_disp_compile.s = echo $(cmd_compile.s)
  105. ver_disp_compile.u = echo $(cmd_compile.u)
  106. ver_disp_compile.S = echo $(cmd_compile.S)
  107. ver_disp_compile.m = echo $(cmd_compile.m)
  108. ver_disp_compile-m = echo $(cmd_compile-m)
  109. ver_disp_hcompile.u= echo $(cmd_hcompile.u)
  110. ver_disp_hcompile.o= echo $(cmd_hcompile.o)
  111. ver_disp_strip = echo $(cmd_strip)
  112. ver_disp_t_strip = echo $(cmd_t_strip)
  113. ver_disp_ar = echo $(cmd_ar)
  114. ver_disp_ld =
  115. ver_disp_ln =
  116. ver_disp_mkdir =
  117. ver_disp_gen =
  118. ver_disp_unifdef = echo $(cmd_unifdef)
  119. ver_disp_rm =
  120. disp_compile.c = $($(DISP)_disp_compile.c)
  121. disp_compile.i = $($(DISP)_disp_compile.i)
  122. disp_compile.s = $($(DISP)_disp_compile.s)
  123. disp_compile.u = $($(DISP)_disp_compile.u)
  124. disp_compile.S = $($(DISP)_disp_compile.S)
  125. disp_compile.m = $($(DISP)_disp_compile.m)
  126. disp_compile-m = $($(DISP)_disp_compile-m)
  127. disp_hcompile.u= $($(DISP)_disp_hcompile.u)
  128. disp_hcompile.o= $($(DISP)_disp_hcompile.o)
  129. disp_strip = $($(DISP)_disp_strip)
  130. disp_t_strip = $($(DISP)_disp_t_strip)
  131. disp_ar = $($(DISP)_disp_ar)
  132. disp_ld = $($(DISP)_disp_ld)
  133. disp_ln = $($(DISP)_disp_ln)
  134. disp_mkdir = $($(DISP)_disp_mkdir)
  135. disp_gen = $($(DISP)_disp_gen)
  136. disp_unifdef = $($(DISP)_disp_unifdef)
  137. disp_rm = $($(DISP)_disp_rm)
  138. any-prereq = $(filter-out $(PHONY),$?) $(filter-out $(PHONY) $(wildcard $^),$^)
  139. # ../foo/bar/baz.ext -> foo_bar_baz.ext
  140. variablify = $(subst /,_,$(subst $(top_builddir),,$(1)))
  141. # strip the top_builddir off everything to make the *string* idempotent for -C
  142. dirify = $(subst $(top_builddir),,$(patsubst -L$(top_builddir)%,-L%,$(patsubst -I$(top_builddir)%,-I%,$(1))))
  143. # True if not identical. Neither order nor whitespace nor identical flags
  144. # matter.
  145. compare_flags = \
  146. $(strip $(filter-out $(call dirify,$(cmd_$(call variablify,$(1)))), \
  147. $(call dirify,$(cmd_$(call variablify,$(@))))) \
  148. $(filter-out $(call dirify,$(cmd_$(call variablify,$(@)))), \
  149. $(call dirify,$(cmd_$(call variablify,$(1))))))
  150. # Rebuild if any prerequisite, the used CC or flags changed.
  151. # Previously used flags are stored in the corresponding .%.dep files
  152. maybe_exec = \
  153. $(if $(strip $(compare_flags) $(any-prereq)), \
  154. @set -e; \
  155. $(disp_$(1)); \
  156. $(cmd_$(1)); \
  157. echo 'cmd_$(call variablify,$@) := $(call dirify,$(cmd_$(call variablify,$1)))' >> $(dir $@).$(notdir $@).dep)
  158. CFLAGS_gen.dep = -MT $@ -MD -MP -MF $(dir $@).$(notdir $@).dep
  159. cmd_compile.c = $(CC) -c $< -o $@ $(CFLAGS) $(ARCH_CFLAGS) \
  160. $(CFLAGS-$(suffix $@)) \
  161. $(filter-out $(CFLAGS-OMIT-$(notdir $<)),$(CFLAGS-$(notdir $(<D)))) \
  162. $(CFLAGS-$(subst $(top_srcdir),,$(dir $<))) \
  163. $(CFLAGS-$(notdir $<)) \
  164. $(CFLAGS-$(notdir $@)) \
  165. $(CFLAGS_gen.dep)
  166. cmd_compile.i = $(cmd_compile.c:-c=-E -dD $(EXTRA_CPPFLAGS))
  167. cmd_compile.s = $(cmd_compile.c:-c=-S)
  168. cmd_compile.u = $(CC) $^ $(DEPS-$(notdir $@)) -o $@ $(CFLAGS) $(CFLAGS-$(notdir $(^D))) $(CFLAGS-$(notdir $@)) $(CFLAGS_gen.dep)
  169. cmd_compile.S = $(filter-out -std=gnu99, $(cmd_compile.c)) -D__ASSEMBLER__ $(ASFLAGS) $(ARCH_ASFLAGS) $(ASFLAGS-$(suffix $@)) $(ASFLAGS-$(notdir $<)) $(ASFLAGS-$(notdir $@))
  170. cmd_compile.m = $(cmd_compile.c) -DL_$(patsubst %$(suffix $(notdir $@)),%,$(notdir $@))
  171. cmd_compile-m = $(CC) $^ -c -o $@ $(CFLAGS) $(ARCH_CFLAGS) $(CFLAGS-$(suffix $@)) $(CFLAGS-$(notdir $(@D))) $(CFLAGS-$(notdir $@))
  172. cmd_strip = $(STRIPTOOL) $(STRIP_FLAGS) $^
  173. cmd_t_strip = $(STRIPTOOL) $(STRIP_FLAGS) $@
  174. cmd_ar = $(AR) $(ARFLAGS) $@ $^
  175. define do_ln
  176. @$(disp_ln)
  177. $(Q)$(LN) -fs
  178. endef
  179. define do_rm
  180. @$(disp_rm)
  181. $(Q)$(RM)
  182. endef
  183. compile.c = @$(call maybe_exec,compile.c)
  184. compile.i = $(call maybe_exec,compile.i)
  185. compile.s = $(call maybe_exec,compile.s)
  186. compile.S = @$(call maybe_exec,compile.S)
  187. compile.m = @$(call maybe_exec,compile.m)
  188. compile-m = @$(disp_compile-m) ; $(cmd_compile-m) ; $(cmd_t_strip)
  189. do_strip = @$(disp_strip) ; $(cmd_strip)
  190. do_t_strip= @$(disp_t_strip) ; $(cmd_t_strip)
  191. do_unifdef= @$(disp_unifdef) ; $(cmd_unifdef)
  192. hcompile.u= @$(disp_hcompile.u); $(cmd_hcompile.u)
  193. hcompile.o= @$(disp_hcompile.o); $(cmd_hcompile.o)
  194. define do_ar
  195. @$(disp_ar) ; $(cmd_ar)
  196. @$(do_t_strip)
  197. endef
  198. define compile.u
  199. @$(disp_compile.u) ; $(cmd_compile.u)
  200. @$(disp_t_strip)
  201. endef
  202. cmd_hcompile.u = $(HOSTCC) $^ $(DEPS-$(notdir $@)) -o $@ $(BUILD_LDFLAGS) $(BUILD_LDFLAGS-$(notdir $(^D))) $(BUILD_LDFLAGS-$(notdir $@)) $(BUILD_CFLAGS) $(BUILD_CFLAGS-$(notdir $(^D))) $(BUILD_CFLAGS-$(notdir $@))
  203. cmd_hcompile.o = $(HOSTCC) $^ $(DEPS-$(notdir $@)) -c -o $@ $(BUILD_CFLAGS) $(BUILD_CFLAGS-$(notdir $(^D))) $(BUILD_CFLAGS-$(notdir $@))
  204. define link.so
  205. $(Q)$(INSTALL) -d $(dir $@)
  206. $(Q)$(RM) $@ $@.$(2) $(dir $@)$(1)
  207. @$(disp_ld)
  208. $(Q)$(CC) $(LDFLAGS-$(notdir $@)) -Wl,-soname=$(notdir $@).$(2) \
  209. $(NOSTDLIB_CFLAGS) -o $(dir $@)$(1) $(START_FILE-$(notdir $@)) \
  210. -Wl,--whole-archive $(firstword $^) -Wl,--no-whole-archive \
  211. $(LIBS-$(notdir $@)) $(LIBGCC) $(END_FILE-$(notdir $@))
  212. $(Q)$(LN) -sf $(1) $@.$(2)
  213. $(Q)$(LN) -sf $(1) $@
  214. endef
  215. # CRT files needed by link-flat.so
  216. LINK_FLAT_CRTS := $(top_builddir)lib/Scrt1.o $(top_builddir)lib/crti.o \
  217. $(top_builddir)lib/crtn.o
  218. # Create a shared flat library from the archive named by the first dependency.
  219. # $@ names the shared library's .gdb file, not the flat file itself.
  220. # (This is because the .gdb suffix makes the ELF file more distinctive
  221. # than the suffixless flat file.)
  222. #
  223. # Argument 1 is the shared library file -- i.e. $(@:.gdb=) -- and argument 2
  224. # is the shared library identifier. If it wasn't for $(disp_ld), we could
  225. # avoid passing $(@:.gdb=) as an argument and use $(@:.gdb=) instead of $(1).
  226. #
  227. # This is so far only used for libc, for which we want to link the entire
  228. # libgcc into the shared object.
  229. define link-flat.so
  230. $(Q)$(INSTALL) -d $(dir $@)
  231. $(Q)$(RM) $(1) $@
  232. @$(disp_ld)
  233. $(Q)$(CC) $(LDFLAGS-$(notdir $@)) $(NOSTDLIB_CFLAGS) -o $(1) \
  234. -Wl,-elf2flt -Wl,-shared-lib-id,$(2) $(top_builddir)lib/Scrt1.o \
  235. $(top_builddir)/lib/crti.o -Wl,--whole-archive $(firstword $^) \
  236. $(LIBGCC) -Wl,--no-whole-archive $(LIBS-$(notdir $@)) $(LIBGCC) \
  237. $(top_builddir)/lib/crtn.o
  238. endef
  239. define linkm.so
  240. $(Q)$(INSTALL) -d $(dir $@)
  241. $(Q)$(RM) $@ $@.$(2) $(dir $@)$(1)
  242. $(do_strip)
  243. @$(disp_ld)
  244. $(Q)$(CC) $(LDFLAGS-$(notdir $@)) -Wl,-soname=$(notdir $@).$(2) \
  245. $(NOSTDLIB_CFLAGS) -o $(dir $@)$(1) $(START_FILE-$(notdir $@)) \
  246. $^ \
  247. $(LIBS-$(notdir $@)) $(LIBGCC) $(END_FILE-$(notdir $@))
  248. $(Q)$(LN) -sf $(1) $@.$(2)
  249. $(Q)$(LN) -sf $(1) $@
  250. endef
  251. CFLAGS-.os+=$(PICFLAG)
  252. CFLAGS-.oS+=$(PICFLAG) -DSHARED
  253. %.o: %.c FORCE ; $(compile.c)
  254. %.os: %.c FORCE ; $(compile.c)
  255. %.oS: %.c FORCE ; $(compile.c)
  256. %.o: %.S FORCE ; $(compile.S)
  257. %.os: %.S FORCE ; $(compile.S)
  258. %.oS: %.S FORCE ; $(compile.S)
  259. %.o: %.s FORCE ; $(compile.S)
  260. %.os: %.s FORCE ; $(compile.S)
  261. %.oS: %.s FORCE ; $(compile.S)
  262. %.i: %.c FORCE ; $(compile.i)
  263. %.i: %.S FORCE ; $(compile.i)
  264. %.s: %.c FORCE ; $(compile.s)
  265. %.s: %.S FORCE ; $(compile.s)
  266. %.dep:
  267. $(top_builddir)lib/interp.c: | $(sub_headers)
  268. $(Q)$(INSTALL) -d $(dir $@)
  269. $(Q)echo "/* Force shared libraries to know about the correct library loader */" > $@
  270. $(Q)echo "#include <features.h>" >> $@
  271. $(Q)echo "const char __dl_ldso__[] __attribute__ ((section " \
  272. "(\".interp\"))) =\""$(SHARED_LIB_LOADER_PREFIX)/$(UCLIBC_LDSO)"\";" >> $@
  273. $(interp): $(top_builddir)lib/interp.c
  274. $(compile.c)
  275. $(Q)$(STRIPTOOL) -x -R .note -R .comment $@
  276. $(ldso):
  277. @cd $(top_builddir); $(MAKE) lib/$(patsubst %.$(MAJOR_VERSION),%,$(notdir $@))
  278. $(libc):
  279. @cd $(top_builddir); $(MAKE) lib/$(patsubst %.$(MAJOR_VERSION),%,$(notdir $@))
  280. CRT := crt1
  281. ifeq ($(HAVE_SHARED)$(UCLIBC_FORMAT_SHARED_FLAT),y)
  282. CRTS=$(top_builddir)lib/$(CRT).o $(top_builddir)lib/S$(CRT).o
  283. else
  284. CRTS=$(top_builddir)lib/$(CRT).o
  285. endif
  286. ASFLAGS-$(CRT).o := -DL_$(CRT)
  287. ASFLAGS-S$(CRT).o := $(PIEFLAG) -DL_S$(CRT)
  288. $(CRTS): $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/$(CRT).S
  289. $(Q)$(INSTALL) -d $(dir $@)
  290. $(compile.S)
  291. $(Q)$(STRIPTOOL) -x -R .note -R .comment $@
  292. ifeq ($(UCLIBC_CTOR_DTOR),y)
  293. CTOR_TARGETS=$(top_builddir)lib/crti.o $(top_builddir)lib/crtn.o
  294. else
  295. CTOR_TARGETS:=
  296. endif
  297. ifeq ($(UCLIBC_FORMAT_FDPIC_ELF),y)
  298. CRTRELOC=$(top_builddir)lib/crtreloc.o
  299. $(CRTRELOC): $(top_builddir)lib/%.o : $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/%.c
  300. $(Q)$(INSTALL) -d $(dir $@)
  301. $(compile.c)
  302. endif
  303. ifneq ($(wildcard $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/initfini.c),)
  304. CFLAGS-initfini.s := -S -g0 $(PICFLAG) -fno-inline-functions -finhibit-size-directive
  305. $(top_builddir)lib/initfini.s: $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/initfini.c
  306. $(compile.c)
  307. $(top_builddir)lib/defs.h: $(top_builddir)lib/initfini.s
  308. $(Q)sed -n -e '/@TESTS_BEGIN/,/@TESTS_END/p' $< | \
  309. gawk -f $(top_srcdir)extra/scripts/defs.awk > $@.tmp
  310. $(Q)mv $@.tmp $@
  311. $(top_builddir)lib/crti.S: $(top_builddir)lib/initfini.s $(top_builddir)lib/defs.h
  312. $(Q)sed -n -e '1,/@HEADER_ENDS/p' \
  313. -e '/@_.*_PROLOG_BEGINS/,/@_.*_PROLOG_ENDS/p' \
  314. -e '/@TRAILER_BEGINS/,$$p' $< > $@
  315. $(top_builddir)lib/crtn.S: $(top_builddir)lib/initfini.s
  316. $(Q)sed -n -e '1,/@HEADER_ENDS/p' \
  317. -e '/@_.*_EPILOG_BEGINS/,/@_.*_EPILOG_ENDS/p' \
  318. -e '/@TRAILER_BEGINS/,$$p' $< > $@
  319. $(CTOR_TARGETS): $(top_builddir)lib/%.o : $(top_builddir)lib/%.S
  320. $(Q)$(INSTALL) -d $(dir $@)
  321. $(compile.S) $(PICFLAG) $(SSP_DISABLE_FLAGS)
  322. else
  323. $(CTOR_TARGETS): $(top_builddir)lib/%.o : $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/%.S
  324. $(Q)$(INSTALL) -d $(dir $@)
  325. $(compile.S) $(PICFLAG) $(SSP_DISABLE_FLAGS)
  326. endif
  327. #ifeq ($(TARGET_ARCH),nios)
  328. #CRTS_COMPAT := $(top_builddir)lib/crt0.o
  329. #$(CRTS_COMPAT):
  330. # ln -fs crt1.o $(top_builddir)lib/crt0.o
  331. #else
  332. CRTS_COMPAT :=
  333. #endif
  334. $(crt-y): $(CRTS) $(CTOR_TARGETS) $(CRTS_COMPAT) $(CRTRELOC)
  335. $(CRTS) $(CTOR_TARGETS) $(CRTS_COMPAT) $(CRTRELOC): | headers
  336. $(top_builddir)lib/$(NONSHARED_LIBNAME): $(libc-nonshared-y)
  337. $(Q)$(INSTALL) -d $(dir $@)
  338. $(Q)$(RM) $@
  339. $(do_ar)
  340. $(top_builddir)lib/libpthread_nonshared.a: $(libpthread-nonshared-y)
  341. $(Q)$(INSTALL) -d $(dir $@)
  342. $(Q)$(RM) $@
  343. $(do_ar)
  344. files.dep := $(libc-a-y) $(libc-so-y) $(libc-nonshared-y) \
  345. $(libm-a-y) $(libm-so-y) \
  346. $(libpthread-a-y) $(libpthread-so-y) $(libpthread-nonshared-y) \
  347. $(libthread_db-a-y) $(libthread_db-so-y) \
  348. $(librt-a-y) $(librt-so-y) $(libresolv-a-y) $(libresolv-so-y) \
  349. $(libcrypt-a-y) $(libcrypt-so-y) $(libutil-a-y) $(libutil-so-y) \
  350. $(libnsl-a-y) $(libnsl-so-y) $(ldso-y) $(libdl-a-y) $(libdl-so-y)
  351. .depends.dep := \
  352. $(patsubst %.o,%.o.dep,$(filter %.o,$(files.dep))) \
  353. $(patsubst %.os,%.os.dep,$(filter %.os,$(files.dep))) \
  354. $(patsubst %.oS,%.oS.dep,$(filter %.oS,$(files.dep)))
  355. # Oh, and prepend a dot to the basename so i don't have to change my habit of
  356. # calling 'size thefile.o*'
  357. .depends.dep := $(foreach f,$(.depends.dep),$(dir $(f)).$(notdir $(f)))
  358. .depends.dep := $(wildcard $(.depends.dep))
  359. FORCE:
  360. clean: objclean-y headers_clean-y
  361. realclean: clean
  362. $(Q)$(RM) $(.depends.dep)
  363. objclean-y: $(objclean-y)
  364. headers_clean-y: $(headers_clean-y)
  365. ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
  366. ifneq ($(strip $(.depends.dep)),)
  367. .NOEXPORT:
  368. -include $(.depends.dep)
  369. endif
  370. endif
  371. # vi: ft=make :