Subversion Repositories svnkaklik

Rev

Rev 394 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download

include $(TOPDIR)/rules.mk 

PKG_NAME:=hello
PKG_VERSION:=1.0
PKG_RELEASE:=1 
PKG_BUILD_DIR:=$(BUILD_DIR)/hello 

include $(INCLUDE_DIR)/package.mk 

define Package/hello
   TITLE:=Hello World
   DESCRIPTION:=\
      A simple HELLO WORLD program
endef 

define Build/Compile
   $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/hello main.c
endef 

define Package/hello/install
   $(INSTALL_DIR) $(1)/usr/bin
   $(INSTALL_BIN) $(PKG_BUILD_DIR)/hello.out $(1)/usr/bin/
endef 

$(eval $(call BuildPackage,hello))