annotate Makefile @ 133:a5d5a55a412d

Friendlier Actionscript/SOAP behaviour. As suggested in the gsoap documentation, we wrap the struct that we actually want to return inside a response structure. (It should be said that I didn't understand a _word_ of the gsoap documentation; I want in particular to highlight section 8.1.1 of the gsoap 2.7.6 user guide, which reads in its entirety "If the single output parameter of a remote method is a complex data type such as a struct or class it is necessary to specify the response element of the remote method as a struct or class at all times. Otherwise, the output parameter will be considered the response element (!), because of the response element specification convention used by gSOAP, as discussed in 8.1.7." and tells me absolutely nothing of use.) Nevertheless, cargo-cult from the documentation...
author mas01cr
date Tue, 23 Oct 2007 17:21:08 +0000
parents 6fafccfe7c05
children e69708c9cd88
rev   line source
mas01cr@127 1 CFLAGS=-O3 -g
mas01cr@0 2 LIBS=-lgsoap++
mas01cr@0 3
mas01cr@2 4 EXECUTABLE=audioDB
mas01cr@2 5
mas01cr@72 6 .PHONY: all clean test
mas01cr@72 7
mas01cr@2 8 all: ${EXECUTABLE}
mas01cr@2 9
mas01cr@2 10 ${EXECUTABLE}.1: ${EXECUTABLE}
mas01cr@2 11 help2man ./${EXECUTABLE} > ${EXECUTABLE}.1
mas01cr@0 12
mas01cr@3 13 README.txt: ${EXECUTABLE}
mas01cr@3 14 ./${EXECUTABLE} --help > README.txt
mas01cr@3 15
mas01cr@1 16 cmdline.c cmdline.h: gengetopt.in
mas01cr@1 17 gengetopt <gengetopt.in
mas01cr@1 18
mas01cr@1 19 soapServer.cpp soapClient.cpp soapC.cpp: audioDBws.h
mas01cr@1 20 soapcpp2 audioDBws.h
mas01cr@1 21
mas01cr@113 22 ${EXECUTABLE}: audioDB.cpp audioDB.h soapServer.cpp soapClient.cpp soapC.cpp cmdline.c cmdline.h
mas01cr@59 23 g++ -c ${CFLAGS} -Wall -Werror audioDB.cpp
mas01cr@59 24 g++ -o ${EXECUTABLE} ${CFLAGS} audioDB.o soapServer.cpp soapClient.cpp soapC.cpp cmdline.c ${LIBS}
mas01cr@2 25
mas01cr@2 26 clean:
mas01cr@2 27 -rm cmdline.c cmdline.h
mas01cr@2 28 -rm soapServer.cpp soapClient.cpp soapC.cpp soapObject.h soapStub.h soapProxy.h soapH.h soapServerLib.cpp soapClientLib.cpp
mas01cr@2 29 -rm adb.nsmap adb.xsd adb.wsdl adb.query.req.xml adb.query.res.xml adb.status.req.xml adb.status.res.xml
mas01cr@25 30 -rm README.txt
mas01cr@59 31 -rm ${EXECUTABLE} ${EXECUTABLE}.1 audioDB.o
mas01cr@59 32 -sh -c "cd tests && sh ./clean.sh"
mas01cr@72 33
mas01cr@73 34 test: ${EXECUTABLE}
mas01cr@72 35 -sh -c "cd tests && sh ./run-tests.sh"