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

all: swconfig

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

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