/programy/Asus_C/hello/Makefile |
---|
0,0 → 1,26 |
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)) |
/programy/Asus_C/hello/main.c |
---|
0,0 → 1,7 |
#include <stdio.h> |
int main() |
{ |
printf("Hello World\n"); |
return 0; |
} |