add jnaerator auto download

This commit is contained in:
Alexey Kuznetsov 2012-01-18 20:51:22 +04:00
parent 2f974e7e6e
commit 60c30eef22
1 changed files with 8 additions and 2 deletions

View File

@ -18,7 +18,7 @@ INSTALL = install
SH = /bin/sh
JAVA = java
# see http://code.google.com/p/jnaerator/
JNAERATOR = jnaerator-0.9.3.jar
JNAERATOR = jnaerator-0.9.7.jar
#following libs are needed on Solaris
#LDLIBS=-lsocket -lnsl -lresolv
@ -192,7 +192,13 @@ testigddescparse: $(TESTIGDDESCPARSE)
miniupnpcstrings.h: miniupnpcstrings.h.in updateminiupnpcstrings.sh
$(SH) updateminiupnpcstrings.sh
jar: $(SHAREDLIBRARY)
jnaerator-0.9.8-shaded.jar:
wget http://jnaerator.googlecode.com/files/jnaerator-0.9.8-shaded.jar
jnaerator-0.9.7.jar:
wget http://jnaerator.googlecode.com/files/jnaerator-0.9.7.jar
jar: $(SHAREDLIBRARY) $(JNAERATOR)
$(JAVA) -jar $(JNAERATOR) -library miniupnpc miniupnpc.h declspec.h upnpcommands.h upnpreplyparse.h igd_desc_parse.h miniwget.h upnperrors.h $(SHAREDLIBRARY) -package fr.free.miniupnp -o . -jar java/miniupnpc_$(OS).jar -v
minihttptestserver: minihttptestserver.o