include $(TOPDIR)/rules.mk TARGET=F1C200s-board PKG_NAME:=$(TARGET) PKG_VERSION:=1.0 PKG_RELEASE:=1 PKG_BUILD_DIR := $(COMPILE_DIR)/$(PKG_NAME) include $(BUILD_DIR)/package.mk define Package/$(TARGET) SECTION:=gui CATEGORY:=Minigui # DEPENDS:= TITLE:=F1C200s-board endef define Build/Prepare mkdir -p $(PKG_BUILD_DIR) mkdir -p $(PKG_BUILD_DIR)/src mkdir -p $(PKG_BUILD_DIR)/res $(CP) -r ./src/* $(PKG_BUILD_DIR)/src $(CP) -r ./res/* $(PKG_BUILD_DIR)/res endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR)/src/ \ ARCH="$(TARGET_ARCH)" \ AR="$(TARGET_AR)" \ CC="$(TARGET_CC)" \ CXX="$(TARGET_CXX)" \ CFLAGS="$(TARGET_CFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \ all endef define Package/$(TARGET)/install $(INSTALL_DIR) $(1)/usr/bin/ $(INSTALL_DIR) $(1)/usr/res/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$(TARGET) $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/res/mianma.png $(1)/usr/res/ endef $(eval $(call BuildPackage,$(TARGET)))