diff options
author | John Crispin <john@openwrt.org> | 2015-07-14 09:56:59 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-07-14 09:56:59 +0000 |
commit | c71ef0499bba0564682064098e26422ac280b06b (patch) | |
tree | d50cc514a41a8573abc1ff3ed9e3dd17db6d3bc8 /package/network/config/swconfig/src | |
parent | 63ef3540d1d5655b16098d63726595fda4dae392 (diff) | |
download | upstream-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/src')
-rw-r--r-- | package/network/config/swconfig/src/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/package/network/config/swconfig/src/Makefile b/package/network/config/swconfig/src/Makefile index 0d56f43156..1176bf0e40 100644 --- a/package/network/config/swconfig/src/Makefile +++ b/package/network/config/swconfig/src/Makefile @@ -6,7 +6,10 @@ LIBS=-lnl -lnl-genl all: swconfig %.o: %.c - $(CC) $(CFLAGS) -c -o $@ $^ + $(CC) $(CFLAGS) -fPIC -c -o $@ $^ -swconfig: cli.o swlib.o uci.o - $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) +libsw.so: swlib.o + $(CC) $(CFLAGS) -fPIC -shared -o $@ swlib.o + +swconfig: libsw.so cli.o uci.o + $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) -L./ -lsw |