build doc with Doxygen

This commit is contained in:
Thomas Bernard 2019-09-24 11:20:17 +02:00
parent 8a56bb50cf
commit 81e0d83403
5 changed files with 13 additions and 2 deletions

View File

@ -14,6 +14,7 @@ job_miniupnpd:
- "make -j3 -f Makefile.linux && make -f Makefile.linux check" - "make -j3 -f Makefile.linux && make -f Makefile.linux check"
- "make -f Makefile.linux clean" - "make -f Makefile.linux clean"
- "make -j3 -f Makefile.linux_nft" - "make -j3 -f Makefile.linux_nft"
- "make -f Makefile.linux_nft dox"
# i686-w64-mingw32-gcc # i686-w64-mingw32-gcc
job_miniupnpc: job_miniupnpc:

View File

@ -56,6 +56,7 @@ script:
- 'CONFIG_OPTIONS="--ipv6 --igd2" make -f $MAKEFILE -j3' - 'CONFIG_OPTIONS="--ipv6 --igd2" make -f $MAKEFILE -j3'
- 'if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$PROJECT" = "miniupnpd" ]; then make -f Makefile.linux_nft ; fi' - 'if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$PROJECT" = "miniupnpd" ]; then make -f Makefile.linux_nft ; fi'
- make -f $MAKEFILE check - make -f $MAKEFILE check
- 'if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$PROJECT" = "miniupnpd" ]; then make -f $MAKEFILE dox ; fi'
- if [ "$PROJECT" = "miniupnpc" ]; then - if [ "$PROJECT" = "miniupnpc" ]; then
INSTALLPREFIX="$HOME/_pythonmodule" make -f $MAKEFILE pythonmodule; INSTALLPREFIX="$HOME/_pythonmodule" make -f $MAKEFILE pythonmodule;
fi fi

View File

@ -29,6 +29,7 @@ RM = rm -f
MV = mv MV = mv
INSTALL = install INSTALL = install
STRIP = strip STRIP = strip
DOXYGEN ?= doxygen
# OSNAME and FWNAME are used for building OS or FW dependent code. # OSNAME and FWNAME are used for building OS or FW dependent code.
OSNAME != uname -s OSNAME != uname -s
@ -225,6 +226,9 @@ depend: config.h
testgetroute.c testportinuse.c testasyncsendto.c \ testgetroute.c testportinuse.c testasyncsendto.c \
testssdppktgen.c testssdppktgen.c
dox: miniupnpd.doxyconf
$(DOXYGEN) $>
miniupnpd: config.h $(ALLOBJS) miniupnpd: config.h $(ALLOBJS)
$(CC) $(LDFLAGS) -o $@ $(ALLOBJS) $(LIBS) $(CC) $(LDFLAGS) -o $@ $(ALLOBJS) $(LIBS)

View File

@ -39,6 +39,7 @@ INSTALL = install
STRIP ?= strip STRIP ?= strip
PKG_CONFIG ?= pkg-config PKG_CONFIG ?= pkg-config
CP = cp CP = cp
DOXYGEN ?= doxygen
INSTALLPREFIX ?= $(PREFIX)/usr INSTALLPREFIX ?= $(PREFIX)/usr
@ -187,7 +188,7 @@ EXECUTABLES = miniupnpd testupnpdescgen testgetifstats \
testgetroute testasyncsendto testportinuse \ testgetroute testasyncsendto testportinuse \
testssdppktgen testminissdp testssdppktgen testminissdp
.PHONY: all clean install depend genuuid .PHONY: all clean install depend genuuid dox
all: $(EXECUTABLES) all: $(EXECUTABLES)
@ -202,6 +203,7 @@ clean:
$(RM) testssdppktgen.o $(RM) testssdppktgen.o
$(RM) miniupnpdctl.o $(RM) miniupnpdctl.o
$(RM) validateupnppermissions validategetifaddr validatessdppktgen $(RM) validateupnppermissions validategetifaddr validatessdppktgen
$(RM) -r dox/
install: miniupnpd miniupnpd.8 miniupnpd.conf genuuid \ install: miniupnpd miniupnpd.8 miniupnpd.conf genuuid \
netfilter/iptables_init.sh netfilter/iptables_removeall.sh \ netfilter/iptables_init.sh netfilter/iptables_removeall.sh \
@ -284,6 +286,9 @@ depend: config.h
testgetroute.c testasyncsendto.c testportinuse.c \ testgetroute.c testasyncsendto.c testportinuse.c \
miniupnpdctl.c testssdppktgen.c 2>/dev/null miniupnpdctl.c testssdppktgen.c 2>/dev/null
dox: miniupnpd.doxyconf
$(DOXYGEN) $<
# DO NOT DELETE # DO NOT DELETE
miniupnpd.o: config.h macros.h upnpglobalvars.h upnppermissions.h miniupnpd.o: config.h macros.h upnpglobalvars.h upnppermissions.h

View File

@ -171,7 +171,7 @@ depend: config.h
miniupnpdctl.c 2>/dev/null miniupnpdctl.c 2>/dev/null
dox: dox:
doxygen miniupnpd.doxyconf $(DOXYGEN) miniupnpd.doxyconf
# DO NOT DELETE # DO NOT DELETE