-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathMakefile.in
91 lines (72 loc) · 2.9 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# compiler flags
CC=@CC@
CFLAGS=@CFLAGS@ -std=c99 -pedantic -Wall
# postgresql ... required
POSTGIS_INC=@POSTGIS_INC@
POSTGIS_LIB=@POSTGIS_LIB@
PGFLAGS=$(POSTGIS_INC) $(POSTGIS_LIB)
# libxml2 ... required
XML2_INC=@XML2_INC@
XML2_LIB=@XML2_LIB@
XMLFLAGS=$(XML2_INC) $(XML2_LIB)
# fast-cgi ... optional
FCGI_INC=@FCGI_INC@
FCGI_LIB=@FCGI_LIB@
FCGIFLAGS=$(FCGI_INC) $(FCGI_LIB)
# install path
PREFIX=@prefix@
# Revision number if subversion there
GIT_FLAGS=@GIT_FLAGS@
SRC=src/fe/fe_comparison_ops.c src/fe/fe_error.c src/fe/fe_filter.c src/fe/fe_filter_capabilities.c src/fe/fe_function.c src/fe/fe_logical_ops.c src/fe/fe_spatial_ops.c src/mapfile/mapfile.c src/ows/ows_bbox.c src/ows/ows.c src/ows/ows_config.c src/ows/ows_error.c src/ows/ows_geobbox.c src/ows/ows_get_capabilities.c src/ows/ows_layer.c src/ows/ows_metadata.c src/ows/ows_psql.c src/ows/ows_request.c src/ows/ows_srs.c src/ows/ows_storage.c src/ows/ows_version.c src/struct/alist.c src/struct/array.c src/struct/buffer.c src/struct/cgi_request.c src/struct/list.c src/struct/mlist.c src/struct/regexp.c src/wfs/wfs_describe.c src/wfs/wfs_error.c src/wfs/wfs_get_capabilities.c src/wfs/wfs_get_feature.c src/wfs/wfs_request.c src/wfs/wfs_transaction.c src/ows/ows_libxml.c
all:
$(CC) $(CFLAGS) $(POSTGIS_INC) $(XML2_INC) $(FCGI_INC) $(SVN_FLAGS) $(SRC) -o tinyows -lfl $(POSTGIS_LIB) $(XML2_LIB) $(FCGI_LIB)
@rm -rf tinyows.dSYM
flex:
lex -i -osrc/mapfile/mapfile.c src/mapfile/mapfile.l
svn-clean: clean doc-clean
@find . -name '*~' -exec rm {} \;
@rm -f configure
clean:
@rm -f tinyows Makefile src/ows_define.h
@rm -rf tinyows.dSYM
@rm -f demo/tinyows.xml demo/install.sh
@rm -f test/tinyows.xml test/install.sh
install:
@echo "-----"
@echo "TinyOWS Schema install dir in $(PREFIX)/share/tinyows/schema"
mkdir -p $(PREFIX)/share/tinyows
rm -rf $(PREFIX)/share/tinyows/schema
cp -rf schema $(PREFIX)/share/tinyows/
@echo "-----"
@echo "Now:"
@echo " 1) copy 'tinyows' binary to cgi-bin directory"
@echo " 2) - put a workable tinyows.xml file in /etc dir"
@echo " - OR launch 'make install-demo' as a superuser"
install-demo:
@chmod +x demo/install.sh
@demo/install.sh
cp -i demo/tinyows.xml /etc/tinyows.xml
check:
@demo/check.sh
install-test100:
@chmod +x test/wfs_100/install_wfs_100.sh
@test/wfs_100/install_wfs_100.sh
cp -i test/wfs_100/config_wfs_100.xml /etc/tinyows.xml
install-test110:
@chmod +x test/wfs_110/install_wfs_110.sh
@test/wfs_110/install_wfs_110.sh
cp -i test/wfs_110/config_wfs_110.xml /etc/tinyows.xml
doc-clean:
@rm -rf doc/doxygen
doxygen: doc-clean
@(which doxygen 2> /dev/null > /dev/null \
&& mkdir -p doc/doxygen \
&& doxygen doc/Doxyfile \
) || echo "doxygen seems not installed"
test-valgrind110:
@test/unit_test test/wfs_110/cite 1
test-valgrind100:
@test/unit_test test/wfs_100/cite 1
astyle:
astyle --style=k/r --indent=spaces=2 -c --lineend=linux -S $(SRC) src/*.h*
rm -f src/*.orig src/*/*.orig