summaryrefslogtreecommitdiffstatsabout
path: root/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in156
1 files changed, 14 insertions, 142 deletions
diff --git a/Makefile.in b/Makefile.in
index 2865d5f..4c60869 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,98 +1,17 @@
1# @configure_input@ 1# @configure_input@
2 2
3# Modify these top variables. 3# Modify these top variables.
4SUBDIRS = docs contrib 4SUBDIRS = docs contrib src utility
5
6HEADERS = mod_log_sql.h \
7 functions.h \
8 functions13.h \
9 functions20.h \
10 apache13.h \
11 apache20.h \
12 winconfig.h
13
14CFLAGS = -Wc,-Wall -Wc,-fno-strict-aliasing
15
16ifeq (@OOO_MAINTAIN@,1)
17CFLAGS += -Wc,-Werror
18endif
19 5
20EXTRA_DIST = AUTHORS INSTALL TODO LICENSE CHANGELOG \ 6EXTRA_DIST = AUTHORS INSTALL TODO LICENSE CHANGELOG \
21 build-apache13.bat build-apache2.bat \ 7 build-apache13.bat build-apache2.bat \
22 8
23coreSOURCES = @PACKAGE_NAME@.c
24coreTARGET = @PACKAGE_NAME@@APXS_EXTENSION@
25coreLDADD = @RT_LIBS@
26coreCFLAGS =
27coreNAME = log_sql
28TARGETS = $(coreTARGET)
29
30sslSOURCES = @PACKAGE_NAME@_ssl.c
31sslTARGET = @PACKAGE_NAME@_ssl@APXS_EXTENSION@
32sslLDADD =
33sslCFLAGS = @MOD_SSL_CFLAGS@
34sslNAME = log_sql_ssl
35
36ifeq (@WANT_SSL_MOD@,1)
37TARGETS += $(sslTARGET)
38endif
39
40logioSOURCES = @PACKAGE_NAME@_logio.c
41logioTARGET = @PACKAGE_NAME@_logio@APXS_EXTENSION@
42logioLDADD =
43logioCFLAGS =
44logioNAME = log_sql_logio
45
46ifeq (@WANT_LOGIO_MOD@,1)
47TARGETS += $(logioTARGET)
48endif
49
50mysqlSOURCES = @PACKAGE_NAME@_mysql.c
51mysqlTARGET = @PACKAGE_NAME@_mysql@APXS_EXTENSION@
52mysqlLDADD = @MYSQL_LDFLAGS@ @MYSQL_LIBS@
53mysqlCFLAGS = @MYSQL_CFLAGS@
54mysqlNAME = log_sql_mysql
55
56ifeq (@WANT_MYSQL_MOD@,1)
57TARGETS += $(mysqlTARGET)
58endif
59
60pgsqlSOURCES = @PACKAGE_NAME@_pgsql.c
61pgsqlTARGET = @PACKAGE_NAME@_pgsql@APXS_EXTENSION@
62pgsqlLDADD = @PGSQL_LDFLAGS@ @PGSQL_LIBS@
63pgsqlCFLAGS = @PGSQL_CFLAGS@
64pgsqlNAME = log_sql_pgsql
65
66ifeq (@WANT_PGSQL_MOD@,1)
67TARGETS += $(pgsqlTARGET)
68endif
69
70dbiSOURCES = @PACKAGE_NAME@_dbi.c
71dbiTARGET = @PACKAGE_NAME@_dbi@APXS_EXTENSION@
72dbiLDADD = @DBI_LDFLAGS@ @DBI_LIBS@
73dbiCFLAGS = @DBI_CFLAGS@
74dbiNAME = log_sql_dbi
75
76ifeq (@WANT_DBI_MOD@,1)
77TARGETS += $(dbiTARGET)
78endif
79
80#Don't modify anything below here 9#Don't modify anything below here
81 10
82PROVIDERS_SUBDIRS = @subdirs@ 11top_srcdir = @top_srcdir@
83
84srcdir = @abs_srcdir@ 12srcdir = @abs_srcdir@
85builddir = @abs_builddir@ 13builddir = @abs_builddir@
86 14
87OBJ = $(coreSOURCES:.c=.o) $(logioSOURCES:.c=.o) $(sslSOURCES:.c=.o) $(mysqlSOURCES:.c=.o) \
88 $(dbiSOURCES:.c=.o) $(pgsqlSOURCES:.c=.o)
89
90LO = $(coreSOURCES:.c=.lo) $(logioSOURCES:.c=.lo) $(sslSOURCES:.c=.lo) $(mysqlSOURCES:.c=.lo) \
91 $(dbiSOURCES:.c=.lo) $(pgsqlSOURCES:.c=.lo)
92
93SLO = $(coreSOURCES:.c=.slo) $(logioSOURCES:.c=.slo) $(sslSOURCES:.c=.slo) $(mysqlSOURCES:.c=.slo) \
94 $(dbiSOURCES:.c=.slo) $(pgsqlSOURCES:.c=.slo)
95
96STD_DIST = install-sh \ 15STD_DIST = install-sh \
97 config.sub \ 16 config.sub \
98 config.guess \ 17 config.guess \
@@ -101,16 +20,15 @@ STD_DIST = install-sh \
101 configure.ac \ 20 configure.ac \
102 configure \ 21 configure \
103 stamp-h.in \ 22 stamp-h.in \
104 config.h.in 23 include/config.h.in
105 24
106DISTFILES = $(STD_DIST) $(EXTRA_DIST) $(coreSOURCES) $(HEADERS) \ 25DISTFILES = $(STD_DIST) $(EXTRA_DIST)
107 $(sslSOURCES) $(logioSOURCES) $(mysqlSOURCES) $(pgsqlSOURCES) $(dbiSOURCES)
108 26
109all: $(TARGETS) all-subdirs 27all: all-subdirs
110 28
111all-subdirs install-subdirs activate-subdirs clean-subdirs distclean-subdirs: 29all-subdirs install-subdirs activate-subdirs clean-subdirs distclean-subdirs:
112 @otarget=`echo $@|sed s/-subdirs//`; \ 30 @otarget=`echo $@|sed s/-subdirs//`; \
113 list=' $(PROVIDERS_SUBDIRS) $(SUBDIRS)'; \ 31 list=' $(SUBDIRS)'; \
114 for i in $$list; do \ 32 for i in $$list; do \
115 if test -d "$$i"; then \ 33 if test -d "$$i"; then \
116 target="$$otarget"; \ 34 target="$$otarget"; \
@@ -124,49 +42,9 @@ all-subdirs install-subdirs activate-subdirs clean-subdirs distclean-subdirs:
124 done; 42 done;
125 43
126TODO: TODO.in 44TODO: TODO.in
127 @./gen_todo.pl 45 @./m4/scripts/gen_todo.pl
128 46
129$(coreTARGET): $(coreSOURCES) $(HEADERS) 47install: install-subdirs
130 @@APXS_BIN@ -c -o $(coreTARGET) $(coreCFLAGS) $(CFLAGS) \
131 @DEFS@ @AP_DEFS@ $(coreLDADD) $(coreSOURCES)
132
133$(logioTARGET): $(logioSOURCES) $(HEADERS)
134 @@APXS_BIN@ -c -o $(logioTARGET) $(logioCFLAGS) $(CFLAGS) \
135 @DEFS@ @AP_DEFS@ $(logioLDADD) $(logioSOURCES)
136
137$(sslTARGET): $(sslSOURCES) $(HEADERS)
138 @@APXS_BIN@ -c -o $(sslTARGET) $(sslCFLAGS) $(CFLAGS) \
139 @DEFS@ @AP_DEFS@ $(sslLDADD) $(sslSOURCES)
140
141$(mysqlTARGET): $(mysqlSOURCES) $(HEADERS)
142 @@APXS_BIN@ -c -o $(mysqlTARGET) $(mysqlCFLAGS) $(CFLAGS) \
143 @DEFS@ @AP_DEFS@ $(mysqlLDADD) $(mysqlSOURCES)
144
145$(pgsqlTARGET): $(pgsqlSOURCES) $(HEADERS)
146 @@APXS_BIN@ -c -o $(pgsqlTARGET) $(pgsqlCFLAGS) $(CFLAGS) \
147 @DEFS@ @AP_DEFS@ $(pgsqlLDADD) $(pgsqlSOURCES)
148
149$(dbiTARGET): $(dbiSOURCES) $(HEADERS)
150 @@APXS_BIN@ -c -o $(dbiTARGET) $(dbiCFLAGS) $(CFLAGS) \
151 @DEFS@ @AP_DEFS@ $(dbiLDADD) $(dbiSOURCES)
152
153install: $(TARGETS) install-subdirs
154 @@APXS_BIN@ -n $(coreNAME) -i $(coreTARGET); \
155 if test @WANT_MYSQL_MOD@ -eq 1; then \
156 @APXS_BIN@ -n $(mysqlNAME) -i $(mysqlTARGET); \
157 fi; \
158 if test @WANT_PGSQL_MOD@ -eq 1; then \
159 @APXS_BIN@ -n $(pgsqlNAME) -i $(pgsqlTARGET); \
160 fi; \
161 if test @WANT_DBI_MOD@ -eq 1; then \
162 @APXS_BIN@ -n $(dbiNAME) -i $(dbiTARGET); \
163 fi; \
164 if test @WANT_SSL_MOD@ -eq 1; then \
165 @APXS_BIN@ -n $(sslNAME) -i $(sslTARGET); \
166 fi; \
167 if test @WANT_LOGIO_MOD@ -eq 1; then \
168 @APXS_BIN@ -n $(logioNAME) -i $(logioTARGET); \
169 fi; \
170 echo "*************************************************************************"; \ 48 echo "*************************************************************************"; \
171 echo "*** The mod_log_sql modules have been installed."; \ 49 echo "*** The mod_log_sql modules have been installed."; \
172 echo "*** Please edit your Apache configuration files and"; \ 50 echo "*** Please edit your Apache configuration files and"; \
@@ -183,17 +61,11 @@ install: $(TARGETS) install-subdirs
183 echo "*************************************************************************"; 61 echo "*************************************************************************";
184 62
185activate: activate-subdirs 63activate: activate-subdirs
186 @@APXS_BIN@ -n $(coreNAME) -i -a $(coreTARGET); \
187 if test @WANT_SSL_MOD@ -eq 1; then \
188 @APXS_BIN@ -n $(sslNAME) -i -a $(sslTARGET); \
189 fi
190 64
191clean: clean-subdirs 65clean: clean-subdirs
192 $(RM) $(OBJ) $(SLO) $(LO) $(TARGETS)
193 $(RM) -r .libs
194 66
195distclean: clean distclean-subdirs 67distclean: clean distclean-subdirs
196 $(RM) config.status config.log config.h config.h.in \ 68 $(RM) config.status config.log include/config.h include/config.h.in \
197 configure stamp-h stamp-h.in Makefile aclocal.m4 69 configure stamp-h stamp-h.in Makefile aclocal.m4
198 $(RM) -r autom4te-2.53.cache 70 $(RM) -r autom4te-2.53.cache
199 71
@@ -201,7 +73,7 @@ DESTDIR = @PACKAGE_NAME@-@PACKAGE_VERSION@
201DESTTGZ = $(DESTDIR).tar.gz 73DESTTGZ = $(DESTDIR).tar.gz
202dist: 74dist:
203 @rm -rf $(DESTDIR); \ 75 @rm -rf $(DESTDIR); \
204 list=' $(PROVIDERS_SUBDIRS) $(SUBDIRS)'; \ 76 list=' $(SUBDIRS)'; \
205 for i in $$list; do \ 77 for i in $$list; do \
206 if test -d "$$i"; then \ 78 if test -d "$$i"; then \
207 target=local-dist; \ 79 target=local-dist; \
@@ -222,8 +94,8 @@ dist:
222 rm -rf $(DESTDIR); \ 94 rm -rf $(DESTDIR); \
223 95
224local-dist: $(DISTFILES) 96local-dist: $(DISTFILES)
225 @mkdir -p $(DESTDIR); \ 97 mkdir -p $(DESTDIR)
226 cp -dp --parents $(DISTFILES) $(DESTDIR); 98 cp -dp --parents $(DISTFILES) $(DESTDIR)
227 99
228.PHONY: include all-subdirs activate-subdirs install-subdirs \ 100.PHONY: include all-subdirs activate-subdirs install-subdirs \
229 clean-subdirs distclean-subdirs dist 101 clean-subdirs distclean-subdirs dist
@@ -241,7 +113,7 @@ stamp-h: config.h.in config.status
241 ./config.status 113 ./config.status
242 114
243$(srcdir)/configure: configure.ac aclocal.m4 115$(srcdir)/configure: configure.ac aclocal.m4
244 cd $(srcdir) && autoconf-2.53 116 cd $(srcdir) && autoconf
245 117
246Makefile: Makefile.in config.status 118Makefile: Makefile.in config.status
247 ./config.status 119 ./config.status