Subversion Repositories svnkaklik

Rev

Go to most recent revision | Details | Last modification | View Log

Rev Author Line No. Line
464 kaklik 1
# $Id: Makefile 1146 2005-06-05 13:32:28Z nbd $
2
 
3
include $(TOPDIR)/rules.mk
4
 
5
PKG_NAME:=mrak3
6
PKG_VERSION:=0.1
7
PKG_RELEASE:=1
8
PKG_MD5SUM:=
9
 
10
PKG_SOURCE_URL:=http://www.mlab.cz/WebSVN/filedetails.php?repname=MLAB&path=%2FDesigns%2FMRAKOMER3%2FSW%2FLinux%2FIx86%2F
11
PKG_SOURCE:=mrakomer.c
12
PKG_CAT:=
13
 
14
PKG_BUILD_DIR:=$(BUILD_DIR)/mrak3
15
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
 
17
include $(TOPDIR)/package/rules.mk
18
 
19
$(eval $(call PKG_template,MRAK3,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
 
21
$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
22
	touch $@
23
 
24
$(PKG_BUILD_DIR)/.built:
25
	rm -rf $(PKG_INSTALL_DIR)
26
	mkdir -p $(PKG_INSTALL_DIR)/usr/bin
27
	$(TARGET_CC) $(PKG_BUILD_DIR)/mrakomer.c -o $(PKG_BUILD_DIR)/$(PKG_NAME) 
28
	$(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_INSTALL_DIR)/usr/bin
29
	touch $@
30
 
31
$(IPKG_MRAK3):
32
	install -d -m0755 $(IDIR_MRAK3)/usr/bin
33
	$(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(IDIR_MRAK3)/usr/bin
34
	$(RSTRIP) $(IDIR_MRAK3)
35
	$(IPKG_BUILD) $(IDIR_MRAK3) $(PACKAGE_DIR)
36
 
37
mostlyclean:
38
	$(MAKE) -C $(PKG_BUILD_DIR) clean
39
	rm -f $(PKG_BUILD_DIR)/.built
40