diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 48 |
1 files changed, 26 insertions, 22 deletions
@@ -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 | ||
8 | APACHEINST = /usr/local/Apache | 8 | APACHESOURCE = /usr/local/src/apache_1.3.27-dso |
9 | APACHEINST = /usr/local/Apache | ||
10 | APXS = $(APACHEINST)/bin/apxs | ||
11 | |||
9 | MYSQLLIBS = /usr/lib | 12 | MYSQLLIBS = /usr/lib |
10 | MYSQLHDRS = /usr/include/mysql | 13 | MYSQLHDRS = /usr/include/mysql |
11 | MODSSLHDRS = /usr/local/src/apache_1.3.27-dso/src/modules/ssl | ||
12 | 14 | ||
13 | APACHESOURCE = /usr/local/src/apache_1.3.27-dso | 15 | #MODSSLHDRS = /usr/local/src/apache_1.3.27-dso/src/modules/ssl |
14 | OPNSSLHDRS = /usr/include/openssl | 16 | DB1HDRS = /usr/include/db1 |
15 | DB1HDRS = /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 | ||
22 | MYSQLDELAYED = -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 | ||
21 | MLMVERS = 1.17 | 27 | MLMVERS = 1.18 |
22 | APXS = $(APACHEINST)/bin/apxs | ||
23 | #APXSGDB = -Wc,-g | 28 | #APXSGDB = -Wc,-g |
24 | APXSOPTS = -Wc,-O2 -Wc,-Wall -Wc,-DEAPI | 29 | APXSOPTS = -Wc,-O2 -Wc,-Wall |
30 | STATOPTS = -fpic -O2 -Wall | ||
25 | CC = gcc | 31 | CC = gcc |
26 | INSTALL = /usr/bin/install -m 664 | 32 | INSTALL = /usr/bin/install -m 664 |
27 | RM = /bin/rm | 33 | RM = /bin/rm |
@@ -32,11 +38,12 @@ LINKS = /usr/bin/links | |||
32 | L2H = /usr/local/bin/latex2html | 38 | L2H = /usr/local/bin/latex2html |
33 | WEBSERV = gw0.corp | 39 | WEBSERV = gw0.corp |
34 | 40 | ||
41 | STATFLAGS = -I$(APACHEINST)/include | ||
42 | SOFLAGS = -L$(MYSQLLIBS) -lmysqlclient -lz | ||
35 | ifdef MODSSLHDRS | 43 | ifdef 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) | ||
38 | else | 45 | else |
39 | CFLAGS = -fPIC -O2 -Wall -I$(APACHEINST)/include -I$(MYSQLHDRS) | 46 | FLAGS = -DEAPI -I$(MYSQLHDRS) $(MYSQLDELAYED) |
40 | endif | 47 | endif |
41 | 48 | ||
42 | all: | 49 | all: |
@@ -50,10 +57,10 @@ dso: mod_log_sql.so | |||
50 | static: mod_log_sql.o | 57 | static: mod_log_sql.o |
51 | 58 | ||
52 | mod_log_sql.so: mod_log_sql.c Makefile | 59 | mod_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 | ||
55 | mod_log_sql.o: mod_log_sql.c Makefile | 62 | mod_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 | ||
58 | dsoinstall: dso | 65 | dsoinstall: 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 | |||