X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/c2f98ee93148952298986946a26be28cab46eb5b..67fb382676922a55ea4e9b3bff5f9a368c8765e7:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index a7f3631..18be310 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ etcdir = $(PREFIX)/etc/l2tpns 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 @@ -50,7 +50,7 @@ install: all $(INSTALL) -D -o root -g root -m 0644 etc/ip_pool.default $(etcdir)/l2tpns.ip_pool $(INSTALL) -D -o root -g root -m 0600 etc/users.default $(etcdir)/l2tpns.users for PLUGIN in $(PLUGINS); do \ - $(INSTALL) -o root -g root -m 0755 $(PLUGIN) $(libdir)/$(PLUGIN); \ + $(INSTALL) -D -o root -g root -m 0755 $(PLUGIN) $(libdir)/$(PLUGIN); \ done if [ ! -e /dev/net/tun ]; then \ mkdir /dev/net; \ @@ -60,3 +60,5 @@ install: all %.so: %.c $(CC) -fPIC -shared -o $@ $^ $(LDFLAGS) $(LIBS) $(LIBPATH) +%.o: %.c l2tpns.h + $(CC) -c -o $@ $< $(CFLAGS)