forked from Caian/xinfc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
45 lines (37 loc) · 1.18 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
include $(TOPDIR)/rules.mk
# place this file one folder upper than all the sources, like this:
#
# xinfcfeed
# └── xinfc
# ├── Makefile
# └── src
# ├── LICENSE
#...
# ├── README
# ├── src
# └── include
#
# add line 'src-link xinfcfeed /path/to/xinfcfeed' to your feeds.conf
# next, as usual perform ./scripts/feeds update -a && ./scripts/feeds install -a
# next perform config (e.g. make menuconfig) and enable xinfc build
# finally make package/xinfc/compile will produce package for you.
PKG_NAME:=xinfc
PKG_VERSION:=1.0.0
PKG_RELEASE:=$(AUTORELEASE)
PKG_MAINTAINER:=Alexey N. Vinogradov <[email protected]>
PKG_BUILD_DIR:=$(BUILD_DIR)/xinfc-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/xinfc
SECTION:=examples
CATEGORY:=Examples
TITLE:=xinfc set nfc wifi tag on xiaomi router
endef
define Package/xinfc/description
tools for interfacing with the NFC chip on Xiaomi routers.
endef
define Package/xinfc/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/xinfc-wsc $(1)/usr/bin/
endef
$(eval $(call BuildPackage,xinfc))