projects
/
librecmc
/
librecmc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fresh pull from upstream
[librecmc/librecmc.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.a: swlib.o
12
$(AR) rcu $@ swlib.o
13
$(RANLIB) $@
14
15
swconfig: libsw.a cli.o uci.o
16
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS) -L./ -lsw