* Changed OpenWRT Makefile to support OpenWRT compiler flags
This commit is contained in:
parent
95116c8d3b
commit
953510ccac
1 changed files with 18 additions and 6 deletions
|
@ -25,11 +25,6 @@ include $(INCLUDE_DIR)/package.mk
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
define Build/Compile
|
|
||||||
for i in $(PKG_SELECTED_MODULES); do $(MAKE) -C$(PKG_BUILD_DIR)/$$$$i build LUA_TARGET=$(LUA_TARGET); done
|
|
||||||
endef
|
|
||||||
|
|
||||||
### Templates ###
|
### Templates ###
|
||||||
|
|
||||||
define Package/luci/libtemplate
|
define Package/luci/libtemplate
|
||||||
|
@ -115,9 +110,19 @@ define Package/luci-cbi/install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
define Package/luci-fastindex
|
||||||
|
$(call Package/luci/libtemplate)
|
||||||
|
TITLE:=Fastindex indexing module
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/luci-fastindex/install
|
||||||
|
$(call Package/luci/install/template,$(1),libs/fastindex)
|
||||||
|
endef
|
||||||
|
|
||||||
|
|
||||||
define Package/luci-web
|
define Package/luci-web
|
||||||
$(call Package/luci/libtemplate)
|
$(call Package/luci/libtemplate)
|
||||||
DEPENDS+=+luci-addons
|
DEPENDS+=+luci-addons +luci-fastindex
|
||||||
TITLE:=MVC Webframework
|
TITLE:=MVC Webframework
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -355,6 +360,9 @@ endif
|
||||||
ifneq ($(CONFIG_PACKAGE_luci-cbi),)
|
ifneq ($(CONFIG_PACKAGE_luci-cbi),)
|
||||||
PKG_SELECTED_MODULES+=libs/cbi
|
PKG_SELECTED_MODULES+=libs/cbi
|
||||||
endif
|
endif
|
||||||
|
ifneq ($(CONFIG_PACKAGE_luci-fastindex),)
|
||||||
|
PKG_SELECTED_MODULES+=libs/fastindex
|
||||||
|
endif
|
||||||
ifneq ($(CONFIG_PACKAGE_luci-web),)
|
ifneq ($(CONFIG_PACKAGE_luci-web),)
|
||||||
PKG_SELECTED_MODULES+=libs/web
|
PKG_SELECTED_MODULES+=libs/web
|
||||||
endif
|
endif
|
||||||
|
@ -411,8 +419,12 @@ ifneq ($(CONFIG_PACKAGE_luci-i18n-english),)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
MAKE_FLAGS += MODULES="$(PKG_SELECTED_MODULES)" LUA_TARGET="$(LUA_TARGET)"
|
||||||
|
|
||||||
|
|
||||||
$(eval $(call BuildPackage,luci-core))
|
$(eval $(call BuildPackage,luci-core))
|
||||||
$(eval $(call BuildPackage,luci-cbi))
|
$(eval $(call BuildPackage,luci-cbi))
|
||||||
|
$(eval $(call BuildPackage,luci-fastindex))
|
||||||
$(eval $(call BuildPackage,luci-web))
|
$(eval $(call BuildPackage,luci-web))
|
||||||
|
|
||||||
$(eval $(call BuildPackage,luci-ff-halle))
|
$(eval $(call BuildPackage,luci-ff-halle))
|
||||||
|
|
Loading…
Reference in a new issue