summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile40
1 files changed, 32 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index cd349d0..88b7d89 100644
--- a/Makefile
+++ b/Makefile
@@ -1,25 +1,49 @@
1# $Id: Makefile,v 1.1 2001/11/28 05:26:54 helios Exp $ 1# $Id: Makefile,v 1.2 2001/12/03 19:54:02 helios Exp $
2 2
3# Verify that this points to the right place... 3# Verify that this points to the right place...
4APACHEDIR = /usr/local/src/apache_1.3.22/src 4APACHEDIR = /usr/local/src/apache_1.3.22
5
6# Use the first one if you want mod_log_mysql to be able to log
7# SSL variables like keysize or cipher. Use the second one if
8# you don't use SSL or don't care to log it.
9DEFS = -DWANT_SSL_LOGGING
10#DEFS =
11
12# Use this one if you do WANT_SSL_LOGGING, and confirm the last two paths.
13# Make "/usr/local/ssl/include" point to where your openssl/*.h files are,
14# and make "/usr/include/db1" point to where ndbm.h can be found.
15#
16# How to find your directories:
17#
18# $ locate http_core.h
19# /usr/local/Apache/include/http_core.h
20#
21# $ locate x509.h
22# /usr/local/ssl/include/openssl/x509.h
23#
24# $ locate ndbm.h
25# /usr/include/db1/ndbm.h
26
27CFLAGS = -fpic -O2 -Wall -I/usr/local/Apache/include -I/usr/local/ssl/include -I/usr/include/db1
28
29# Use this one if you don't WANT_SSL_LOGGING:
30
31#CFLAGS = -fpic -O2 -Wall -I/usr/local/Apache/include
5 32
6# Verify that this include directory is correct for you...
7CFLAGS = -fpic -O2 -Wall -I/usr/local/Apache/include
8 33
9# --------------------------------------------------------- 34# ---------------------------------------------------------
10# You shouldn't have to touch below here! 35# You shouldn't have to touch below here.
11 36
12CC = gcc 37CC = gcc
13DEFS = -DSHARED_MODULE
14INSTALL = /usr/bin/install -m 664 38INSTALL = /usr/bin/install -m 664
15 39
16all: mod_log_mysql.o 40all: mod_log_mysql.o
17 41
18mod_log_mysql.o: mod_log_mysql.c 42mod_log_mysql.o: mod_log_mysql.c Makefile
19 $(CC) ${CFLAGS} ${DEFS} -c mod_log_mysql.c 43 $(CC) ${CFLAGS} ${DEFS} -c mod_log_mysql.c
20 44
21install: all 45install: all
22 $(INSTALL) mod_log_mysql.o ${APACHEDIR}/mod_log_mysql.o 46 $(INSTALL) mod_log_mysql.o ${APACHEDIR}/src/mod_log_mysql.o
23 47
24distro: all 48distro: all
25 cd ..; tar zcf mod_log_mysql.tar.gz mod_log_mysql/; $(INSTALL) mod_log_mysql.tar.gz /usr/local/Apache/html/mod_log_mysql/; rm -f mod_log_mysql.tar.gz 49 cd ..; tar zcf mod_log_mysql.tar.gz mod_log_mysql/; $(INSTALL) mod_log_mysql.tar.gz /usr/local/Apache/html/mod_log_mysql/; rm -f mod_log_mysql.tar.gz