aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/swconfig/Makefile
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-07-14 09:56:59 +0000
committerJohn Crispin <john@openwrt.org>2015-07-14 09:56:59 +0000
commitc71ef0499bba0564682064098e26422ac280b06b (patch)
treed50cc514a41a8573abc1ff3ed9e3dd17db6d3bc8 /package/network/config/swconfig/Makefile
parent63ef3540d1d5655b16098d63726595fda4dae392 (diff)
downloadupstream-c71ef0499bba0564682064098e26422ac280b06b.tar.gz
upstream-c71ef0499bba0564682064098e26422ac280b06b.tar.bz2
upstream-c71ef0499bba0564682064098e26422ac280b06b.zip
swconfig: Split libsw out of swconfig for reuse in other packages
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> SVN-Revision: 46358
Diffstat (limited to 'package/network/config/swconfig/Makefile')
-rw-r--r--package/network/config/swconfig/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/network/config/swconfig/Makefile b/package/network/config/swconfig/Makefile
index 7d0f30e7bb..3c2ec3e387 100644
--- a/package/network/config/swconfig/Makefile
+++ b/package/network/config/swconfig/Makefile
@@ -42,9 +42,18 @@ define Build/Compile
LIBS="$(TARGET_LDFLAGS) -lnl-tiny -lm -luci"
endef
+define Build/InstallDev
+ $(INSTALL_DIR) $(1)/usr/include
+ $(CP) $(PKG_BUILD_DIR)/swlib.h $(1)/usr/include/
+
+ $(INSTALL_DIR) $(1)/lib
+ $(CP) $(PKG_BUILD_DIR)/libsw.so $(1)/lib/
+endef
+
define Package/swconfig/install
$(INSTALL_DIR) $(1)/sbin $(1)/lib/network
$(INSTALL_BIN) $(PKG_BUILD_DIR)/swconfig $(1)/sbin/swconfig
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/libsw.so $(1)/lib
$(INSTALL_DATA) ./files/switch.sh $(1)/lib/network/
endef