1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-18 08:38:06 +02:00
openwrt-xburst/package/wiviz/Makefile
nico b5f825a2de fix typo
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1850 3c298f89-4303-0410-b956-a3cf2f4a3e73
2005-09-04 21:15:44 +00:00

43 lines
1023 B
Makefile

# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=wiviz
PKG_VERSION:=1.0
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(TOPDIR)/package/rules.mk
$(eval $(call PKG_template,WIVIZ,wiviz,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
$(PKG_BUILD_DIR)/.prepared:
mkdir -p $(PKG_BUILD_DIR)
cp -fpR ./src/* $(PKG_BUILD_DIR)/
touch $@
$(PKG_BUILD_DIR)/.configured:
touch $@
$(PKG_BUILD_DIR)/.built:
$(MAKE) -C $(PKG_BUILD_DIR) \
CC="$(TARGET_CC)" \
CCOPTS="$(TARGET_CFLAGS)" \
INCLUDE="-I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include" \
LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib"
touch $@
$(IPKG_WIVIZ):
mkdir -p $(IDIR_WIVIZ)/usr/sbin
cp $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_WIVIZ)/usr/sbin/
$(RSTRIP) $(IDIR_WIVIZ)
cp -fpR ./files/* $(IDIR_WIVIZ)
find $(IDIR_WIVIZ) -name CVS | xargs rm -rf
find $(IDIR_WIVIZ) -name .svn | xargs rm -rf
$(IPKG_BUILD) $(IDIR_WIVIZ) $(PACKAGE_DIR)
mostlyclean:
$(MAKE) -C $(PKG_BUILD_DIR) clean
rm -f $(PKG_BUILD_DIR)/.built