use target optimization flags for madwifi tools
authorNicolas Thill <nico@openwrt.org>
Fri, 27 Oct 2006 19:14:43 +0000 (19:14 +0000)
committerNicolas Thill <nico@openwrt.org>
Fri, 27 Oct 2006 19:14:43 +0000 (19:14 +0000)
SVN-Revision: 5314

package/madwifi/Makefile

index 962795ab2001e21e4fe70960749f49181d72c095..6fa682b0610f9e38034847e65349a4d971231475 100644 (file)
@@ -105,19 +105,22 @@ MADWIFI_MAKEOPTS= -C $(PKG_BUILD_DIR) \
 
 ifeq ($(findstring AHB,$(BUS)),AHB)
   define Build/Compile/ahb
-       $(MAKE) $(MADWIFI_MAKEOPTS) BUS="AHB" all
+       $(MAKE) $(MADWIFI_MAKEOPTS) BUS="AHB" modules
   endef
 endif
 
 ifeq ($(findstring PCI,$(BUS)),PCI)
   define Build/Compile/pci
-       $(MAKE) $(MADWIFI_MAKEOPTS) BUS="PCI" all
+       $(MAKE) $(MADWIFI_MAKEOPTS) BUS="PCI" modules
   endef
 endif
 
 define Build/Compile
        $(call Build/Compile/ahb)
        $(call Build/Compile/pci)
+       $(MAKE) $(MADWIFI_MAKEOPTS) \
+               CFLAGS="$(TARGET_CFLAGS)" \
+               tools
 endef
 
 define Build/InstallDev