aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-06-06 00:53:45 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-06-06 00:53:45 +0200
commit6c5bf0d347faded028e15d523c26a0d64c6d3920 (patch)
tree9dbe0229ec0d941c9efabb88571e6140d8e71951 /Makefile
parent0e5ba0843b86a78d2d98a5fbaac8d33fe041f10e (diff)
downloadbusybox-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--Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index c231092be..483842f06 100644
--- a/Makefile
+++ b/Makefile
@@ -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.
359scripts/basic/%: scripts_basic ; 359scripts/basic/%: scripts_basic ;
360 360
361# This target generates Kbuild's and Config.in's from *.c files
362PHONY += gen_build_files
363gen_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
364PHONY += applets_dir 369PHONY += applets_dir
365applets_dir: scripts_basic 370applets_dir: scripts_basic gen_build_files
366 $(Q)$(MAKE) $(build)=applets 371 $(Q)$(MAKE) $(build)=applets
367 372
368applets/%: applets_dir ; 373applets/%: applets_dir ;
@@ -377,11 +382,6 @@ ifneq ($(KBUILD_SRC),)
377 $(srctree) $(objtree) $(VERSION) $(PATCHLEVEL) 382 $(srctree) $(objtree) $(VERSION) $(PATCHLEVEL)
378endif 383endif
379 384
380# This target generates Kbuild's and Config.in's from *.c files
381PHONY += gen_build_files
382gen_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
446ifeq ($(KBUILD_EXTMOD),) 446ifeq ($(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
450PHONY += scripts 450PHONY += scripts
451scripts: gen_build_files scripts_basic include/config/MARKER 451scripts: gen_build_files scripts_basic include/config/MARKER
452 $(Q)$(MAKE) $(build)=$(@) 452 $(Q)$(MAKE) $(build)=$(@)