-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·67 lines (51 loc) · 1.06 KB
/
Makefile
File metadata and controls
executable file
·67 lines (51 loc) · 1.06 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#
# makefile for openwrt
#
include $(TOPDIR)/rules.mk
PKG_NAME:=lxui-lite
PKG_VERSION:=2.0
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
#
# make menuconfig
#
define Package/lxui-lite
SECTION:=UI
CATEGORY:=UI
DEPENDS:=+lua +libiwinfo-lua +libubox-lua +libubus-lua +libuci-lua +haserl
TITLE:=lxui-lite
endef
#
# make prepare
#
define Build/Prepare
#rm -rf $(PKG_BUILD_DIR)
#mkdir -p $(PKG_BUILD_DIR)
#$(CP) ./src/* $(PKG_BUILD_DIR)
endef
#
# make compile
#
TARGET_CFLAGS += $(FPIC)
MAKE+=-B
define Build/RunMake
CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/$(1) \
$(TARGET_CONFIGURE_OPTS) \
$(DRIVER_MAKEOPTS) \
MYTEST_CFLAGS="$(TARGET_CFLAGS)" \
MYTEST_LDFLAGS="$(TARGET_LDFLAGS)" \
BCHECK= \
$(2)
endef
define Build/Compile
#$(call Build/RunMake,,compile)
endef
#
# make install
#
define Package/lxui-lite/install
$(INSTALL_DIR) $(1)/web/
$(CP) ./files/web/* $(1)/web/
endef
$(eval $(call BuildPackage,lxui-lite))