X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/0f993c98384e1fdd24abd647929d522e4aa20e12..1e550b79e04d21e94460fc8d8a6a54fc48feb1fd:/target/linux/package/madwifi/Makefile diff --git a/target/linux/package/madwifi/Makefile b/target/linux/package/madwifi/Makefile index 9f4fbdc31..e245f68b6 100644 --- a/target/linux/package/madwifi/Makefile +++ b/target/linux/package/madwifi/Makefile @@ -1,6 +1,7 @@ # $Id$ include $(TOPDIR)/rules.mk +include ../../rules.mk PKG_NAME:=madwifi PKG_VERSION:=2005-08-13 @@ -36,6 +37,8 @@ $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.built: $(MAKE) -C $(PKG_BUILD_DIR) \ + PATH="$(TARGET_PATH)" \ + ARCH="$(LINUX_KARCH)" \ TARGET="$(HAL_TARGET)" \ TOOLPREFIX="$(KERNEL_CROSS)" \ KERNELPATH="$(KERNEL_DIR)" @@ -54,3 +57,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