X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/5dd4154ec39fbcbd7a8900ae8839f20b1dcb324b..63bf3dd8c65a75549aaa48dd946cddb871f43010:/openwrt/target/linux/package/madwifi/Makefile diff --git a/openwrt/target/linux/package/madwifi/Makefile b/openwrt/target/linux/package/madwifi/Makefile index 9f4fbdc31..bde33e2e1 100644 --- a/openwrt/target/linux/package/madwifi/Makefile +++ b/openwrt/target/linux/package/madwifi/Makefile @@ -36,6 +36,7 @@ $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.built: $(MAKE) -C $(PKG_BUILD_DIR) \ + ARCH="$(ARCH)" \ TARGET="$(HAL_TARGET)" \ TOOLPREFIX="$(KERNEL_CROSS)" \ KERNELPATH="$(KERNEL_DIR)" @@ -54,3 +55,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