install madwifi headers in staging_dir (needed for hostapd)
authorNicolas Thill <nico@openwrt.org>
Sun, 14 Aug 2005 06:55:28 +0000 (06:55 +0000)
committerNicolas Thill <nico@openwrt.org>
Sun, 14 Aug 2005 06:55:28 +0000 (06:55 +0000)
SVN-Revision: 1658

openwrt/target/linux/package/madwifi/Makefile

index 9f4fbdc31d13e779b58ecb718b967761877b44b5..df1ae1082db976a3c28ff1dcac6e878b26cae054 100644 (file)
@@ -54,3 +54,17 @@ $(IPKG_KMOD_MADWIFI):
                $(IDIR_KMOD_MADWIFI)/lib/modules/$(LINUX_VERSION)/
        $(IPKG_BUILD) $(IDIR_KMOD_MADWIFI) $(PACKAGE_DIR)
 
+$(STAGING_DIR)/usr/include/madwifi/net80211/ieee80211.h: $(PKG_BUILD_DIR)/.built
+       mkdir -p $(STAGING_DIR)/usr/include/madwifi
+       cp -fpR $(PKG_BUILD_DIR)/include $(STAGING_DIR)/usr/include/madwifi/
+       mkdir -p $(STAGING_DIR)/usr/include/madwifi/net80211
+       cp -fpR $(PKG_BUILD_DIR)/net80211/*.h $(STAGING_DIR)/usr/include/madwifi/net80211/
+       touch $@
+
+install-dev: $(STAGING_DIR)/usr/include/madwifi/net80211/ieee80211.h
+
+uninstall-dev:
+       rm -rf $(STAGING_DIR)/usr/include/madwifi
+
+compile: install-dev
+clean: uninstall-dev