summaryrefslogtreecommitdiff
path: root/package/swconfig/src/Makefile
blob: 0d56f43156810ca733a9e832a55c6b55b8bf2428 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
ifndef CFLAGS
CFLAGS = -O2 -g -I ../src
endif
LIBS=-lnl -lnl-genl

all: swconfig

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

swconfig: cli.o swlib.o uci.o
	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)