package: flag further target specific packages as nonshared
[openwrt/openwrt.git] / package / utils / otrx / Makefile
1 #
2 # Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=otrx
11 PKG_RELEASE:=1
12 PKG_FLAGS:=nonshared
13
14 PKG_FLAGS:=nonshared
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/otrx
19 SECTION:=utils
20 CATEGORY:=Base system
21 TITLE:=Utility for opening (analyzing) TRX firmware images
22 MAINTAINER:=Rafał Miłecki <zajec5@gmail.com>
23 DEPENDS:=@TARGET_brcm47xx||@TARGET_bcm53xx
24 endef
25
26 define Package/otrx/description
27 This package contains an utility that allows validating TRX images.
28 endef
29
30 define Build/Prepare
31 mkdir -p $(PKG_BUILD_DIR)
32 $(CP) ./src/* $(PKG_BUILD_DIR)/
33 endef
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 CC="$(TARGET_CC)" \
38 CFLAGS="$(TARGET_CFLAGS) -Wall"
39 endef
40
41 define Package/otrx/install
42 $(INSTALL_DIR) $(1)/usr/bin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/otrx $(1)/usr/bin/
44 endef
45
46 $(eval $(call BuildPackage,otrx))