Makefile 203 Bytes
Newer Older
1
ifndef CFLAGS
2
CFLAGS = -O2 -g -I /usr/include/libnl3/
3
endif
4
LIBS=-lnl-3 -lnl-genl-3
5
6
7
8
9
10
11
all: swconfig

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

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