3 include $(TOPDIR)/rules.mk
8 PKG_BUILD_DIR:=$(BUILD_DIR)/wificonf
10 include $(TOPDIR)/package/rules.mk
13 BR2_PACKAGE_WIFICONF:=m
16 $(eval $(call PKG_template,WIFICONF,$(PKG_NAME),$(PKG_RELEASE),$(ARCH)))
18 $(PKG_BUILD_DIR)/.prepared:
22 $(PKG_BUILD_DIR)/.built:
23 $(TARGET_CC) $(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -o $(PKG_BUILD_DIR)/wifi wificonf.c -L$(STAGING_DIR)/usr/lib -lnvram -lshared $(STAGING_DIR)/usr/lib/libiw.so
27 install -d -m0755 $(IDIR_WIFICONF)/sbin
28 install -m0755 $(PKG_BUILD_DIR)/wifi $(IDIR_WIFICONF)/sbin/
29 $(RSTRIP) $(IDIR_WIFICONF)
30 $(IPKG_BUILD) $(IDIR_WIFICONF) $(PACKAGE_DIR)