X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=ipif%2FMakefile;h=c2e3a7f0d727ff7eb46ac31d1484477c9530cc85;hb=ed509ebded419ce594b9c6a6942cf41033a7a16b;hp=d7bf43fdb2ad6722cebf0ed18aa3b66a9b515721;hpb=caa68336fa6c005906fd0f88e444ce6a350cfa79;p=userv-utils.git diff --git a/ipif/Makefile b/ipif/Makefile index d7bf43f..c2e3a7f 100644 --- a/ipif/Makefile +++ b/ipif/Makefile @@ -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