swconfig: support receiving SWITCH_TYPE_LINK from kernel
[openwrt/openwrt.git] / package / network / config / swconfig / src / Makefile
1 ifndef CFLAGS
2 CFLAGS = -O2 -g -I ../src
3 endif
4 LIBS=-lnl -lnl-genl
5
6 all: swconfig
7
8 %.o: %.c
9 $(CC) $(CFLAGS) -fPIC -c -o $@ $^
10
11 libsw.so: swlib.o
12 $(CC) $(CFLAGS) -fPIC -shared -o $@ swlib.o
13
14 swconfig: libsw.so cli.o uci.o
15 $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) -L./ -lsw