Ticket #2402: Makefile

File Makefile, 818 bytes (added by Maik.Zumstrull@…, 10 years ago)

Initial Makefile

Line 
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=tctool
4PKG_VERSION:=0.9.7
5PKG_RELEASE:=1
6
7PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
8PKG_SOURCE_URL:=http://download2.berlios.de/speedmodem50b
9PKG_MD5SUM:=df38334206d4cad106e58bd71c6f1d9a
10PKG_CAT:=unzip
11
12PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)
13
14include $(INCLUDE_DIR)/package.mk
15
16define Package/tctool
17        SECTION:=net
18        CATEGORY:=Network
19        TITLE:=TrendChip-Modem-Utility
20        DESCRIPTION:=tcTool provides access to the console-service of TrendChip-based ADSL-Modems.
21        URL:=http://speedmodem50b.berlios.de/
22        DEPENDS:=+libstdcpp
23endef
24
25define Build/Compile
26        $(MAKE) -C $(PKG_BUILD_DIR)/src $(TARGET_CONFIGURE_OPTS) tctool
27endef
28
29define Package/tctool/install
30        $(INSTALL_DIR) $(1)/usr/sbin
31        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tctool $(1)/usr/sbin/
32endef
33
34$(eval $(call BuildPackage,tctool))