diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-06 00:53:45 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-06 00:53:45 +0200 |
commit | 6c5bf0d347faded028e15d523c26a0d64c6d3920 (patch) | |
tree | 9dbe0229ec0d941c9efabb88571e6140d8e71951 /Makefile | |
parent | 0e5ba0843b86a78d2d98a5fbaac8d33fe041f10e (diff) | |
download | busybox-w32-6c5bf0d347faded028e15d523c26a0d64c6d3920.tar.gz busybox-w32-6c5bf0d347faded028e15d523c26a0d64c6d3920.tar.bz2 busybox-w32-6c5bf0d347faded028e15d523c26a0d64c6d3920.zip |
make it possible to have include/applets.h-esque entries in .c files
As an example, bunzip2 and bzcat is changed to use it.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -358,11 +358,16 @@ scripts_basic: | |||
358 | # To avoid any implicit rule to kick in, define an empty command. | 358 | # To avoid any implicit rule to kick in, define an empty command. |
359 | scripts/basic/%: scripts_basic ; | 359 | scripts/basic/%: scripts_basic ; |
360 | 360 | ||
361 | # This target generates Kbuild's and Config.in's from *.c files | ||
362 | PHONY += gen_build_files | ||
363 | gen_build_files: | ||
364 | $(Q)$(srctree)/scripts/gen_build_files.sh $(srctree) $(objtree) | ||
365 | |||
361 | # bbox: we have helpers in applets/ | 366 | # bbox: we have helpers in applets/ |
362 | # we depend on scripts_basic, since scripts/basic/fixdep | 367 | # we depend on scripts_basic, since scripts/basic/fixdep |
363 | # must be built before any other host prog | 368 | # must be built before any other host prog |
364 | PHONY += applets_dir | 369 | PHONY += applets_dir |
365 | applets_dir: scripts_basic | 370 | applets_dir: scripts_basic gen_build_files |
366 | $(Q)$(MAKE) $(build)=applets | 371 | $(Q)$(MAKE) $(build)=applets |
367 | 372 | ||
368 | applets/%: applets_dir ; | 373 | applets/%: applets_dir ; |
@@ -377,11 +382,6 @@ ifneq ($(KBUILD_SRC),) | |||
377 | $(srctree) $(objtree) $(VERSION) $(PATCHLEVEL) | 382 | $(srctree) $(objtree) $(VERSION) $(PATCHLEVEL) |
378 | endif | 383 | endif |
379 | 384 | ||
380 | # This target generates Kbuild's and Config.in's from *.c files | ||
381 | PHONY += gen_build_files | ||
382 | gen_build_files: | ||
383 | $(Q)$(srctree)/scripts/gen_build_files.sh $(srctree) $(objtree) | ||
384 | |||
385 | # To make sure we do not include .config for any of the *config targets | 385 | # To make sure we do not include .config for any of the *config targets |
386 | # catch them early, and hand them over to scripts/kconfig/Makefile | 386 | # catch them early, and hand them over to scripts/kconfig/Makefile |
387 | # It is allowed to specify more targets when calling make, including | 387 | # It is allowed to specify more targets when calling make, including |
@@ -446,7 +446,7 @@ else | |||
446 | ifeq ($(KBUILD_EXTMOD),) | 446 | ifeq ($(KBUILD_EXTMOD),) |
447 | # Additional helpers built in scripts/ | 447 | # Additional helpers built in scripts/ |
448 | # Carefully list dependencies so we do not try to build scripts twice | 448 | # Carefully list dependencies so we do not try to build scripts twice |
449 | # in parrallel | 449 | # in parallel |
450 | PHONY += scripts | 450 | PHONY += scripts |
451 | scripts: gen_build_files scripts_basic include/config/MARKER | 451 | scripts: gen_build_files scripts_basic include/config/MARKER |
452 | $(Q)$(MAKE) $(build)=$(@) | 452 | $(Q)$(MAKE) $(build)=$(@) |