diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-22 22:55:11 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-22 22:55:11 +0000 |
commit | 992cb48d69edf2d39dd860e116b2c81ef0b57caa (patch) | |
tree | 1c9eba853c728b5d734506e1c66c269d96fe46ea /Makefile | |
parent | 109a761214fa3176bf09b23b4b3f2cb7da5a6971 (diff) | |
download | busybox-w32-992cb48d69edf2d39dd860e116b2c81ef0b57caa.tar.gz busybox-w32-992cb48d69edf2d39dd860e116b2c81ef0b57caa.tar.bz2 busybox-w32-992cb48d69edf2d39dd860e116b2c81ef0b57caa.zip |
- add platform.h.
- use shorter boilerplate while at it.
git-svn-id: svn://busybox.net/trunk/busybox@13494 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -381,7 +381,7 @@ docs/busybox.net/BusyBox.html: docs/busybox.pod | |||
381 | scripts/bb_mkdep: $(top_srcdir)/scripts/bb_mkdep.c | 381 | scripts/bb_mkdep: $(top_srcdir)/scripts/bb_mkdep.c |
382 | $(HOSTCC) $(HOSTCFLAGS) -o $@ $< | 382 | $(HOSTCC) $(HOSTCFLAGS) -o $@ $< |
383 | 383 | ||
384 | DEP_INCLUDES := include/config.h include/bb_config.h | 384 | DEP_INCLUDES := include/config.h include/bb_config.h include/_usage.h |
385 | 385 | ||
386 | ifeq ($(strip $(CONFIG_BBCONFIG)),y) | 386 | ifeq ($(strip $(CONFIG_BBCONFIG)),y) |
387 | DEP_INCLUDES += include/bbconfigopts.h | 387 | DEP_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 | ||
420 | include/_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 | |||
414 | clean: | 423 | clean: |
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 |