e82c8d6e20
Reduces binary size Signed-off-by: Felix Fietkau <nbd@nbd.name>
16 lines
256 B
Makefile
16 lines
256 B
Makefile
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
|