* Change Makefile so release is the default mode, use DEBUG=1 to turn on debugging. * Clean up 'conf' a bit. * Add a new option 'router' (valid in 'proxy' section) to turn on/off the ND_NA_FLAG_ROUTER flag for adverts.
24 lines
297 B
Makefile
24 lines
297 B
Makefile
ifdef DEBUG
|
|
CFLAGS = -g -DDEBUG
|
|
else
|
|
CFLAGS = -O3
|
|
endif
|
|
|
|
CC = g++
|
|
LDFLAGS = -lconfuse
|
|
OBJ = log.o ndppd.o iface.o proxy.o address.o rule.o session.o conf.o
|
|
|
|
|
|
all: ndppd
|
|
|
|
ndppd: ${OBJ}
|
|
${CC} -o ndppd ${LDFLAGS} ${OBJ}
|
|
|
|
.cc.o:
|
|
${CC} -c $(CFLAGS) $<
|
|
|
|
clean:
|
|
rm -f ndppd ${OBJ}
|
|
|
|
|