summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile48
1 files changed, 26 insertions, 22 deletions
diff --git a/Makefile b/Makefile
index c3257e3..d2effa0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,27 +1,33 @@
1# $Id: Makefile,v 1.16 2002/11/19 02:59:43 helios Exp $ 1# $Id: Makefile,v 1.17 2002/11/27 07:13:58 helios Exp $
2 2
3##################################### 3###########################################################################
4# Important: 4# Important:
5# Adjust these values as outlined in the INSTALL file. 5# Adjust these values as outlined in section "Installation" in the docs.
6# Not all are needed at all times. 6# Not all are needed at all times.
7 7
8APACHEINST = /usr/local/Apache 8APACHESOURCE = /usr/local/src/apache_1.3.27-dso
9APACHEINST = /usr/local/Apache
10APXS = $(APACHEINST)/bin/apxs
11
9MYSQLLIBS = /usr/lib 12MYSQLLIBS = /usr/lib
10MYSQLHDRS = /usr/include/mysql 13MYSQLHDRS = /usr/include/mysql
11MODSSLHDRS = /usr/local/src/apache_1.3.27-dso/src/modules/ssl
12 14
13APACHESOURCE = /usr/local/src/apache_1.3.27-dso 15#MODSSLHDRS = /usr/local/src/apache_1.3.27-dso/src/modules/ssl
14OPNSSLHDRS = /usr/include/openssl 16DB1HDRS = /usr/include/db1
15DB1HDRS = /usr/include/db1 17
18###########################################################################
19# Don't uncomment this without reading the "Optimizing for a busy database"
20# section in the documentation (under "Advanced logging scenarios").
16 21
22MYSQLDELAYED = -DWANT_DELAYED_MYSQL_INSERT
17 23
18##################################### 24###########################################################################
19# Shouldn't have to touch below here. 25# Rarely if ever have to touch below here.
20 26
21MLMVERS = 1.17 27MLMVERS = 1.18
22APXS = $(APACHEINST)/bin/apxs
23#APXSGDB = -Wc,-g 28#APXSGDB = -Wc,-g
24APXSOPTS = -Wc,-O2 -Wc,-Wall -Wc,-DEAPI 29APXSOPTS = -Wc,-O2 -Wc,-Wall
30STATOPTS = -fpic -O2 -Wall
25CC = gcc 31CC = gcc
26INSTALL = /usr/bin/install -m 664 32INSTALL = /usr/bin/install -m 664
27RM = /bin/rm 33RM = /bin/rm
@@ -32,11 +38,12 @@ LINKS = /usr/bin/links
32L2H = /usr/local/bin/latex2html 38L2H = /usr/local/bin/latex2html
33WEBSERV = gw0.corp 39WEBSERV = gw0.corp
34 40
41STATFLAGS = -I$(APACHEINST)/include
42SOFLAGS = -L$(MYSQLLIBS) -lmysqlclient -lz
35ifdef MODSSLHDRS 43ifdef MODSSLHDRS
36 SSLDEF = -DWANT_SSL_LOGGING 44 FLAGS = -DEAPI -I$(MYSQLHDRS) $(MYSQLDELAYED) -I$(MODSSLHDRS) -I$(DB1HDRS) -DWANT_SSL_LOGGING
37 CFLAGS = -fPIC -O2 -Wall -I$(APACHEINST)/include -I$(MYSQLHDRS) -I$(MODSSLHDRS) -I$(OPNSSLHDRS) $(SSLDEF) -I$(DB1HDRS)
38else 45else
39 CFLAGS = -fPIC -O2 -Wall -I$(APACHEINST)/include -I$(MYSQLHDRS) 46 FLAGS = -DEAPI -I$(MYSQLHDRS) $(MYSQLDELAYED)
40endif 47endif
41 48
42all: 49all:
@@ -50,10 +57,10 @@ dso: mod_log_sql.so
50static: mod_log_sql.o 57static: mod_log_sql.o
51 58
52mod_log_sql.so: mod_log_sql.c Makefile 59mod_log_sql.so: mod_log_sql.c Makefile
53 $(APXS) $(APXSGDB) $(APXOPTS) -c -I$(MYSQLHDRS) -I$(MODSSLHDRS) $(SSLDEF) -L$(MYSQLLIBS) -lmysqlclient -lz mod_log_sql.c 60 $(APXS) -c $(APXSGDB) $(APXSOPTS) $(FLAGS) $(SOFLAGS) mod_log_sql.c
54 61
55mod_log_sql.o: mod_log_sql.c Makefile 62mod_log_sql.o: mod_log_sql.c Makefile
56 $(CC) ${CFLAGS} -c mod_log_sql.c 63 $(CC) $(STATOPTS) $(FLAGS) $(STATFLAGS) -c mod_log_sql.c
57 64
58dsoinstall: dso 65dsoinstall: dso
59 $(APXS) -i mod_log_sql.so 66 $(APXS) -i mod_log_sql.so
@@ -92,13 +99,10 @@ documentation: Documentation/documentation.lyx
92 @echo "Creating PostScript docs..." 99 @echo "Creating PostScript docs..."
93 @$(DVIPS) Documentation/documentation.dvi -o Documentation/documentation.ps 2>/dev/null 100 @$(DVIPS) Documentation/documentation.dvi -o Documentation/documentation.ps 2>/dev/null
94 @echo "Creating HTML docs..." 101 @echo "Creating HTML docs..."
95 @$(L2H) -show_section_numbers -split 4 -navigation -noindex_in_navigation -contents_in_navigation -dir Documentation/HTML Documentation/documentation.tex >/dev/null 2>&1 102 @$(L2H) -local_icons -show_section_numbers -split 4 -navigation -noindex_in_navigation -contents_in_navigation -dir Documentation/HTML Documentation/documentation.tex >/dev/null 2>&1
96 @echo "Creating plain text docs..." 103 @echo "Creating plain text docs..."
97 @$(L2H) -show_section_numbers -split 0 -dir Documentation/ Documentation/documentation.tex >/dev/null 2>&1 104 @$(L2H) -show_section_numbers -split 0 -dir Documentation/ Documentation/documentation.tex >/dev/null 2>&1
98 @$(LINKS) -dump Documentation/documentation.html > Documentation/documentation.txt 2>/dev/null 105 @$(LINKS) -dump Documentation/documentation.html > Documentation/documentation.txt 2>/dev/null
99 @echo "Cleaning up..." 106 @echo "Cleaning up..."
100 @$(RM) -f Documentation/*.html Documentation/WARNINGS Documentation/*.pl Documentation/*.aux Documentation/*.css Documentation/*.toc Documentation/*.log Documentation/*.old Documentation/*.png Documentation/images.tex 107 @$(RM) -f Documentation/*.html Documentation/WARNINGS Documentation/*.pl Documentation/*.aux Documentation/*.css Documentation/*.toc Documentation/*.log Documentation/*.old Documentation/*.png Documentation/images.tex
101 @$(RM) -f Documentation/HTML/WARNINGS Documentation/HTML/*.pl Documentation/HTML/*.log Documentation/HTML/*.aux Documentation/HTML/*.tex Documentation/HTML/*.old Documentation/HTML/index.html 108 @$(RM) -f Documentation/HTML/WARNINGS Documentation/HTML/*.pl Documentation/HTML/*.log Documentation/HTML/*.aux Documentation/HTML/*.tex Documentation/HTML/*.old Documentation/HTML/index.html
102
103
104