diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-01-22 22:55:11 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-01-22 22:55:11 +0000 |
commit | 86f5c9906beac527f3d7966f24811b571a589e08 (patch) | |
tree | 1c9eba853c728b5d734506e1c66c269d96fe46ea /Makefile | |
parent | 2edf52643d3eb3d13f26d31f9678cf122f2063bc (diff) | |
download | busybox-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-- | 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 |