[packages] Use default templates instead of custom reimplementations where applicable
[openwrt/svn-archive/archive.git] / utils / ucmb-tools / Makefile
1 #
2 # Copyright (C) 2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=ucmb-tools
10 PKG_RELEASE:=1
11
12 include $(INCLUDE_DIR)/package.mk
13
14
15 define Package/ucmb-tools
16 SECTION:=utils
17 CATEGORY:=Utilities
18 TITLE:=Microcontroller Message Bus tools
19 DEPENDS:=+kmod-ucmb
20 endef
21
22 define Package/ucmb-tools/description
23 Debugging tool for UCMB
24 endef
25
26 define Build/Prepare
27 $(CP) ./tools/* $(PKG_BUILD_DIR)/
28 endef
29
30 define Build/Compile
31 $(MAKE) -C $(PKG_BUILD_DIR) \
32 $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -I$(LINUX_DIR)/include"
33 endef
34
35 define Package/ucmb-tools/install
36 $(INSTALL_DIR) $(1)/usr/bin
37 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ucmb $(1)/usr/bin/
38 endef
39
40 $(eval $(call BuildPackage,ucmb-tools))