summaryrefslogtreecommitdiffstatsabout
path: root/Makefile
blob: c1966b2a7fbafa1e72edb6937a65843e89772a96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# $Id: Makefile,v 1.3 2001/12/03 19:56:58 helios Exp $

# Verify that this points to the right place...
APACHEDIR = /usr/local/src/apache_1.3.22

# Use the first one if you want mod_log_mysql to be able to log
# SSL variables like keysize or cipher.  Use the second one if
# you don't use SSL or don't care to log it.
DEFS      = -DWANT_SSL_LOGGING
#DEFS      =

# Use this one if you do WANT_SSL_LOGGING, and confirm the last two paths.
# Make "/usr/local/ssl/include" point to where your openssl/*.h files are,
# and make "/usr/include/db1" point to where ndbm.h can be found.
#
# How to find your directories:
#
# $ locate http_core.h
# /usr/local/Apache/include/http_core.h
#
# $ locate x509.h
# /usr/local/ssl/include/openssl/x509.h
#
# $ locate ndbm.h
# /usr/include/db1/ndbm.h

CFLAGS    = -fpic -O2 -Wall -I/usr/local/Apache/include -I/usr/local/ssl/include -I/usr/include/db1

# Use this one if you don't WANT_SSL_LOGGING:

#CFLAGS    = -fpic -O2 -Wall -I/usr/local/Apache/include


# ---------------------------------------------------------
# You shouldn't have to touch below here.

CC        = gcc
INSTALL   = /usr/bin/install -m 664

all: mod_log_mysql.o

mod_log_mysql.o:	mod_log_mysql.c Makefile
			$(CC) ${CFLAGS} ${DEFS} -c mod_log_mysql.c

install: all
	$(INSTALL) mod_log_mysql.o ${APACHEDIR}/src/mod_log_mysql.o

distro: all
	cp -f INSTALL /usr/local/Apache/html/mod_log_mysql/
	cp -f README /usr/local/Apache/html/mod_log_mysql/
	cp -f CHANGELOG /usr/local/Apache/html/mod_log_mysql/
	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

clean:
	rm -f *.o *~