summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-14 06:55:28 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-14 06:55:28 +0000
commit85e1811874209f98971e57d04a714b3e249d08aa (patch)
treefa71a525ae8203705152d016124633556c7a968c
parent4a42fa23196b16efea78c84202e45f9f4d13c6a8 (diff)
install madwifi headers in staging_dir (needed for hostapd)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1658 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/package/madwifi/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/package/madwifi/Makefile b/target/linux/package/madwifi/Makefile
index 9f4fbdc31..df1ae1082 100644
--- a/target/linux/package/madwifi/Makefile
+++ b/target/linux/package/madwifi/Makefile
@@ -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