Browse Source

There is no need to have a separate 'Makefile.in' file in the
general case, therefore, combine the toplevel Makefile options
such as setting TARGETS into the per-package *.mk file

Eric Andersen 20 years ago
parent
commit
d06645d8ed
100 changed files with 422 additions and 194 deletions
  1. 7 7
      Makefile
  2. 31 32
      docs/buildroot-documentation.html
  3. 0 3
      package/autoconf/Makefile.in
  4. 8 0
      package/autoconf/autoconf.mk
  5. 0 3
      package/automake/Makefile.in
  6. 8 0
      package/automake/automake.mk
  7. 0 3
      package/bash/Makefile.in
  8. 8 0
      package/bash/bash.mk
  9. 0 3
      package/berkeleydb/Makefile.in
  10. 8 0
      package/berkeleydb/berkeleydb.mk
  11. 0 3
      package/bison/Makefile.in
  12. 8 0
      package/bison/bison.mk
  13. 0 3
      package/boa/Makefile.in
  14. 8 0
      package/boa/boa.mk
  15. 0 3
      package/bridge/Makefile.in
  16. 8 0
      package/bridge/bridge.mk
  17. 0 3
      package/busybox/Makefile.in
  18. 8 0
      package/busybox/busybox.mk
  19. 0 3
      package/bzip2/Makefile.in
  20. 8 0
      package/bzip2/bzip2.mk
  21. 0 8
      package/config/Config.in
  22. 0 3
      package/config/Makefile.in
  23. 0 3
      package/coreutils/Makefile.in
  24. 8 0
      package/coreutils/coreutils.mk
  25. 0 3
      package/customize/Makefile.in
  26. 8 0
      package/customize/customize.mk
  27. 0 3
      package/dhcp_relay/Makefile.in
  28. 8 0
      package/dhcp_relay/dhcp_relay.mk
  29. 0 3
      package/diffutils/Makefile.in
  30. 8 0
      package/diffutils/diffutils.mk
  31. 0 3
      package/distcc/Makefile.in
  32. 8 0
      package/distcc/distcc.mk
  33. 0 3
      package/dnsmasq/Makefile.in
  34. 8 0
      package/dnsmasq/dnsmasq.mk
  35. 0 3
      package/dropbear_sshd/Makefile.in
  36. 8 0
      package/dropbear_sshd/dropbear_sshd.mk
  37. 0 3
      package/ed/Makefile.in
  38. 8 0
      package/ed/ed.mk
  39. 0 3
      package/fakeroot/Makefile.in
  40. 8 0
      package/fakeroot/fakeroot.mk
  41. 0 3
      package/file/Makefile.in
  42. 8 0
      package/file/file.mk
  43. 0 3
      package/findutils/Makefile.in
  44. 8 0
      package/findutils/findutils.mk
  45. 0 3
      package/flex/Makefile.in
  46. 8 0
      package/flex/flex.mk
  47. 0 3
      package/gawk/Makefile.in
  48. 8 0
      package/gawk/gawk.mk
  49. 0 3
      package/gettext/Makefile.in
  50. 8 0
      package/gettext/gettext.mk
  51. 0 3
      package/grep/Makefile.in
  52. 8 0
      package/grep/grep.mk
  53. 0 3
      package/gzip/Makefile.in
  54. 8 0
      package/gzip/gzip.mk
  55. 0 3
      package/hostap/Makefile.in
  56. 8 0
      package/hostap/hostap.mk
  57. 0 3
      package/hotplug/Makefile.in
  58. 8 0
      package/hotplug/hotplug.mk
  59. 0 3
      package/iproute2/Makefile.in
  60. 8 0
      package/iproute2/iproute2.mk
  61. 0 3
      package/iptables/Makefile.in
  62. 8 0
      package/iptables/iptables.mk
  63. 0 3
      package/jpeg/Makefile.in
  64. 8 0
      package/jpeg/jpeg.mk
  65. 0 3
      package/less/Makefile.in
  66. 8 0
      package/less/less.mk
  67. 0 3
      package/libfloat/Makefile.in
  68. 8 0
      package/libfloat/libfloat.mk
  69. 0 3
      package/libglib12/Makefile.in
  70. 8 0
      package/libglib12/libglib12.mk
  71. 0 3
      package/libmad/Makefile.in
  72. 8 0
      package/libmad/libmad.mk
  73. 0 3
      package/libpcap/Makefile.in
  74. 8 0
      package/libpcap/libpcap.mk
  75. 0 3
      package/libpng/Makefile.in
  76. 8 0
      package/libpng/libpng.mk
  77. 0 3
      package/libtool/Makefile.in
  78. 8 0
      package/libtool/libtool.mk
  79. 0 3
      package/links/Makefile.in
  80. 8 0
      package/links/links.mk
  81. 0 3
      package/linux/Makefile.in
  82. 8 0
      package/linux/linux.mk
  83. 0 3
      package/lrzsz/Makefile.in
  84. 8 0
      package/lrzsz/lrzsz.mk
  85. 0 3
      package/ltp-testsuite/Makefile.in
  86. 8 0
      package/ltp-testsuite/ltp-testsuite.mk
  87. 0 3
      package/ltrace/Makefile.in
  88. 8 0
      package/ltrace/ltrace.mk
  89. 0 3
      package/lzo/Makefile.in
  90. 8 0
      package/lzo/lzo.mk
  91. 0 3
      package/m4/Makefile.in
  92. 8 0
      package/m4/m4.mk
  93. 0 3
      package/make/Makefile.in
  94. 8 0
      package/make/make.mk
  95. 0 3
      package/microcom/Makefile.in
  96. 8 0
      package/microcom/microcom.mk
  97. 0 3
      package/microwin/Makefile.in
  98. 8 0
      package/microwin/microwin.mk
  99. 0 3
      package/mkdosfs/Makefile.in
  100. 8 0
      package/mkdosfs/mkdosfs.mk

