summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile62
1 files changed, 43 insertions, 19 deletions
diff --git a/Makefile b/Makefile
index 6c3c98f..468f6d6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
1# $Id: Makefile,v 1.9 2002/04/21 23:01:52 helios Exp $ 1# $Id: Makefile,v 1.10 2002/05/14 21:47:14 helios Exp $
2MLMVERS = 1.16 2MLMVERS = 1.17
3 3
4# Where you unpacked your Apache tarball -- the source. 4# Where you unpacked your Apache tarball -- the source.
5APACHESOURCE = /usr/local/src/apache_1.3.22 5APACHESOURCE = /usr/local/src/apache_1.3.22
@@ -7,16 +7,28 @@ APACHESOURCE = /usr/local/src/apache_1.3.22
7# Where Apache [got|will get] installed 7# Where Apache [got|will get] installed
8APACHEINST = /usr/local/Apache 8APACHEINST = /usr/local/Apache
9 9
10# Set the WANT_SSL_LOGGING define in mod_log_mysql.c if you want to log SSL 10# Do you want to log SSL information?
11# info, or #undef it if you don't. Then use the first CFLAGS if you *do* 11# Yes?
12# WANT_SSL_LOGGING, and confirm the paths. 12# - #define WANT_SSL_LOGGING in mod_log_sql.c
13# - pick (A) below
14# No?
15# - #undef WANT_SSL_LOGGING in mod_log_sql.c
16# - pick (B) below
17
18
19# (A)
13# 20#
21# Modify "/usr/include/mysql" to where YOUR mysql.h can be found,
14# Modify "/usr/local/ssl/include" to where YOUR openssl/*.h files are, 22# Modify "/usr/local/ssl/include" to where YOUR openssl/*.h files are,
15# Modify "/usr/include/db1" to where YOUR ndbm.h can be found, 23# Modify "/usr/include/db1" to where YOUR ndbm.h can be found,
16# Modify "/usr/local/src/apache_1.3.22/src/modules/ssl" to where YOUR mod_ssl.h can be found. 24# Modify "/usr/local/src/apache_1.3.22/src/modules/ssl" to where YOUR mod_ssl.h can be found.
17# 25#
18# How to find your directories: 26# How to find your directories:
19# 27#
28# $ locate mysql.h
29# /usr/include/mysql/mysql.h
30# ^^^^^^^^^^^^^^^^^^
31#
20# $ locate x509.h 32# $ locate x509.h
21# /usr/local/ssl/include/openssl/x509.h 33# /usr/local/ssl/include/openssl/x509.h
22# ^^^^^^^^^^^^^^^^^^^^^^ 34# ^^^^^^^^^^^^^^^^^^^^^^
@@ -28,11 +40,23 @@ APACHEINST = /usr/local/Apache
28# $ locate mod_ssl.h 40# $ locate mod_ssl.h
29# /usr/local/src/apache_1.3.22/src/modules/ssl/mod_ssl.h 41# /usr/local/src/apache_1.3.22/src/modules/ssl/mod_ssl.h
30# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 42# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43# Now uncomment this CFLAGS and comment out the one further down:
31 44
32CFLAGS = -fpic -O2 -Wall -I${APACHEINST}/include -I/usr/local/ssl/include -I/usr/include/db1 -I${APACHESOURCE}/src/modules/ssl 45CFLAGS = -fpic -O2 -Wall -I${APACHEINST}/include -I/usr/include/mysql -I/usr/local/ssl/include -I/usr/include/db1 -I${APACHESOURCE}/src/modules/ssl
46
47# (B)
48#
49# Modify "/usr/include/mysql" to where YOUR mysql.h can be found,
50#
51# How to find your directories:
52#
53# $ locate mysql.h
54# /usr/include/mysql/mysql.h
55# ^^^^^^^^^^^^^^^^^^
56#
57# Comment out CFLAGS above and uncomment CFLAGS below:
33 58
34# Use this CFLAGS if you don't WANT_SSL_LOGGING: 59#CFLAGS = -fpic -O2 -Wall -I${APACHEINST}/include -I/usr/include/mysql
35#CFLAGS = -fpic -O2 -Wall -I${APACHEINST}/include
36 60
37 61
38# --------------------------------------------------------- 62# ---------------------------------------------------------
@@ -41,24 +65,24 @@ CFLAGS = -fpic -O2 -Wall -I${APACHEINST}/include -I/usr/local/ssl/include -I/
41CC = gcc 65CC = gcc
42INSTALL = /usr/bin/install -m 664 66INSTALL = /usr/bin/install -m 664
43 67
44all: mod_log_mysql.o 68all: mod_log_sql.o
45 69
46mod_log_mysql.o: mod_log_mysql.c Makefile 70mod_log_sql.o: mod_log_sql.c Makefile
47 $(CC) ${CFLAGS} -c mod_log_mysql.c 71 $(CC) ${CFLAGS} -c mod_log_sql.c
48 72
49install: all 73install: all
50 $(INSTALL) -d -m 755 ${APACHESOURCE}/src/modules/sql 74 $(INSTALL) -d -m 755 ${APACHESOURCE}/src/modules/sql
51 $(INSTALL) mod_log_mysql.c ${APACHESOURCE}/src/modules/sql/mod_log_mysql.c 75 $(INSTALL) mod_log_sql.c ${APACHESOURCE}/src/modules/sql/mod_log_sql.c
52 $(INSTALL) Makefile ${APACHESOURCE}/src/modules/sql/Makefile 2007-12-03
|
* (no commit message)mod_log_mysql.o 77 $(INSTALL) mod_log_sql.o ${APACHESOURCE}/src/modules/sql/mod_log_sql.o
54 78
55distro: all 79distro: all
56 cp -f INSTALL ${APACHEINST}/html/mod_log_mysql/ 80 cp -f INSTALL ${APACHEINST}/html/mod_log_sql/
57 cp -f README ${APACHEINST}/html/mod_log_mysql/ 81 cp -f README ${APACHEINST}/html/mod_log_sql/
58 cp -f CHANGELOG ${APACHEINST}/html/mod_log_mysql/ 82 cp -f CHANGELOG ${APACHEINST}/html/mod_log_sql/
59 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 83 cd ..; tar zcf mod_log_sql-${MLMVERS}.tar.gz --exclude mod_log_sql/CVS mod_log_sql/; $(INSTALL) mod_log_sql-${MLMVERS}.tar.gz ${APACHEINST}/html/mod_log_sql/; rm -f mod_log_sql-${MLMVERS}.tar.gz
60 rm -f ${APACHEINST}/html/mod_log_mysql/mod_log_mysql.tar.gz 84 rm -f ${APACHEINST}/html/mod_log_sql/mod_log_sql.tar.gz
61 ln -s mod_log_mysql-${MLMVERS}.tar.gz ${APACHEINST}/html/mod_log_mysql/mod_log_mysql.tar.gz 85 ln -s mod_log_sql-${MLMVERS}.tar.gz ${APACHEINST}/html/mod_log_sql/mod_log_sql.tar.gz
62 86
63clean: 87clean:
64 rm -f *.o *~ 88 rm -f *.o *~