Subversion Repositories svnkaklik

Rev

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

Rev Author Line No. Line
388 kaklik 1
include $(TOPDIR)/rules.mk 
2
 
3
PKG_NAME:=hello
4
PKG_VERSION:=1.0
5
PKG_RELEASE:=1 
6
PKG_BUILD_DIR:=$(BUILD_DIR)/hello 
7
 
8
include $(INCLUDE_DIR)/package.mk 
9
 
10
define Package/hello
11
   TITLE:=Hello World
12
   DESCRIPTION:=\
13
      A simple HELLO WORLD program
14
endef 
15
 
16
define Build/Compile
17
   $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/hello main.c
18
endef 
19
 
20
define Package/hello/install
21
   $(INSTALL_DIR) $(1)/usr/bin
22
   $(INSTALL_BIN) $(PKG_BUILD_DIR)/hello.out $(1)/usr/bin/
23
endef 
24
 
25
$(eval $(call BuildPackage,hello))
26