+ 7 - 7
Makefile

@@ -51,11 +51,8 @@ ifeq ($(strip $(BR2_HAVE_DOT_CONFIG)),y)
 ##############################################################
 TARGETS:=host-sed kernel-headers uclibc-configured binutils gcc uclibc-target-utils
 include toolchain/Makefile.in
-include toolchain/*/Makefile.in
 include package/Makefile.in
-include package/*/Makefile.in
 include target/Makefile.in
-include target/*/Makefile.in
 
 #############################################################
 #
@@ -71,6 +68,13 @@ all:   world
 # In this section, we need .config
 include .config.cmd
 
+# We also need the various per-package makefiles, which also add
+# each selected package to TARGETS if that package was selected
+# in the .config file.
+include toolchain/*/*.mk
+include package/*/*.mk
+include target/*/*.mk
+
 TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
 TARGETS_SOURCE:=$(patsubst %,%-source,$(TARGETS))
 TARGETS_DIRCLEAN:=$(patsubst %,%-dirclean,$(TARGETS))
@@ -81,10 +85,6 @@ world: $(DL_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) $(TARGETS)
 	$(TARGETS_CLEAN) $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) \
 	$(DL_DIR) $(BUILD_DIR) $(TOOL_BUILD_DIR) $(STAGING_DIR)
 
