libdir = $(PREFIX)/usr/lib/l2tpns
CC = gcc
-CFLAGS=-Wall -g -O2
+CFLAGS=-Wall -g -O3 -funroll-loops -fomit-frame-pointer -finline-functions
LDFLAGS =
LIBS = -lm -ldl -lcli
INSTALL = /usr/bin/install -c
%.so: %.c
$(CC) -fPIC -shared -o $@ $^ $(LDFLAGS) $(LIBS) $(LIBPATH)
+%.o: %.c l2tpns.h
+ $(CC) -c -o $@ $< $(CFLAGS)