Blame | Last modification | View Log | Download
# $Id: Makefile 1146 2005-06-05 13:32:28Z nbd $
include $(TOPDIR)/rules.mk
PKG_NAME:=mrak3
PKG_VERSION:=0.1
PKG_RELEASE:=1
PKG_MD5SUM:=
PKG_SOURCE_URL:=http://www.mlab.cz/WebSVN/filedetails.php?repname=MLAB&path=%2FDesigns%2FMRAKOMER3%2FSW%2FLinux%2FIx86%2F
PKG_SOURCE:=mrakomer.c
PKG_CAT:=
PKG_BUILD_DIR:=$(BUILD_DIR)/mrak3
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(TOPDIR)/package/rules.mk
$(eval $(call PKG_template,MRAK3,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
touch $@
$(PKG_BUILD_DIR)/.built:
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)/usr/bin
$(TARGET_CC) $(PKG_BUILD_DIR)/mrakomer.c -o $(PKG_BUILD_DIR)/$(PKG_NAME)
$(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_INSTALL_DIR)/usr/bin
touch $@
$(IPKG_MRAK3):
install -d -m0755 $(IDIR_MRAK3)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(IDIR_MRAK3)/usr/bin
$(RSTRIP) $(IDIR_MRAK3)
$(IPKG_BUILD) $(IDIR_MRAK3) $(PACKAGE_DIR)
mostlyclean:
$(MAKE) -C $(PKG_BUILD_DIR) clean
rm -f $(PKG_BUILD_DIR)/.built