-include toolchain/*/*.mk
-include package/*/*.mk
-include target/*/*.mk
-
 #############################################################
 #
 # staging and target directories do NOT list these as

+ 31 - 32
docs/buildroot-documentation.html

@@ -292,7 +292,7 @@
       skeleton.</li>
     </ul>
 
-    <p>Each directory contains at least 3 files :</p>
+    <p>Each directory contains at least 2 files :</p>
 
     <ul>
       <li><code>something.mk</code> is the Makefile that downloads, configures,
@@ -302,10 +302,6 @@
       description file. It describes the option related to the current
       software.</li>
 
-      <li><code>Makefile.in</code> is a part of Makefile that sets various
-      variables according to the configuration given through the configuration
-      tool. For most tools it simply involves adding the name of the tool to
-      the <code>TARGETS</code> variable.</li>
     </ul>
 
     <p>The main Makefile do the job through the following steps (once the
@@ -343,9 +339,10 @@
       <code>target/default/target_skeleton</code> and then removes useless
       <code>CVS/</code> directories.</li>
 
-      <li>Make the <code>TARGETS</code> dependency. This is where all the job
-      is done : all <code>Makefile.in</code> files "subscribe" targets into
-      this global variable, so that the needed tools gets compiled.</li>
+      <li>Add the <code>TARGETS</code> dependency. This should generally check
+      if the configuration option for this package is enabled, and if so then
+      "subscribe" this package to be compiled by adding it to the TARGETS
+      global variable.</li>
     </ol>
 
     <h2><a name="using_toolchain" id="using_toolchain"></a>Using the
@@ -441,26 +438,6 @@ config BR2_PACKAGE_FOO
     <p>Of course, you can add other options to configure particular
     things in your software.</p>
 
-    <h3><code>Makefile.in</code> file</h3>
-
-    <p>Then, write a <code>Makefile.in</code> file. Basically, this is
-    a very short <i>Makefile</i> that adds the name of the software to
-    the list of <code>TARGETS</code> that Buildroot will generate. In
-    fact, the name of the software is the the identifier of the target
-    inside the real <i>Makefile</i> that will do everything (download,
-    compile, install), and that we study below. Back to
-    <code>Makefile.in</code>, here is an example :</p>
-
-<pre>
-ifeq ($(strip $(BR2_PACKAGE_FOO)),y)
-TARGETS+=foo
-endif
-</pre>
-
-   <p>As you can see, this short <i>Makefile</i> simply adds the
-   target <code>foo</code> to the list of targets handled by Buildroot
-   if software <i>foo</i> was selected using the configuration tool.</p>
-
    <h3>The real <i>Makefile</i></h3>
 
    <p>Finally, here's the hardest part. Create a file named
@@ -520,6 +497,15 @@ endif
     48  foo-dirclean:
     49          rm -rf $(FOO_DIR)
     50
+    51 #############################################################
+    52 #
+    53 # Toplevel Makefile options
+    54 #
+    55 #############################################################
+    56 ifeq ($(strip $(BR2_PACKAGE_FOO)),y)
+    57 TARGETS+=foo
+    58 endif
+
 </pre>
 
     <p>First of all, this <i>Makefile</i> example works for a single
@@ -602,11 +588,13 @@ endif
     removed to save space.</p>
 
     <p>Line 40 defines the main target of the software, the one
-    referenced in the <code>Makefile.in</code> file. This targets
-    should first of all depends on the dependecies of the software (in
-    our example, <i>uclibc</i> and <i>ncurses</i>), and then to the
+    that will be eventually be used by the top level
+    <code>Makefile</code> to download, compile, and then install
+    this package. This target should first of all depends on all
+    needed dependecies of the software (in our example,
+    <i>uclibc</i> and <i>ncurses</i>), and also depend on the
     final binary. This last dependency will call all previous
-    dependencies in the right order. </p>
+    dependencies in the correct order. </p>
 
     <p>Line 42 defines a simple target that only downloads the code
     source. This is not used during normal operation of Buildroot, but
@@ -619,6 +607,17 @@ endif
     directory in which the software was uncompressed, configured and
     compiled.</p>
 
+    <p>Lines 51-58 adds the target <code>foo</code> to the list
+    of targets to be compiled by Buildroot by first checking if
+    the configuration option for this package has been enabled
+    using the configuration tool, and if so then "subscribes"
+    this package to be compiled by adding it to the TARGETS
+    global variable.  The name added to the TARGETS global
+    variable is the name of this package's target, as defined on
+    line 40, which is used by Buildroot to download, compile, and
+    then install this package.</p>
+
+
     <h3>Conclusion</h3>
 
     <p>As you can see, adding a software to buildroot is simply a

+ 0 - 3
package/autoconf/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_AUTOCONF)),y)
-TARGETS+=autoconf
-endif

+ 8 - 0
package/autoconf/autoconf.mk

@@ -70,3 +70,11 @@ autoconf-clean:
 autoconf-dirclean:
 	rm -rf $(AUTOCONF_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_AUTOCONF)),y)
+TARGETS+=autoconf
+endif

+ 0 - 3
package/automake/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_AUTOMAKE)),y)
-TARGETS+=automake
-endif

+ 8 - 0
package/automake/automake.mk

@@ -74,3 +74,11 @@ automake-clean:
 automake-dirclean:
 	rm -rf $(AUTOMAKE_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_AUTOMAKE)),y)
+TARGETS+=automake
+endif

+ 0 - 3
package/bash/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_BASH)),y)
-TARGETS+=bash
-endif

+ 8 - 0
package/bash/bash.mk

@@ -78,3 +78,11 @@ bash-clean:
 bash-dirclean:
 	rm -rf $(BASH_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_BASH)),y)
+TARGETS+=bash
+endif

+ 0 - 3
package/berkeleydb/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_BERKELEYDB)),y)
-TARGETS+=berkeleydb
-endif

+ 8 - 0
package/berkeleydb/berkeleydb.mk

@@ -92,3 +92,11 @@ berkeleydb-dirclean:
 
 berkeleydb: uclibc $(TARGET_DIR)/lib/$(DB_SHARLIB)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_BERKELEYDB)),y)
+TARGETS+=berkeleydb
+endif

+ 0 - 3
package/bison/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_BISON)),y)
-TARGETS+=bison
-endif

+ 8 - 0
package/bison/bison.mk

@@ -60,3 +60,11 @@ bison-clean:
 bison-dirclean:
 	rm -rf $(BISON_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_BISON)),y)
+TARGETS+=bison
+endif

+ 0 - 3
package/boa/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_BOA)),y)
-TARGETS+=boa
-endif

+ 8 - 0
package/boa/boa.mk

@@ -74,3 +74,11 @@ boa-clean:
 boa-dirclean:
 	rm -rf $(BOA_DIR) $(BOA_WORKDIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_BOA)),y)
+TARGETS+=boa
+endif

+ 0 - 3
package/bridge/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_BRIDGE)),y)
-TARGETS+=bridge
-endif

+ 8 - 0
package/bridge/bridge.mk

@@ -59,3 +59,11 @@ bridge-clean:
 
 bridge-dirclean:
 	rm -rf $(BRIDGE_BUILD_DIR)
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_BRIDGE)),y)
+TARGETS+=bridge
+endif

+ 0 - 3
package/busybox/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_BUSYBOX)),y)
-TARGETS+=busybox
-endif

+ 8 - 0
package/busybox/busybox.mk

@@ -60,3 +60,11 @@ busybox-clean:
 
 busybox-dirclean:
 	rm -rf $(BUSYBOX_DIR)
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_BUSYBOX)),y)
+TARGETS+=busybox
+endif

+ 0 - 3
package/bzip2/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_BZIP2)),y)
-TARGETS+=bzip2
-endif

+ 8 - 0
package/bzip2/bzip2.mk

@@ -86,3 +86,11 @@ bzip2-clean:
 bzip2-dirclean:
 	rm -rf $(BZIP2_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_BZIP2)),y)
+TARGETS+=bzip2
+endif

+ 0 - 8
package/config/Config.in

@@ -1,8 +0,0 @@
-#
-
-config BR2_PACKAGE_CONFIG
-	bool"config"
-	default n
-	help
-	  Add help text here.
-

+ 0 - 3
package/config/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_CONFIG)),y)
-TARGETS+=config
-endif

+ 0 - 3
package/coreutils/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_COREUTILS)),y)
-TARGETS+=coreutils
-endif

+ 8 - 0
package/coreutils/coreutils.mk

@@ -88,3 +88,11 @@ coreutils-clean:
 coreutils-dirclean:
 	rm -rf $(COREUTILS_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_COREUTILS)),y)
+TARGETS+=coreutils
+endif

+ 0 - 3
package/customize/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_CUSTOMIZE)),y)
-TARGETS+=customize
-endif

+ 8 - 0
package/customize/customize.mk

@@ -7,3 +7,11 @@ CUST_DIR:=package/customize/source
 
 customize:
 	-cp -af $(CUST_DIR)/* $(TARGET_DIR)/
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_CUSTOMIZE)),y)
+TARGETS+=customize
+endif

+ 0 - 3
package/dhcp_relay/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_DHCP_RELAY)),y)
-TARGETS+=dhcp_relay
-endif

+ 8 - 0
package/dhcp_relay/dhcp_relay.mk

@@ -45,3 +45,11 @@ dhcp_relay-clean:
 dhcp_relay-dirclean:
 	rm -rf $(DHCP_RELAY_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_DHCP_RELAY)),y)
+TARGETS+=dhcp_relay
+endif

+ 0 - 3
package/diffutils/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_DIFFUTILS)),y)
-TARGETS+=diffutils
-endif

+ 8 - 0
package/diffutils/diffutils.mk

@@ -59,3 +59,11 @@ diffutils-clean:
 diffutils-dirclean:
 	rm -rf $(DIFFUTILS_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_DIFFUTILS)),y)
+TARGETS+=diffutils
+endif

+ 0 - 3
package/distcc/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_DISTCC)),y)
-TARGETS+=distcc
-endif

+ 8 - 0
package/distcc/distcc.mk

@@ -56,3 +56,11 @@ distcc-clean:
 
 distcc-dirclean:
 	rm -rf $(DISTCC_DIR)
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_DISTCC)),y)
+TARGETS+=distcc
+endif

+ 0 - 3
package/dnsmasq/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_DNSMASQ)),y)
-TARGETS+=dnsmasq
-endif

+ 8 - 0
package/dnsmasq/dnsmasq.mk

@@ -48,3 +48,11 @@ dnsmasq-clean:
 
 dnsmasq-dirclean:
 	rm -rf $(DNSMASQ_DIR)
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_DNSMASQ)),y)
+TARGETS+=dnsmasq
+endif

+ 0 - 3
package/dropbear_sshd/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_DROPBEAR_SSHD)),y)
-TARGETS+=dropbear_sshd
-endif

+ 8 - 0
package/dropbear_sshd/dropbear_sshd.mk

@@ -77,3 +77,11 @@ dropbear_sshd-clean:
 dropbear_sshd-dirclean:
 	rm -rf $(DROPBEAR_SSHD_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_DROPBEAR_SSHD)),y)
+TARGETS+=dropbear_sshd
+endif

+ 0 - 3
package/ed/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_ED)),y)
-TARGETS+=ed
-endif

+ 8 - 0
package/ed/ed.mk

@@ -53,3 +53,11 @@ ed-clean:
 ed-dirclean:
 	rm -rf $(ED_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_ED)),y)
+TARGETS+=ed
+endif

+ 0 - 3
package/fakeroot/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_FAKEROOT)),y)
-TARGETS+=fakeroot
-endif

+ 8 - 0
package/fakeroot/fakeroot.mk

@@ -62,3 +62,11 @@ fakeroot-dirclean:
 	rm -rf $(FAKEROOT_DIR) 
 
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_FAKEROOT)),y)
+TARGETS+=fakeroot
+endif

+ 0 - 3
package/file/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_FILE)),y)
-TARGETS+=file
-endif

+ 8 - 0
package/file/file.mk

@@ -64,3 +64,11 @@ file-clean:
 file-dirclean:
 	rm -rf $(FILE_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_FILE)),y)
+TARGETS+=file
+endif

+ 0 - 3
package/findutils/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_FINDUTILS)),y)
-TARGETS+=findutils
-endif

+ 8 - 0
package/findutils/findutils.mk

@@ -68,3 +68,11 @@ findutils-clean:
 findutils-dirclean:
 	rm -rf $(FINDUTILS_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_FINDUTILS)),y)
+TARGETS+=findutils
+endif

+ 0 - 3
package/flex/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_FLEX)),y)
-TARGETS+=flex
-endif

+ 8 - 0
package/flex/flex.mk

@@ -94,3 +94,11 @@ flex-clean:
 flex-dirclean:
 	rm -rf $(FLEX_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_FLEX)),y)
+TARGETS+=flex
+endif

+ 0 - 3
package/gawk/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_GAWK)),y)
-TARGETS+=gawk
-endif

+ 8 - 0
package/gawk/gawk.mk

@@ -64,3 +64,11 @@ gawk-clean:
 gawk-dirclean:
 	rm -rf $(GAWK_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_GAWK)),y)
+TARGETS+=gawk
+endif

+ 0 - 3
package/gettext/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_GETTEXT)),y)
-TARGETS+=gettext
-endif

+ 8 - 0
package/gettext/gettext.mk

@@ -59,3 +59,11 @@ gettext-clean:
 gettext-dirclean:
 	rm -rf $(GETTEXT_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_GETTEXT)),y)
+TARGETS+=gettext
+endif

+ 0 - 3
package/grep/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_GREP)),y)
-TARGETS+=grep
-endif

+ 8 - 0
package/grep/grep.mk

@@ -71,3 +71,11 @@ grep-clean:
 grep-dirclean:
 	rm -rf $(GNUGREP_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_GREP)),y)
+TARGETS+=grep
+endif

+ 0 - 3
package/gzip/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_GZIP)),y)
-TARGETS+=gzip
-endif

+ 8 - 0
package/gzip/gzip.mk

@@ -70,3 +70,11 @@ gzip-clean:
 gzip-dirclean:
 	rm -rf $(GZIP_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_GZIP)),y)
+TARGETS+=gzip
+endif

+ 0 - 3
package/hostap/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_HOSTAP)),y)
-TARGETS+=hostap
-endif

+ 8 - 0
package/hostap/hostap.mk

@@ -51,3 +51,11 @@ hostap-clean:
 hostap-dirclean:
 	rm -rf $(HOSTAP_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_HOSTAP)),y)
+TARGETS+=hostap
+endif

+ 0 - 3
package/hotplug/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_HOTPLUG)),y)
-TARGETS+=hotplug
-endif

+ 8 - 0
package/hotplug/hotplug.mk

@@ -36,3 +36,11 @@ hotplug-clean:
 hotplug-dirclean:
 	rm -rf $(HOTPLUG_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_HOTPLUG)),y)
+TARGETS+=hotplug
+endif

+ 0 - 3
package/iproute2/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_IPROUTE2)),y)
-TARGETS+=iproute2
-endif

+ 8 - 0
package/iproute2/iproute2.mk

@@ -47,3 +47,11 @@ iproute2-clean:
 
 iproute2-dirclean:
 	rm -rf $(IPROUTE2_DIR)
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_IPROUTE2)),y)
+TARGETS+=iproute2
+endif

+ 0 - 3
package/iptables/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_IPTABLES)),y)
-TARGETS+=iptables
-endif

+ 8 - 0
package/iptables/iptables.mk

@@ -49,3 +49,11 @@ iptables-clean:
 
 iptables-dirclean:
 	rm -rf $(IPTABLES_BUILD_DIR)
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_IPTABLES)),y)
+TARGETS+=iptables
+endif

+ 0 - 3
package/jpeg/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_JPEG)),y)
-TARGETS+=jpeg
-endif

+ 8 - 0
package/jpeg/jpeg.mk

@@ -72,3 +72,11 @@ jpeg: uclibc $(TARGET_DIR)/usr/lib/libjpeg.so.62.0.0
 
 jpeg-clean:
 	-$(MAKE) -C $(JPEG_DIR) clean
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_JPEG)),y)
+TARGETS+=jpeg
+endif

+ 0 - 3
package/less/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_LESS)),y)
-TARGETS+=less
-endif

+ 8 - 0
package/less/less.mk

@@ -48,3 +48,11 @@ less-clean:
 less-dirclean:
 	rm -rf $(LESS_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_LESS)),y)
+TARGETS+=less
+endif

+ 0 - 3
package/libfloat/Makefile.in

@@ -1,3 +0,0 @@
-#ifeq ($(strip $(BR2_PACKAGE_LIBFLOAT)),y)
-#TARGETS+=libfloat
-#endif

+ 8 - 0
package/libfloat/libfloat.mk

@@ -55,3 +55,11 @@ libfloat-clean:
 libfloat-dirclean:
 	rm -rf $(LIBFLOAT_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+#ifeq ($(strip $(BR2_PACKAGE_LIBFLOAT)),y)
+#TARGETS+=libfloat
+#endif

+ 0 - 3
package/libglib12/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_LIBGLIB12)),y)
-TARGETS+=libglib12
-endif

+ 8 - 0
package/libglib12/libglib12.mk

@@ -76,3 +76,11 @@ libglib12-clean:
 libglib12-dirclean:
 	rm -rf $(LIBGLIB12_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_LIBGLIB12)),y)
+TARGETS+=libglib12
+endif

+ 0 - 3
package/libmad/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_LIBMAD)),y)
-TARGETS+=libmad
-endif

+ 8 - 0
package/libmad/libmad.mk

@@ -50,3 +50,11 @@ libmad-clean:
 
 libmad-dirclean:
 	rm -rf $(LIBMAD_DIR) $(LIBMAD_WORKDIR)
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_LIBMAD)),y)
+TARGETS+=libmad
+endif

+ 0 - 3
package/libpcap/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_LIBPCAP)),y)
-TARGETS+=libpcap
-endif

+ 8 - 0
package/libpcap/libpcap.mk

@@ -77,3 +77,11 @@ libpcap-clean:
 
 libpcap-dirclean:
 	rm -rf $(LIBPCAP_DIR)
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_LIBPCAP)),y)
+TARGETS+=libpcap
+endif

+ 0 - 3
package/libpng/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_LIBPNG)),y)
-TARGETS+=libpng
-endif

+ 8 - 0
package/libpng/libpng.mk

@@ -69,3 +69,11 @@ libpng: uclibc zlib $(TARGET_DIR)/usr/lib/libpng.so
 
 libpng-clean:
 	-$(MAKE) -C $(LIBPNG_DIR) clean
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_LIBPNG)),y)
+TARGETS+=libpng
+endif

+ 0 - 3
package/libtool/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_LIBTOOL)),y)
-TARGETS+=libtool
-endif

+ 8 - 0
package/libtool/libtool.mk

@@ -75,3 +75,11 @@ libtool-clean:
 libtool-dirclean:
 	rm -rf $(LIBTOOL_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_LIBTOOL)),y)
+TARGETS+=libtool
+endif

+ 0 - 3
package/links/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_LINKS)),y)
-TARGETS+=links
-endif

+ 8 - 0
package/links/links.mk

@@ -53,3 +53,11 @@ links-dirclean:
 
 links: uclibc $(TARGET_DIR)/usr/bin/links
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_LINKS)),y)
+TARGETS+=links
+endif

+ 0 - 3
package/linux/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_LINUX)),y)
-TARGETS+=linux
-endif

+ 8 - 0
package/linux/linux.mk

@@ -111,3 +111,11 @@ linux-dirclean:
 	rm -rf $(LINUX_DIR)
 
 endif
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_LINUX)),y)
+TARGETS+=linux
+endif

+ 0 - 3
package/lrzsz/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_LRZSZ)),y)
-TARGETS+=lrzsz
-endif

+ 8 - 0
package/lrzsz/lrzsz.mk

@@ -74,3 +74,11 @@ lrzsz-clean:
 
 lrzsz-dirclean:
 	rm -rf $(LRZSZ_DIR)
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_LRZSZ)),y)
+TARGETS+=lrzsz
+endif

+ 0 - 3
package/ltp-testsuite/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_LTP-TESTSUITE)),y)
-TARGETS+=ltp-testsuite
-endif

+ 8 - 0
package/ltp-testsuite/ltp-testsuite.mk

@@ -36,3 +36,11 @@ ltp-testsuite-dirclean:
 	rm -rf $(LTP_TESTSUITE_DIR)
 
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_LTP-TESTSUITE)),y)
+TARGETS+=ltp-testsuite
+endif

+ 0 - 3
package/ltrace/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_LTRACE)),y)
-TARGETS+=ltrace
-endif

+ 8 - 0
package/ltrace/ltrace.mk

@@ -53,3 +53,11 @@ ltrace-clean:
 ltrace-dirclean:
 	rm -rf $(LTRACE_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_LTRACE)),y)
+TARGETS+=ltrace
+endif

+ 0 - 3
package/lzo/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_LZO)),y)
-TARGETS+=lzo
-endif

+ 8 - 0
package/lzo/lzo.mk

@@ -57,3 +57,11 @@ lzo-clean:
 lzo-dirclean:
 	rm -rf $(LZO_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_LZO)),y)
+TARGETS+=lzo
+endif

+ 0 - 3
package/m4/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_M4)),y)
-TARGETS+=m4
-endif

+ 8 - 0
package/m4/m4.mk

@@ -64,3 +64,11 @@ m4-clean:
 m4-dirclean:
 	rm -rf $(M4_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_M4)),y)
+TARGETS+=m4
+endif

+ 0 - 3
package/make/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_MAKE)),y)
-TARGETS+=make
-endif

+ 8 - 0
package/make/make.mk

@@ -59,3 +59,11 @@ make-clean:
 make-dirclean:
 	rm -rf $(GNUMAKE_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_MAKE)),y)
+TARGETS+=make
+endif

+ 0 - 3
package/microcom/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_MICROCOM)),y)
-TARGETS+=microcom
-endif

+ 8 - 0
package/microcom/microcom.mk

@@ -57,3 +57,11 @@ microcom-dirclean:
 
 microcom: uclibc $(TARGET_DIR)/usr/bin/microcom 
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_MICROCOM)),y)
+TARGETS+=microcom
+endif

+ 0 - 3
package/microwin/Makefile.in

@@ -1,3 +0,0 @@
-#ifeq ($(strip $(BR2_PACKAGE_MICROWIN)),y)
-#TARGETS+=microwin
-#endif

+ 8 - 0
package/microwin/microwin.mk

@@ -44,3 +44,11 @@ microwin-clean:
 microwin-dirclean:
 	rm -rf $(MICROWIN_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+#ifeq ($(strip $(BR2_PACKAGE_MICROWIN)),y)
+#TARGETS+=microwin
+#endif

+ 0 - 3
package/mkdosfs/Makefile.in

@@ -1,3 +0,0 @@
-ifeq ($(strip $(BR2_PACKAGE_MKDOSFS)),y)
-TARGETS+=mkdosfs
-endif

+ 8 - 0
package/mkdosfs/mkdosfs.mk

@@ -42,3 +42,11 @@ mkdosfs-clean:
 mkdosfs-dirclean:
 	rm -rf $(MKDOSFS_DIR)
 
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_MKDOSFS)),y)
+TARGETS+=mkdosfs
+endif

Some files were not shown because too many files changed in this diff