root/0.9.0/Makefile.in

Revision 291, 1.9 kB (checked in by ol, 21 months ago)

Rationalize unit test numbers

Line 
1# compiler flags
2CC=@CC@
3CFLAGS=@CFLAGS@ -ansi -pedantic -Wall
4
5# postgresql ... required
6POSTGIS_INC=@POSTGIS_INC@
7POSTGIS_LIB=@POSTGIS_LIB@
8PGFLAGS=$(POSTGIS_INC) $(POSTGIS_LIB)
9# libxml2 ... required
10XML2_INC=@XML2_INC@
11XML2_LIB=@XML2_LIB@
12XMLFLAGS=$(XML2_INC) $(XML2_LIB)
13
14# fast-cgi ... optional
15FCGI_INC=@FCGI_INC@
16FCGI_LIB=@FCGI_LIB@
17FCGIFLAGS=$(FCGI_INC) $(FCGI_LIB)
18
19# install path
20PREFIX=@prefix@
21
22SRC = $(wildcard src/*/*.c)
23
24all:
25        $(CC) $(CFLAGS) $(PGFLAGS) $(XMLFLAGS) $(FCGIFLAGS) $(SRC) -o tinyows
26        @rm -rf tinyows.dSYM
27
28svn-clean: clean doc-clean astyle
29        @find . -name '*~' -exec rm {} \;
30        @rm -f configure
31
32clean:
33        @rm -f tinyows Makefile src/ows_define.h
34        @rm -rf tinyows.dSYM
35        @rm -f demo/config.xml demo/install.sh
36        @rm -f test/config.xml test/install.sh
37
38install:
39        @echo "-----"
40        @echo "TinyOWS Schema install dir in $(PREFIX)/tinyows/schema"
41        mkdir -p $(PREFIX)/tinyows
42        cp -rf schema $(PREFIX)/tinyows/
43        @echo "-----"
44        @echo "Now:"
45        @echo " 1) copy 'tinyows' binary to cgi-bin directory"
46        @echo " 2) - put a workable config.xml file in $(PREFIX) dir"
47        @echo "    - OR launch 'make install-demo' as a superuser"
48
49install-demo:
50        @chmod +x demo/install.sh
51        @demo/install.sh
52        cp -i demo/config.xml $(PREFIX)/tinyows
53
54install-test:
55        @chmod +x test/install.sh
56        @test/install.sh
57        cp -i test/config.xml $(PREFIX)/tinyows
58
59doc-clean:
60        @rm -rf doc/doxygen
61
62doxygen: doc-clean
63        @(which doxygen 2> /dev/null > /dev/null        \
64        && mkdir -p doc/doxygen                         \
65        && doxygen doc/Doxyfile                         \
66        ) || echo "doxygen seems not installed"
67
68test-valgrind:
69        @test/unit_test test/wfs/cite_wfs_1_1_0-sf0 1
70
71test-output:
72        @test/unit_test test/wfs/cite_wfs_1_1_0-sf0 3
73
74test-http:
75        @test/unit_test test/wfs/cite_wfs_1_1_0-sf0 4
76
77test-exception:
78        @test/unit_test test/wfs/cite_wfs_1_1_0-sf0 5
79
80test-stderr:
81        @test/unit_test test/wfs/cite_wfs_1_1_0-sf0 6
82
83
84
85astyle:
86        @(astyle -A4 -S -M -m -f -p -U -o -c $(SRC)) \
87        || echo "astyle seems not installed"
Note: See TracBrowser for help on using the browser.