Created
August 27, 2013 18:43
-
-
Save glamrock/6357399 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TOPDIR = ../.. | |
include $(TOPDIR)/Makefile.inc | |
MODULE_NAME:=commotion-httpinfo | |
MODULE_TITLE:=Commotion Little Dashboard | |
PKG_NAME:=commotion-httpinfo | |
PKG_VERSION:=0.2 | |
PKG_RELEASE:=1 | |
PKG_SOURCE_PROTO:=git | |
PKG_SOURCE_URL:=git://github.com/opentechinstitute/co_httpinfo.git | |
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | |
PKG_SOURCE_VERSION:=$(PKG_VERSION) | |
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION) | |
OLSRD_PLUGIN = true | |
PLUGIN_NAME = co_httpinfo | |
PLUGIN_VER = 0.2 | |
ifdef ADMIN_INTERFACE | |
CPPFLAGS += -DADMIN_INTERFACE | |
endif | |
CMAKE_OPTIONS+=-DDEBUG:Bool=Off -DOPENWRT:Bool=On | |
OBJS += $(TOPDIR)/src/cfgparser/cfgfile_gen.o | |
default_target: $(PLUGIN_FULLNAME) | |
ifdef ADMIN_INTERFACE | |
@echo 'WARNING - BUILT WITH EXPERIMENTAL ADMIN INTERFACE!' | |
endif | |
define Package/commotion-httpinfo | |
SECTION:=commotion | |
CATEGORY:=Commotion | |
TITLE:=Commotion Little Dashboard | |
URL:=https://commotionwireless.net/ | |
endef | |
define Package/commotion-httpinfo/description | |
A small dashboard for local network metrics. | |
endef | |
define Package/commotion-httpinfo/install | |
$(INSTALL_DIR) $(1)/usr/lib | |
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libcommotion.so $(1)/usr/lib | |
endef | |
$(PLUGIN_FULLNAME): $(OBJS) version-script.txt | |
@echo "[LD] $@" | |
@$(CC) $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS) | |
install: $(PLUGIN_FULLNAME) | |
$(STRIP) $(PLUGIN_FULLNAME) | |
$(INSTALL_LIB) | |
uninstall: | |
$(UNINSTALL_LIB) | |
clean: | |
rm -f $(OBJS) $(SRCS:%.c=%.d) $(PLUGIN_FULLNAME) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment