aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/swconfig/src/Makefile
blob: e972a4439771cee023071e1cb85bc47e142671e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
ifndef CFLAGS
CFLAGS = -O2 -g -I ../src
endif
LIBS=-lnl -lnl-genl

all: swconfig

%.o: %.c
	$(CC) $(CFLAGS) -fPIC -c -o $@ $^

libsw.a: swlib.o
	$(AR) rcu $@ swlib.o
	$(RANLIB) $@

swconfig: libsw.a cli.o uci.o
	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS) -L./ -lsw