X-Git-Url: https://git.distorted.org.uk/~mdw/userv-utils/blobdiff_plain/02b2392d025937ea5a1108b07b0dcd2a52cd957e..8d9c58663412f651132b7f75ca3a49514cb1fd4d:/ipif/Makefile diff --git a/ipif/Makefile b/ipif/Makefile index 2bcea8c..9445e08 100644 --- a/ipif/Makefile +++ b/ipif/Makefile @@ -1,6 +1,26 @@ # +OPTIMISE= -O2 CFLAGS= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith \ - -Wwrite-strings -g -D_GNU_SOURCE + -Wwrite-strings -g $(OPTIMISE) -D_GNU_SOURCE -all: service +etcdir= /etc +prefix= /usr/local +bindir= $(prefix)/bin + +libdir= $(prefix)/lib +libuserv= $(libdir)/userv + +etcuserv= $(etcdir)/userv +services= $(etcuserv)/services.d + +TARGETS= service + +all: $(TARGETS) + +install: all + mkdir -p $(libuserv) $(services) + 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