chiark / gitweb /
Install udptunnel.
[userv-utils.git] / ipif / Makefile
index 24d74adad11c378d633eb91a57672b522eca1076..90aa70b776de824d4e2b4badac218693fef06e51 100644 (file)
@@ -1,10 +1,12 @@
 #
 
+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
@@ -20,4 +22,5 @@ install:      all
                mkdir -p $(libuserv) $(services)
                cp service $(libuserv)/ipif
                cp ipif $(services)/ipif:new
+               cp udptunnel $(bindir)/.
                set -e; cd $(services); test -f ipif || mv ipif:new ipif