summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Christopher Powell 2002-01-15 18:40:14 +0000
committerGravatar Christopher Powell 2002-01-15 18:40:14 +0000
commitec06ba32ef1bfb3de7fd87ddc9c43468d5f5684e (patch)
tree27ad8ccbf63b1ef08225c0086da04d927a9daae9 /Makefile
parentcb854fe3e61b2590aeede8e6e94ee9feda919800 (diff)
Ported to mysql_real_connect, made a change for the mass-virtual-hosting1.13
folks, and enabled a socket name DEFINE.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile56
1 files changed, 33 insertions, 23 deletions
diff --git a/Makefile b/Makefile
index 5744be4..65e0cd5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,37 +1,47 @@
1# $Id: Makefile,v 1.4 2001/12/07 03:52:56 helios Exp $ 1# $Id: Makefile,v 1.5 2002/01/15 18:40:14 helios Exp $
2MLMVERS = 1.13
2 3
3# Verify that this points to the right place... 4# Where you unpacked your Apache tarball -- the source.
4APACHEDIR = /usr/local/src/apache_1.3.22 5APACHESOURCE = /usr/local/src/apache_1.3.22
5 6
6# Use the first one if you want mod_log_mysql to be able to log 7# Where Apache [got|will get] installed
7# SSL variables like keysize or cipher. Use the second one if 8APACHEINST = /usr/local/Apache
8# you don't use SSL or don't care to log it.
9DEFS = -DWANT_SSL_LOGGING
10#DEFS =
11 9
12# Use this one if you do WANT_SSL_LOGGING, and confirm the last three paths. 10# Use the first DEFS line if you want mod_log_mysql to be able to log SSL
13# Point "/usr/local/ssl/include" to where your openssl/*.h files are, 11# variables like keysize or cipher. Use the second one if you don't use SSL
14# Point "/usr/include/db1" to where ndbm.h can be found, 12# or don't care to log it.
15# Point "/usr/local/src/apache_1.3.22/src/modules/ssl" to where mod_ssl.h can be found.
16# 13#
17# How to find your directories: 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
18DEFS = -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.
18# 22#
19# $ locate http_core.h 23# Modify "/usr/local/ssl/include" to where YOUR openssl/*.h files are,
20# /usr/local/Apache/include/http_core.h 24# Modify "/usr/include/db1" to where YOUR ndbm.h can be found,
25# Modify "/usr/local/src/apache_1.3.22/src/modules/ssl" to where YOUR mod_ssl.h can be found.
26#
27# How to find your directories:
21# 28#
22# $ locate x509.h 29# $ locate x509.h
23# /usr/local/ssl/include/openssl/x509.h 30# /usr/local/ssl/include/openssl/x509.h
31# ^^^^^^^^^^^^^^^^^^^^^^
24# 32#
25# $ locate ndbm.h 33# $ locate ndbm.h
26# /usr/include/db1/ndbm.h 34# /usr/include/db1/ndbm.h
35# ^^^^^^^^^^^^^^^^
27# 36#
28# $ locate mod_ssl.h 37# $ locate mod_ssl.h
29# /usr/local/src/apache_1.3.22/src/modules/ssl/mod_ssl.h 38# /usr/local/src/apache_1.3.22/src/modules/ssl/mod_ssl.h
39# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30 40
31CFLAGS = -fpic -O2 -Wall -I/usr/local/Apache/include -I/usr/local/ssl/include -I/usr/include/db1 -I/usr/local/src/apache_1.3.22/src/modules/ssl 41CFLAGS = -fpic -O2 -Wall -I${APACHEINST}/include -I/usr/local/ssl/include -I/usr/include/db1 -I${APACHESOURCE}/src/modules/ssl
32 42
33# Use this one if you don't WANT_SSL_LOGGING: 43# Use this CFLAGS if you don't WANT_SSL_LOGGING:
34#CFLAGS = -fpic -O2 -Wall -I/usr/local/Apache/include 44#CFLAGS = -fpic -O2 -Wall -I${APACHEINST}/include
35 45
36 46
37# --------------------------------------------------------- 47# ---------------------------------------------------------
@@ -46,13 +56,13 @@ mod_log_mysql.o: mod_log_mysql.c Makefile
46 $(CC) ${CFLAGS} ${DEFS} -c mod_log_mysql.c 56 $(CC) ${CFLAGS} ${DEFS} -c mod_log_mysql.c
47 57
48install: all 58install: all
49 $(INSTALL) mod_log_mysql.o ${APACHEDIR}/src/mod_log_mysql.o 59 $(INSTALL) mod_log_mysql.o ${APACHESOURCE}/src/mod_log_mysql.o
50 60
51distro: all 61distro: all
52 cp -f INSTALL /usr/local/Apache/html/mod_log_mysql/ 62 cp -f INSTALL ${APACHEINST}/html/mod_log_mysql/
53 cp -f README /usr/local/Apache/html/mod_log_mysql/ 63 cp -f README ${APACHEINST}/html/mod_log_mysql/
54 cp -f CHANGELOG /usr/local/Apache/html/mod_log_mysql/ 64 cp -f CHANGELOG ${APACHEINST}/html/mod_log_mysql/
55 cd ..; tar zcf mod_log_mysql.tar.gz --exclude mod_log_mysql/CVS mod_log_mysql/; $(INSTALL) mod_log_mysql.tar.gz /usr/local/Apache/html/mod_log_mysql/; rm -f mod_log_mysql.tar.gz 65 cd ..; tar zcf mod_log_mysql-${MLMVERS}.tar.gz --exclude mod_log_mysql/CVS mod_log_mysql/; $(INSTALL) mod_log_mysql-${MLMVERS}.tar.gz ${APACHEINST}/html/mod_log_mysql/; rm -f mod_log_mysql-${MLMVERS}.tar.gz
56 66
57clean: 67clean:
58 rm -f *.o *~ 68 rm -f *.o *~