aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-22 22:55:11 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-22 22:55:11 +0000
commit86f5c9906beac527f3d7966f24811b571a589e08 (patch)
tree1c9eba853c728b5d734506e1c66c269d96fe46ea /Makefile
parent2edf52643d3eb3d13f26d31f9678cf122f2063bc (diff)
downloadbusybox-w32-86f5c9906beac527f3d7966f24811b571a589e08.tar.gz
busybox-w32-86f5c9906beac527f3d7966f24811b571a589e08.tar.bz2
busybox-w32-86f5c9906beac527f3d7966f24811b571a589e08.zip
- add platform.h.
- use shorter boilerplate while at it.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b71803d74..267f6b7b6 100644
--- a/Makefile
+++ b/Makefile
@@ -381,7 +381,7 @@ docs/busybox.net/BusyBox.html: docs/busybox.pod
381scripts/bb_mkdep: $(top_srcdir)/scripts/bb_mkdep.c 381scripts/bb_mkdep: $(top_srcdir)/scripts/bb_mkdep.c
382 $(HOSTCC) $(HOSTCFLAGS) -o $@ $< 382 $(HOSTCC) $(HOSTCFLAGS) -o $@ $<
383 383
384DEP_INCLUDES := include/config.h include/bb_config.h 384DEP_INCLUDES := include/config.h include/bb_config.h include/_usage.h
385 385
386ifeq ($(strip $(CONFIG_BBCONFIG)),y) 386ifeq ($(strip $(CONFIG_BBCONFIG)),y)
387DEP_INCLUDES += include/bbconfigopts.h 387DEP_INCLUDES += include/bbconfigopts.h
@@ -411,13 +411,22 @@ include/bb_config.h: include/config.h
411 < $< >> $@ 411 < $< >> $@
412 @echo "#endif" >> $@ 412 @echo "#endif" >> $@
413 413
414# Create macros for usage.h, e.g.:
415#if ENABLE_HAVE_DOT_CONFIG
416#define USAGE_HAVE_DOT_CONFIG(a) a
417#else
418#define USAGE_HAVE_DOT_CONFIG(a)
419#endif
420include/_usage.h: .config
421 awk '/CONFIG|BB_APPLET/{gsub("#[[:space:]]*|=y|.*CONFIG_|.*BB_APPLET_","");if(!/=/){print("#if ENABLE_"$$1"\n#define USAGE_"$$1"(a) a\n#else\n#define USAGE_"$$1"(a)\n#endif");}}' $(<) > $(@)
422
414clean: 423clean:
415 - $(MAKE) -C scripts/config $@ 424 - $(MAKE) -C scripts/config $@
416 - $(RM_F) docs/busybox.dvi docs/busybox.ps \ 425 - $(RM_F) docs/busybox.dvi docs/busybox.ps \
417 docs/busybox.pod docs/busybox.net/busybox.html \ 426 docs/busybox.pod docs/busybox.net/busybox.html \
418 docs/busybox pod2htm* *.gdb *.elf *~ core .*config.log \ 427 docs/busybox pod2htm* *.gdb *.elf *~ core .*config.log \
419 docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html \ 428 docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html \
420 docs/busybox.net/BusyBox.html busybox.links libbb/loop.h \ 429 docs/busybox.net/BusyBox.html busybox.links include/_usage.h \
421 $(DO_INSTALL_LIBS) $(LIBBUSYBOX_SONAME) \ 430 $(DO_INSTALL_LIBS) $(LIBBUSYBOX_SONAME) \
422 .config.old busybox 431 .config.old busybox
423 - rm -rf _install testsuite/links 432 - rm -rf _install testsuite/links