chiark / gitweb /
New encrypting tunnel seems to work !
[userv-utils.git] / ipif / Makefile
index d7bf43fdb2ad6722cebf0ed18aa3b66a9b515721..c2e3a7f0d727ff7eb46ac31d1484477c9530cc85 100644 (file)
@@ -30,7 +30,13 @@ libuserv=    $(libdir)/userv
 etcuserv=      $(etcdir)/userv
 services=      $(etcuserv)/services.d
 
-TARGETS=       service
+TARGETS=       service udptunnel-forwarder blowfishtest
+
+MECHFILES=     null pkcs5 timestamp sequence blowfish
+MECHOBJS=      $(foreach m, $(MECHFILES), mech-$m.o)
+
+OBJS_FORWARD=  forwarder.o $(MECHOBJS) blowfish.o automech.c utils.c
+OBJS_BFTEST=   blowfishtest.o blowfish.o hex.o
 
 all:           $(TARGETS)
 
@@ -40,3 +46,16 @@ install:     all
                cp ipif $(services)/ipif:new
                cp -b udptunnel $(bindir)/.
                set -e; cd $(services); test -f ipif || mv ipif:new ipif
+
+udptunnel-forwarder:   $(OBJS_FORWARD)
+               $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS_FORWARD)
+
+blowfishtest:          $(OBJS_BFTEST)
+               $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS_BFTEST)
+
+automech.c automech.h:         automechgen.sh Makefile
+               ./$< $(MECHFILES)
+
+forwarder.o $(MECHOBJS) automech.o utils.o:    forwarder.h automech.h
+blowfish.o mech-blowfish.o blowfishtest.o:     blowfish.h
+blowfishtest.o hex.o:                          hex.h