diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 10 insertions, 16 deletions
@@ -1,5 +1,5 @@ | |||
1 | # $Id: Makefile,v 1.8 2002/04/08 06:37:14 helios Exp $ | 1 | # $Id: Makefile,v 1.9 2002/04/21 23:01:52 helios Exp $ |
2 | MLMVERS = 1.15 | 2 | MLMVERS = 1.16 |
3 | 3 | ||
4 | # Where you unpacked your Apache tarball -- the source. | 4 | # Where you unpacked your Apache tarball -- the source. |
5 | APACHESOURCE = /usr/local/src/apache_1.3.22 | 5 | APACHESOURCE = /usr/local/src/apache_1.3.22 |
@@ -7,18 +7,9 @@ APACHESOURCE = /usr/local/src/apache_1.3.22 | |||
7 | # Where Apache [got|will get] installed | 7 | # Where Apache [got|will get] installed |
8 | APACHEINST = /usr/local/Apache | 8 | APACHEINST = /usr/local/Apache |
9 | 9 | ||
10 | # Use the first DEFS line if you want mod_log_mysql to be able to log SSL | 10 | # Set the WANT_SSL_LOGGING define in mod_log_mysql.c if you want to log SSL |
11 | # variables like keysize or cipher. Use the second one if you don't use SSL | 11 | # info, or #undef it if you don't. Then use the first CFLAGS if you *do* |
12 | # or don't care to log it. | 12 | # WANT_SSL_LOGGING, and confirm the paths. |
13 | # | ||
14 | # If your MySQL db is running on the same machine as Apache, modify the | ||
15 | # MYSQLSOCKET path to point to your MySQL socket. This define has no effect | ||
16 | # if your MySQL machine is a networked (TCP/IP) machine. | ||
17 | |||
18 | DEFS = -DMYSQLSOCKET="\"/var/lib/mysql/mysql.sock\"" -DWANT_SSL_LOGGING | ||
19 | #DEFS = -DMYSQLSOCKET="\"/var/lib/mysql/mysql.sock\"" | ||
20 | |||
21 | # Use the first CFLAGS if you *do* WANT_SSL_LOGGING, and confirm the paths. | ||
22 | # | 13 | # |
23 | # Modify "/usr/local/ssl/include" to where YOUR openssl/*.h files are, | 14 | # Modify "/usr/local/ssl/include" to where YOUR openssl/*.h files are, |
24 | # Modify "/usr/include/db1" to where YOUR ndbm.h can be found, | 15 | # Modify "/usr/include/db1" to where YOUR ndbm.h can be found, |
@@ -53,10 +44,13 @@ INSTALL = /usr/bin/install -m 664 | |||
53 | all: mod_log_mysql.o | 44 | all: mod_log_mysql.o |
54 | 45 | ||
55 | mod_log_mysql.o: mod_log_mysql.c Makefile | 46 | mod_log_mysql.o: mod_log_mysql.c Makefile |
56 | $(CC) ${CFLAGS} ${DEFS} -c mod_log_mysql.c | 47 | $(CC) ${CFLAGS} -c mod_log_mysql.c |
57 | 48 | ||
58 | install: all | 49 | install: all |
59 | $(INSTALL) mod_log_mysql.o ${APACHESOURCE}/src/mod_log_mysql.o | 50 | $(INSTALL) -d -m 755 ${APACHESOURCE}/src/modules/sql |
51 | $(INSTALL) mod_log_mysql.c ${APACHESOURCE}/src/modules/sql/mod_log_mysql.c | ||
52 | $(INSTALL) Makefile ${APACHESOURCE}/src/modules/sql/Makefile | ||
53 | $(INSTALL) mod_log_mysql.o ${APACHESOURCE}/src/modules/sql/mod_log_mysql.o | ||
60 | 54 | ||
61 | distro: all | 55 | distro: all |
62 | cp -f INSTALL ${APACHEINST}/html/mod_log_mysql/ | 56 | cp -f INSTALL ${APACHEINST}/html/mod_log_mysql/ |