diff options
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 46 |
1 files changed, 30 insertions, 16 deletions
diff --git a/Makefile.in b/Makefile.in index b6391e1..07278d3 100644 --- a/Makefile.in +++ b/Makefile.in | |||
@@ -1,7 +1,7 @@ | |||
1 | # @configure_input@ | 1 | # @configure_input@ |
2 | 2 | ||
3 | # Modify these top variables. | 3 | # Modify these top variables. |
4 | SUBDIRS = Documentation contrib | 4 | SUBDIRS = docs contrib |
5 | SOURCES = @PACKAGE_NAME@.c | 5 | SOURCES = @PACKAGE_NAME@.c |
6 | 6 | ||
7 | HEADERS = mod_log_sql.h \ | 7 | HEADERS = mod_log_sql.h \ |
@@ -19,33 +19,47 @@ EXTRA_DIST = AUTHORS INSTALL TODO LICENSE CHANGELOG | |||
19 | 19 | ||
20 | TARGET = @PACKAGE_NAME@@APXS_EXTENSION@ | 20 | TARGET = @PACKAGE_NAME@@APXS_EXTENSION@ |
21 | 21 | ||
22 | TARGETS = $(TARGET) | ||
23 | |||
22 | sslSOURCES = @PACKAGE_NAME@_ssl.c | 24 | sslSOURCES = @PACKAGE_NAME@_ssl.c |
23 | sslTARGET = @PACKAGE_NAME@_ssl@APXS_EXTENSION@ | 25 | sslTARGET = @PACKAGE_NAME@_ssl@APXS_EXTENSION@ |
24 | sslLDADD = | 26 | sslLDADD = |
25 | sslCFLAGS = @MOD_SSL_CFLAGS@ | 27 | sslCFLAGS = @MOD_SSL_CFLAGS@ |
26 | sslNAME = log_sql_ssl | 28 | sslNAME = log_sql_ssl |
27 | 29 | ||
30 | ifeq (@WANT_SSL_MOD@,1) | ||
31 | TARGETS += $(sslTARGET) | ||
32 | endif | ||
33 | |||
28 | mysqlSOURCES = @PACKAGE_NAME@_mysql.c | 34 | mysqlSOURCES = @PACKAGE_NAME@_mysql.c |
29 | mysqlTARGET = @PACKAGE_NAME@_mysql@APXS_EXTENSION@ | 35 | mysqlTARGET = @PACKAGE_NAME@_mysql@APXS_EXTENSION@ |
30 | mysqlLDADD = @MYSQL_LDFLAGS@ @MYSQL_LIBS@ | 36 | mysqlLDADD = @MYSQL_LDFLAGS@ @MYSQL_LIBS@ |
31 | mysqlCFLAGS = @MYSQL_CFLAGS@ | 37 | mysqlCFLAGS = @MYSQL_CFLAGS@ |
32 | mysqlNAME = log_sql_mysql | 38 | mysqlNAME = log_sql_mysql |
33 | 39 | ||
40 | ifeq (@WANT_MYSQL_MOD@,1) | ||
41 | TARGETS += $(mysqlTARGET) | ||
42 | endif | ||
43 | |||
34 | pgsqlSOURCES = @PACKAGE_NAME@_pgsql.c | 44 | pgsqlSOURCES = @PACKAGE_NAME@_pgsql.c |
35 | pgsqlTARGET = @PACKAGE_NAME@_pgsql@APXS_EXTENSION@ | 45 | pgsqlTARGET = @PACKAGE_NAME@_pgsql@APXS_EXTENSION@ |
36 | pgsqlLDADD = @PGSQL_LDFLAGS@ @PGSQL_LIBS@ | 46 | pgsqlLDADD = @PGSQL_LDFLAGS@ @PGSQL_LIBS@ |
37 | pgsqlCFLAGS = @PGSQL_CFLAGS@ | 47 | pgsqlCFLAGS = @PGSQL_CFLAGS@ |
38 | pgsqlNAME = log_sql_pgsql | 48 | pgsqlNAME = log_sql_pgsql |
39 | 49 | ||
40 | TARGETS = $(TARGET) | 50 | ifeq (@WANT_PGSQL_MOD@,1) |
41 | 51 | TARGETS += $(pgsqlTARGET) | |
42 | ifeq (@WANT_SSL_MOD@,1) | ||
43 | TARGETS += $(sslTARGET) | ||
44 | endif | 52 | endif |
45 | 53 | ||
46 | TARGETS += $(mysqlTARGET) | 54 | dbiSOURCES = @PACKAGE_NAME@_dbi.c |
55 | dbiTARGET = @PACKAGE_NAME@_dbi@APXS_EXTENSION@ | ||
56 | dbiLDADD = @DBI_LDFLAGS@ @DBI_LIBS@ | ||
57 | dbiCFLAGS = @DBI_CFLAGS@ | ||
58 | dbiNAME = log_sql_dbi | ||
47 | 59 | ||
48 | TARGETS += $(pgsqlTARGET) | 60 | ifeq (@WANT_DBI_MOD@,1) |
61 | TARGETS += $(dbiTARGET) | ||
62 | endif | ||
49 | 63 | ||
50 | #Don't modify anything below here | 64 | #Don't modify anything below here |
51 | 65 | ||
@@ -70,8 +84,8 @@ STD_DIST = install-sh \ | |||
70 | stamp-h.in \ | 84 | stamp-h.in \ |
71 | config.h.in | 85 | config.h.in |
72 | 86 | ||
73 | DISTFILES = $(STD_DIST) $(EXTRA_DIST) $(SOURCES) $(sslSOURCES) $(mysqlSOURCES) \ | 87 | DISTFILES = $(STD_DIST) $(EXTRA_DIST) $(SOURCES) $(HEADERS) \ |
74 | $(HEADERS) | 88 | $(sslSOURCES) $(mysqlSOURCES) |
75 | 89 | ||
76 | all: $(TARGETS) all-subdirs | 90 | all: $(TARGETS) all-subdirs |
77 | 91 | ||
@@ -95,23 +109,23 @@ TODO: TODO.in | |||
95 | 109 | ||
96 | $(TARGET): $(SOURCES) $(HEADERS) | 110 | $(TARGET): $(SOURCES) $(HEADERS) |
97 | @@APXS_BIN@ -c -o $(TARGET) $(CFLAGS) \ | 111 | @@APXS_BIN@ -c -o $(TARGET) $(CFLAGS) \ |
98 | @DEFS@ @APACHE_DEFS@ $(LDADD) $(SOURCES) | 112 | @DEFS@ @AP_DEFS@ $(LDADD) $(SOURCES) |
99 | 113 | ||
100 | $(sslTARGET): $(sslSOURCES) $(HEADERS) | 114 | $(sslTARGET): $(sslSOURCES) $(HEADERS) |
101 | @@APXS_BIN@ -c -o $(sslTARGET) $(sslCFLAGS) $(CFLAGS) \ | 115 | @@APXS_BIN@ -c -o $(sslTARGET) $(sslCFLAGS) $(CFLAGS) \ |
102 | @DEFS@ @APACHE_DEFS@ $(sslLDADD) $(sslSOURCES) | 116 | @DEFS@ @AP_DEFS@ $(sslLDADD) $(sslSOURCES) |
103 | 117 | ||
104 | $(mysqlTARGET): $(mysqlSOURCES) $(HEADERS) | 118 | $(mysqlTARGET): $(mysqlSOURCES) $(HEADERS) |
105 | @@APXS_BIN@ -c -o $(mysqlTARGET) $(mysqlCFLAGS) $(CFLAGS) \ | 119 | @@APXS_BIN@ -c -o $(mysqlTARGET) $(mysqlCFLAGS) $(CFLAGS) \ |
106 | @DEFS@ @APACHE_DEFS@ $(mysqlLDADD) $(mysqlSOURCES) | 120 | @DEFS@ @AP_DEFS@ $(mysqlLDADD) $(mysqlSOURCES) |
107 | 121 | ||
108 | $(pgsqlTARGET): $(pgsqlSOURCES) $(HEADERS) | 122 | $(pgsqlTARGET): $(pgsqlSOURCES) $(HEADERS) |
109 | @@APXS_BIN@ -c -o $(pgsqlTARGET) $(pgsqlCFLAGS) $(CFLAGS) \ | 123 | @@APXS_BIN@ -c -o $(pgsqlTARGET) $(pgsqlCFLAGS) $(CFLAGS) \ |
110 | @DEFS@ @APACHE_DEFS@ $(pgsqlLDADD) $(pgsqlSOURCES) | 124 | @DEFS@ @AP_DEFS@ $(pgsqlLDADD) $(pgsqlSOURCES) |
111 | 125 | ||
112 | include: | 126 | $(dbiTARGET): $(dbiSOURCES) $(HEADERS) |
113 | rm -rf include | 127 | @@APXS_BIN@ -c -o $(dbiTARGET) $(dbiCFLAGS) $(CFLAGS) \ |
114 | ln -s @APACHE_INCDIR@ include | 128 | @DEFS@ @AP_DEFS@ $(dbiLDADD) $(dbiSOURCES) |
115 | 129 | ||
116 | install: $(TARGETS) install-subdirs | 130 | install: $(TARGETS) install-subdirs |
117 | @@APXS_BIN@ -i $(TARGET); \ | 131 | @@APXS_BIN@ -i $(TARGET); \ |