#
+OPTIMISE= -O2
CFLAGS= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith \
- -Wwrite-strings -g -D_GNU_SOURCE
+ -Wwrite-strings -g $(OPTIMISE) -D_GNU_SOURCE
etcdir= /etc
prefix= /usr/local
+bindir= $(prefix)/bin
libdir= $(prefix)/lib
libuserv= $(libdir)/userv
install: all
mkdir -p $(libuserv) $(services)
- cp service $(libdir)/ipif
+ cp -b service $(libuserv)/ipif
cp ipif $(services)/ipif:new
+ cp -b udptunnel $(bindir)/.
set -e; cd $(services); test -f ipif || mv ipif:new ipif