diff --git a/miniupnpd/Makefile b/miniupnpd/Makefile index 20c1926..446bc7c 100644 --- a/miniupnpd/Makefile +++ b/miniupnpd/Makefile @@ -143,7 +143,7 @@ TESTPORTINUSEOBJS = testportinuse.o portinuse.o getifaddr.o EXECUTABLES = miniupnpd testupnpdescgen testgetifstats \ testupnppermissions miniupnpdctl \ testgetifaddr testgetroute testasyncsendto \ - testportinuse + testportinuse testssdppktgen .if $(OSNAME) == "Darwin" LIBS = @@ -172,6 +172,7 @@ clean: miniupnpdctl.o testgetifaddr.o testgetroute.o testasyncsendto.o \ testportinuse.o \ $(PFOBJS) $(IPFOBJS) $(IPFWOBJS) + $(RM) validateupnppermissions validategetifaddr validatessdppktgen install: miniupnpd genuuid $(STRIP) miniupnpd @@ -198,10 +199,25 @@ genuuid: sed -e "s/^uuid=[-0-9a-fA-F]*/uuid=$(UUID)/" miniupnpd.conf.before > miniupnpd.conf $(RM) miniupnpd.conf.before +check: validateupnppermissions validategetifaddr validatessdppktgen + +validateupnppermissions: testupnppermissions testupnppermissions.sh + ./testupnppermissions.sh + touch $@ + +validategetifaddr: testgetifaddr testgetifaddr.sh + ./testgetifaddr.sh + touch $@ + +validatessdppktgen: testssdppktgen + ./testssdppktgen + touch $@ + depend: config.h mkdep $(ALLOBJS:.o=.c) testupnpdescgen.c testgetifstats.c \ testupnppermissions.c miniupnpdctl.c testgetifaddr.c \ - testgetroute.c testportinuse.c testasyncsendto.c + testgetroute.c testportinuse.c testasyncsendto.c \ + testssdppktgen.c miniupnpd: config.h $(ALLOBJS) $(CC) $(CFLAGS) -o $@ $(ALLOBJS) $(LIBS) diff --git a/miniupnpd/Makefile.linux b/miniupnpd/Makefile.linux index a496869..70d2880 100644 --- a/miniupnpd/Makefile.linux +++ b/miniupnpd/Makefile.linux @@ -168,7 +168,7 @@ clean: $(RM) testgetroute.o testasyncsendto.o $(RM) testportinuse.o $(RM) miniupnpdctl.o - $(RM) validateupnppermissions validategetifaddr + $(RM) validateupnppermissions validategetifaddr validatessdppktgen install: miniupnpd miniupnpd.8 miniupnpd.conf genuuid \ netfilter/iptables_init.sh netfilter/iptables_removeall.sh \