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 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234
|
# @configure_input@
# Modify these top variables.
SUBDIRS = docs contrib
HEADERS = mod_log_sql.h \
functions.h \
functions13.h \
functions20.h \
apache13.h \
apache20.h \
winconfig.h
CFLAGS = -Wc,-Wall -Wc,-fno-strict-aliasing
CFLAGS += -Wc,-ffile-prefix-map=$(CURDIR)=.
ifeq (@OOO_MAINTAIN@,1)
CFLAGS += -Wc,-Werror
endif
EXTRA_DIST = AUTHORS INSTALL TODO LICENSE CHANGELOG \
build-apache13.bat build-apache2.bat
coreSOURCES = @PACKAGE_NAME@.c
coreTARGET = @PACKAGE_NAME@@APXS_EXTENSION@
coreLDADD = @RT_LIBS@
coreCFLAGS =
coreNAME = log_sql
TARGETS = $(coreTARGET)
sslSOURCES = @PACKAGE_NAME@_ssl.c
sslTARGET = @PACKAGE_NAME@_ssl@APXS_EXTENSION@
sslLDADD =
sslCFLAGS = @MOD_SSL_CFLAGS@
sslNAME = log_sql_ssl
ifeq (@WANT_SSL_MOD@,1)
TARGETS += $(sslTARGET)
endif
mysqlSOURCES = @PACKAGE_NAME@_mysql.c
mysqlTARGET = @PACKAGE_NAME@_mysql@APXS_EXTENSION@
mysqlLDADD = @MYSQL_LDFLAGS@ @MYSQL_LIBS@
mysqlCFLAGS = @MYSQL_CFLAGS@
mysqlNAME = log_sql_mysql
ifeq (@WANT_MYSQL_MOD@,1)
TARGETS += $(mysqlTARGET)
endif
pgsqlSOURCES = @PACKAGE_NAME@_pgsql.c
pgsqlTARGET = @PACKAGE_NAME@_pgsql@APXS_EXTENSION@
pgsqlLDADD = @PGSQL_LDFLAGS@ @PGSQL_LIBS@
pgsqlCFLAGS = @PGSQL_CFLAGS@
pgsqlNAME = log_sql_pgsql
ifeq (@WANT_PGSQL_MOD@,1)
TARGETS += $(pgsqlTARGET)
endif
dbiSOURCES = @PACKAGE_NAME@_dbi.c
dbiTARGET = @PACKAGE_NAME@_dbi@APXS_EXTENSION@
dbiLDADD = @DBI_LDFLAGS@ @DBI_LIBS@
dbiCFLAGS = @DBI_CFLAGS@
dbiNAME = log_sql_dbi
ifeq (@WANT_DBI_MOD@,1)
TARGETS += $(dbiTARGET)
endif
#Don't modify anything below here
PROVIDERS_SUBDIRS = @subdirs@
srcdir = @abs_srcdir@
builddir = @abs_builddir@
OBJ = $(coreSOURCES:.c=.o) $(sslSOURCES:.c=.o) $(mysqlSOURCES:.c=.o) \
$(dbiSOURCES:.c=.o) $(pgsqlSOURCES:.c=.o)
LO = $(coreSOURCES:.c=.lo) $(sslSOURCES:.c=.lo) $(mysqlSOURCES:.c=.lo) \
$(dbiSOURCES:.c=.lo) $(pgsqlSOURCES:.c=.lo)
SLO = $(coreSOURCES:.c=.slo) $(sslSOURCES:.c=.slo) $(mysqlSOURCES:.c=.slo) \
$(dbiSOURCES:.c=.slo) $(pgsqlSOURCES:.c=.slo)
STD_DIST = install-sh \
config.sub \
config.guess \
aclocal.m4 \
Makefile.in \
configure.ac \
configure \
stamp-h.in \
config.h.in
DISTFILES = $(STD_DIST) $(EXTRA_DIST) $(coreSOURCES) $(HEADERS) \
$(sslSOURCES) $(mysqlSOURCES) $(pgsqlSOURCES) $(dbiSOURCES)
all: $(TARGETS) all-subdirs
all-subdirs install-subdirs activate-subdirs clean-subdirs distclean-subdirs:
@otarget=`echo $@|sed s/-subdirs//`; \
list=' $(PROVIDERS_SUBDIRS) $(SUBDIRS)'; \
for i in $$list; do \
if test -d "$$i"; then \
target="$$otarget"; \
echo "Making $$target in $$i"; \
if test "$$i" = "."; then \
made_local=yes; \
target="local-$$target"; \
fi; \
(cd $$i && $(MAKE) $$target) || exit 1; \
fi; \
done;
TODO: TODO.in
./gen_todo.pl
$(coreTARGET): $(coreSOURCES) $(HEADERS)
@APXS_BIN@ -c -o $(coreTARGET) $(coreCFLAGS) $(CFLAGS) \
@DEFS@ @AP_DEFS@ $(coreLDADD) $(coreSOURCES)
$(sslTARGET): $(sslSOURCES) $(HEADERS)
@APXS_BIN@ -c -o $(sslTARGET) $(sslCFLAGS) $(CFLAGS) \
@DEFS@ @AP_DEFS@ $(sslLDADD) $(sslSOURCES)
$(mysqlTARGET): $(mysqlSOURCES) $(HEADERS)
@APXS_BIN@ -c -o $(mysqlTARGET) $(mysqlCFLAGS) $(CFLAGS) \
@DEFS@ @AP_DEFS@ $(mysqlLDADD) $(mysqlSOURCES)
$(pgsqlTARGET): $(pgsqlSOURCES) $(HEADERS)
@APXS_BIN@ -c -o $(pgsqlTARGET) $(pgsqlCFLAGS) $(CFLAGS) \
@DEFS@ @AP_DEFS@ $(pgsqlLDADD) $(pgsqlSOURCES)
$(dbiTARGET): $(dbiSOURCES) $(HEADERS)
@APXS_BIN@ -c -o $(dbiTARGET) $(dbiCFLAGS) $(CFLAGS) \
@DEFS@ @AP_DEFS@ $(dbiLDADD) $(dbiSOURCES)
install: $(TARGETS) install-subdirs
@APXS_BIN@ -n $(coreNAME) -i $(coreTARGET); \
if test @WANT_MYSQL_MOD@ -eq 1; then \
@APXS_BIN@ -n $(mysqlNAME) -i $(mysqlTARGET); \
fi; \
if test @WANT_PGSQL_MOD@ -eq 1; then \
@APXS_BIN@ -n $(pgsqlNAME) -i $(pgsqlTARGET); \
fi; \
if test @WANT_DBI_MOD@ -eq 1; then \
@APXS_BIN@ -n $(dbiNAME) -i $(dbiTARGET); \
fi; \
if test @WANT_SSL_MOD@ -eq 1; then \
@APXS_BIN@ -n $(sslNAME) -i $(sslTARGET); \
fi; \
echo "*************************************************************************"; \
echo "*** The mod_log_sql modules have been installed."; \
echo "*** Please edit your Apache configuration files and"; \
echo "*** add the appropriate LoadModule directives per the documentation"; \
echo "*** in docs/manual.html"; \
echo "*** If you have previously used 1.18 or lower then you must change"; \
echo "*** >LoadModule sql_log_module modules/mod_log_sql.so"; \
echo "*** to"; \
echo "*** >LoadModule log_sql_module modules/mod_log_sql.so"; \
echo "*** in your httpd.conf as the internal name of the module has changed."; \
echo "*** "; \
echo "*** Also read the documentation about using SSL support and new "; \
echo "*** configuration directives."; \
echo "*************************************************************************";
activate: activate-subdirs
@APXS_BIN@ -n $(coreNAME) -i -a $(coreTARGET); \
if test @WANT_SSL_MOD@ -eq 1; then \
@APXS_BIN@ -n $(sslNAME) -i -a $(sslTARGET); \
fi
clean: clean-subdirs
$(RM) $(OBJ) $(SLO) $(LO) $(TARGETS)
$(RM) -r .libs
distclean: clean distclean-subdirs
$(RM) config.status config.log config.h \
Makefile config.nice stamp-h
$(RM) -r autom4te-2.53.cache
DESTDIR = @PACKAGE_NAME@-@PACKAGE_VERSION@
DESTTGZ = $(DESTDIR).tar.gz
dist:
@rm -rf $(DESTDIR); \
list=' $(PROVIDERS_SUBDIRS) $(SUBDIRS)'; \
for i in $$list; do \
if test -d "$$i"; then \
target=local-dist; \
echo "Making $$target in $$i"; \
if test "$$i" = "."; then \
made_local=yes; \
target="local-dist"; \
fi; \
NEWDESTDIR=$(builddir)/$(DESTDIR)/$$i; \
echo $(NEWDESTDIR); \
(cd $$i && $(MAKE) DESTDIR=$(builddir)/$(DESTDIR)/$$i $$target) || exit 1; \
fi; \
done; \
if test "$$made_local" != "yes"; then \
$(MAKE) "local-dist" || exit 1; \
fi; \
tar -zcf $(DESTTGZ) $(DESTDIR); \
rm -rf $(DESTDIR); \
local-dist: $(DISTFILES)
@mkdir -p $(DESTDIR); \
cp -dp --parents $(DISTFILES) $(DESTDIR);
.PHONY: include all-subdirs activate-subdirs install-subdirs \
clean-subdirs distclean-subdirs dist
# Regenerate makefiles
# autoheader might not change config.h.in, so touch a stamp file.
$(srcdir)/config.h.in: stamp-h.in
$(srcdir)/stamp-h.in: configure.ac aclocal.m4
cd $(srcdir) && autoheader-2.53
echo timestamp > $(srcdir)/stamp-h.in
config.h: stamp-h
stamp-h: config.h.in config.status
./config.status
$(srcdir)/configure: configure.ac aclocal.m4
cd $(srcdir) && autoconf-2.53
Makefile: Makefile.in config.status
./config.status
config.status: configure
./config.status --recheck
|