diff options
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 43 |
1 files changed, 27 insertions, 16 deletions
diff --git a/Makefile.in b/Makefile.in index 4061629..93acec9 100644 --- a/Makefile.in +++ b/Makefile.in | |||
@@ -2,8 +2,7 @@ | |||
2 | 2 | ||
3 | # Modify these top variables. | 3 | # Modify these top variables. |
4 | SUBDIRS = Documentation contrib | 4 | SUBDIRS = Documentation contrib |
5 | SOURCES = @PACKAGE_NAME@.c \ | 5 | SOURCES = @PACKAGE_NAME@.c |
6 | @PACKAGE_NAME@_mysql.c | ||
7 | 6 | ||
8 | HEADERS = mod_log_sql.h \ | 7 | HEADERS = mod_log_sql.h \ |
9 | functions.h \ | 8 | functions.h \ |
@@ -14,22 +13,28 @@ HEADERS = mod_log_sql.h \ | |||
14 | 13 | ||
15 | CFLAGS = -Wc,-Wall -Wc,-Werror -Wc,-fno-strict-aliasing | 14 | CFLAGS = -Wc,-Wall -Wc,-Werror -Wc,-fno-strict-aliasing |
16 | 15 | ||
17 | INCLUDES = @MYSQL_CFLAGS@ | 16 | LDADD = @RT_LIBS@ |
18 | |||
19 | LDADD = @MYSQL_LDFLAGS@ @MYSQL_LIBS@ @RT_LIBS@ | ||
20 | 17 | ||
21 | EXTRA_DIST = AUTHORS INSTALL TODO LICENSE CHANGELOG | 18 | EXTRA_DIST = AUTHORS INSTALL TODO LICENSE CHANGELOG |
22 | 19 | ||
23 | TARGET = @PACKAGE_NAME@@APXS_EXTENSION@ | 20 | TARGET = @PACKAGE_NAME@@APXS_EXTENSION@ |
24 | 21 | ||
25 | sslSOURCES = @PACKAGE_NAME@_ssl.c | 22 | sslSOURCES = @PACKAGE_NAME@_ssl.c |
26 | |||
27 | sslTARGET = @PACKAGE_NAME@_ssl@APXS_EXTENSION@ | 23 | sslTARGET = @PACKAGE_NAME@_ssl@APXS_EXTENSION@ |
24 | sslLDADD = | ||
25 | sslCFLAGS = @MOD_SSL_CFLAGS@ | ||
26 | sslNAME = log_sql_ssl | ||
27 | |||
28 | mysqlSOURCES = @PACKAGE_NAME@_mysql.c | ||
29 | mysqlTARGET = @PACKAGE_NAME@_mysql@APXS_EXTENSION@ | ||
30 | mysqlLDADD = @MYSQL_LDFLAGS@ @MYSQL_LIBS@ | ||
31 | mysqlCFLAGS = @MYSQL_CFLAGS@ | ||
32 | mysqlNAME = log_sql_mysql | ||
28 | 33 | ||
29 | ifeq (@WANT_SSL_MOD@,1) | 34 | ifeq (@WANT_SSL_MOD@,1) |
30 | TARGETS = $(TARGET) $(sslTARGET) | 35 | TARGETS = $(TARGET) $(mysqlTARGET) $(sslTARGET) |
31 | else | 36 | else |
32 | TARGETS = $(TARGET) | 37 | TARGETS = $(TARGET) $(mysqlTARGET) |
33 | endif | 38 | endif |
34 | 39 | ||
35 | #Don't modify anything below here | 40 | #Don't modify anything below here |
@@ -39,11 +44,11 @@ PROVIDERS_SUBDIRS = @subdirs@ | |||
39 | srcdir = @abs_srcdir@ | 44 | srcdir = @abs_srcdir@ |
40 | builddir = @abs_builddir@ | 45 | builddir = @abs_builddir@ |
41 | 46 | ||
42 | OBJ = $(SOURCES:.c=.o) $(sslSOURCES:.c=.o) | 47 | OBJ = $(SOURCES:.c=.o) $(sslSOURCES:.c=.o) $(mysqlSOURCES:.c=.o) |
43 | 48 | ||
44 | LO = $(SOURCES:.c=.lo) $(sslSOURCES:.c=.lo) | 49 | LO = $(SOURCES:.c=.lo) $(sslSOURCES:.c=.lo) $(mysqlSOURCES:.c=.lo) |
45 | 50 | ||
46 | SLO = $(SOURCES:.c=.slo) $(sslSOURCES:.c=.slo) | 51 | SLO = $(SOURCES:.c=.slo) $(sslSOURCES:.c=.slo) $(mysqlSOURCES:.c=.slo) |
47 | 52 | ||
48 | STD_DIST = install-sh \ | 53 | STD_DIST = install-sh \ |
49 | config.sub \ | 54 | config.sub \ |
@@ -55,7 +60,8 @@ STD_DIST = install-sh \ | |||
55 | stamp-h.in \ | 60 | stamp-h.in \ |
56 | config.h.in | 61 | config.h.in |
57 | 62 | ||
58 | DISTFILES = $(STD_DIST) $(EXTRA_DIST) $(SOURCES) $(sslSOURCES) $(HEADERS) | 63 | DISTFILES = $(STD_DIST) $(EXTRA_DIST) $(SOURCES) $(sslSOURCES) $(mysqlSOURCES) \ |
64 | $(HEADERS) | ||
59 | 65 | ||
60 | all: $(TARGETS) all-subdirs | 66 | all: $(TARGETS) all-subdirs |
61 | 67 | ||
@@ -78,12 +84,16 @@ TODO: TODO.in | |||
78 | @./gen_todo.pl | 84 | @./gen_todo.pl |
79 | 85 | ||
80 | $(TARGET): $(SOURCES) $(HEADERS) | 86 | $(TARGET): $(SOURCES) $(HEADERS) |
81 | @@APXS_BIN@ -c -o $(TARGET) $(INCLUDES) $(CFLAGS) \ | 87 | @@APXS_BIN@ -c -o $(TARGET) $(CFLAGS) \ |
82 | $(LDADD) @DEFS@ @APACHE_DEFS@ $(SOURCES) | 88 | $(LDADD) @DEFS@ @APACHE_DEFS@ $(SOURCES) |
83 | 89 | ||
84 | $(sslTARGET): $(sslSOURCES) $(HEADERS) | 90 | $(sslTARGET): $(sslSOURCES) $(HEADERS) |
85 | @@APXS_BIN@ -c -o $(sslTARGET) $(INCLUDES) @MOD_SSL_CFLAGS@ $(CFLAGS) \ | 91 | @@APXS_BIN@ -c -o $(sslTARGET) $(sslCFLAGS) $(CFLAGS) \ |
86 | @DEFS@ @APACHE_DEFS@ $(sslSOURCES) | 92 | @DEFS@ @APACHE_DEFS@ $(sslLDADD) $(sslSOURCES) |
93 | |||
94 | $(mysqlTARGET): $(mysqlSOURCES) $(HEADERS) | ||
95 | @@APXS_BIN@ -c -o $(mysqlTARGET) $(mysqlCFLAGS) $(CFLAGS) \ | ||
96 | @DEFS@ @APACHE_DEFS@ $(mysqlLDADD) $(mysqlSOURCES) | ||
87 | 97 | ||
88 | include: | 98 | include: |
89 | rm -rf include | 99 | rm -rf include |
@@ -91,8 +101,9 @@ include: | |||
91 | 101 | ||
92 | install: $(TARGETS) install-subdirs | 102 | install: $(TARGETS) install-subdirs |
93 | @@APXS_BIN@ -i $(TARGET); \ | 103 | @@APXS_BIN@ -i $(TARGET); \ |
104 | @APXS_BIN@ -n $(mysqlNAME) -i $(mysqlTARGET); \ | ||
94 | if test @WANT_SSL_MOD@ -eq 1; then \ | 105 | if test @WANT_SSL_MOD@ -eq 1; then \ |
95 | @APXS_BIN@ -i $(sslTARGET); \ | 106 | @APXS_BIN@ -n $(sslNAME) -i $(sslTARGET); \ |
96 | fi; \ | 107 | fi; \ |
97 | echo "*************************************************************************"; \ | 108 | echo "*************************************************************************"; \ |
98 | echo "*** The mod_log_sql modules have been installed."; \ | 109 | echo "*** The mod_log_sql modules have been installed."; \ |