+ set -e; for f in $(SHAREFILES); do cp $$f $(shareuserv)/.; done
+
+install-docs:
+ sed -n '1,/^$$/p' service.c >$(docdir)/userv-ipif/service.c.txt
+
+install-examples:
+ set -e; if [ "x$depr" = x ]; then \
+ mkdir -p $(etcvpn); \
+ cp *.example $(etcvpn)/.; \
+ fi
+
+udptunnel-reconf: udptunnel-reconf.pl Makefile
+ perl -p \
+ -e ' print " ' \
+ -e '\$$shareuserv= \"$(shareuserv)\";\n ' \
+ -e '\$$etcvpn= \"$(etcvpn)\";\n ' \
+ -e '\$$varlibvpn= \"$(varlibvpn)\";\n" if m#^\# \@\@\@\-#; ' \
+ -e ' $$_="" if m/^\# \@\@\@\-/ .. m/^\# \-\@\@\@/; ' \
+ <$< >$@.new
+ chmod +x $@.new
+ mv -f $@.new $@
+
+
+udptunnel-forwarder: $(OBJS_FORWARD)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS_FORWARD)
+
+blowfishtest: $(OBJS_BFTEST)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS_BFTEST)
+
+automech.h: automechgen.sh Makefile
+ ./$< $(MECHFILES)
+
+automech.c: automech.h
+
+clean:
+ rm -f *.o core automech.[ch] *~ ./#*#
+
+realclean distclean: clean
+ rm -f $(TARGETS)
+
+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