diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 43 |
1 files changed, 22 insertions, 21 deletions
@@ -1,19 +1,20 @@ | |||
1 | # $Id: Makefile,v 1.19 2002/12/10 20:37:28 helios Exp $ | 1 | # $Id: Makefile,v 1.20 2002/12/18 01:06:33 helios Exp $ |
2 | 2 | ||
3 | ########################################################################### | 3 | ########################################################################### |
4 | # Important: | 4 | # Important: |
5 | # Adjust these values as outlined in section "Installation" in the docs. | 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 | APACHESOURCE = /usr/local/src/apache_1.3.27-dso | 8 | APACHESOURCE = /usr/local/src/apache_1.3.27-dso |
9 | APACHEINST = /usr/local/Apache | 9 | APACHEINSTALLED = /usr/local/Apache |
10 | APXS = $(APACHEINST)/bin/apxs | 10 | APACHEHEADERS = /usr/local/Apache/include |
11 | APXS = $(APACHEINSTALLED)/bin/apxs | ||
11 | 12 | ||
12 | MYSQLLIBS = /usr/lib | 13 | MYSQLLIBRARIES = /usr/lib |
13 | MYSQLHDRS = /usr/include/mysql | 14 | MYSQLHEADERS = /usr/include/mysql |
14 | 15 | ||
15 | MODSSLHDRS = /usr/local/src/apache_1.3.27-dso/src/modules/ssl | 16 | #MODSSLHEADERS = /usr/local/src/apache_1.3.27-dso/src/modules/ssl |
16 | DB1HDRS = /usr/include/db1 | 17 | #DB1HEADERS = /usr/include/db1 |
17 | 18 | ||
18 | ########################################################################### | 19 | ########################################################################### |
19 | # Don't uncomment this without reading the "Optimizing for a busy database" | 20 | # Don't uncomment this without reading the "Optimizing for a busy database" |
@@ -24,7 +25,7 @@ DB1HDRS = /usr/include/db1 | |||
24 | ########################################################################### | 25 | ########################################################################### |
25 | # Rarely if ever have to touch below here. | 26 | # Rarely if ever have to touch below here. |
26 | 27 | ||
27 | MLMVERS = 1.18pre1 | 28 | MLMVERS = 1.18 |
28 | #APXSGDB = -Wc,-g | 29 | #APXSGDB = -Wc,-g |
29 | APXSOPTS = -Wc,-O2 -Wc,-Wall | 30 | APXSOPTS = -Wc,-O2 -Wc,-Wall |
30 | STATOPTS = -fpic -O2 -Wall | 31 | STATOPTS = -fpic -O2 -Wall |
@@ -38,12 +39,12 @@ LINKS = /usr/bin/lynx | |||
38 | L2H = /usr/bin/latex2html | 39 | L2H = /usr/bin/latex2html |
39 | WEBSERV = gw0.corp | 40 | WEBSERV = gw0.corp |
40 | 41 | ||
41 | STATFLAGS = -I$(APACHEINST)/include | 42 | STATFLAGS = -I$(APACHEHEADERS) |
42 | SOFLAGS = -L$(MYSQLLIBS) -lmysqlclient -lz | 43 | SOFLAGS = -L$(MYSQLLIBRARIES) -lmysqlclient -lz |
43 | ifdef MODSSLHDRS | 44 | ifdef MODSSLHEADERS |
44 | FLAGS = -DEAPI -I$(MYSQLHDRS) $(MYSQLDELAYED) -I$(MODSSLHDRS) -I$(DB1HDRS) -DWANT_SSL_LOGGING | 45 | FLAGS = -DEAPI -I$(MYSQLHEADERS) $(MYSQLDELAYED) -I$(MODSSLHEADERS) -I$(DB1HEADERS) -DWANT_SSL_LOGGING |
45 | else | 46 | else |
46 | FLAGS = -DEAPI -I$(MYSQLHDRS) $(MYSQLDELAYED) | 47 | FLAGS = -DEAPI -I$(MYSQLHEADERS) $(MYSQLDELAYED) |
47 | endif | 48 | endif |
48 | 49 | ||
49 | all: | 50 | all: |
@@ -80,15 +81,15 @@ clean: | |||
80 | $(RM) -f Documentation/*.txt | 81 | $(RM) -f Documentation/*.txt |
81 | 82 | ||
82 | distro: documentation | 83 | distro: documentation |
83 | @scp CHANGELOG $(WEBSERV):$(APACHEINST)/html/mod_log_sql/docs | 84 | @scp CHANGELOG $(WEBSERV):$(APACHEINSTALLED)/html/mod_log_sql/docs |
84 | @scp Documentation/*.ps $(WEBSERV):$(APACHEINST)/html/mod_log_sql/docs | 85 | @scp Documentation/*.ps $(WEBSERV):$(APACHEINSTALLED)/html/mod_log_sql/docs |
85 | @scp Documentation/HTML/*.html $(WEBSERV):$(APACHEINST)/html/mod_log_sql/docs/ | 86 | @scp Documentation/HTML/*.html $(WEBSERV):$(APACHEINSTALLED)/html/mod_log_sql/docs/ |
86 | @scp Documentation/HTML/*.png $(WEBSERV):$(APACHEINST)/html/mod_log_sql/docs/ | 87 | @scp Documentation/HTML/*.png $(WEBSERV):$(APACHEINSTALLED)/html/mod_log_sql/docs/ |
87 | @cd ..; tar zcf mod_log_sql-$(MLMVERS).tar.gz --exclude mod_log_sql/CVS --exclude mod_log_sql/Documentation/CVS --exclude mod_log_sql/Documentation/HTML/CVS --exclude ".directory" mod_log_sql/; scp mod_log_sql-$(MLMVERS).tar.gz $(WEBSERV):$(APACHEINST)/html/mod_log_sql/; rm -f mod_log_sql-$(MLMVERS).tar.gz | 88 | @cd ..; tar zcf mod_log_sql-$(MLMVERS).tar.gz --exclude mod_log_sql/CVS --exclude mod_log_sql/Documentation/CVS --exclude mod_log_sql/Documentation/HTML/CVS --exclude ".directory" mod_log_sql/; scp mod_log_sql-$(MLMVERS).tar.gz $(WEBSERV):$(APACHEINSTALLED)/html/mod_log_sql/; rm -f mod_log_sql-$(MLMVERS).tar.gz |
88 | @ssh $(WEBSERV) "ln -sf mod_log_sql-$(MLMVERS).tar.gz $(APACHEINST)/html/mod_log_sql/mod_log_sql.tar.gz" | 89 | @ssh $(WEBSERV) "ln -sf mod_log_sql-$(MLMVERS).tar.gz $(APACHEINSTALLED)/html/mod_log_sql/mod_log_sql.tar.gz" |
89 | 90 | ||
90 | pre-distro: documentation | 91 | pre-distro: documentation |
91 | @cd ..; tar zcf mod_log_sql-$(MLMVERS).tar.gz --exclude mod_log_sql/CVS --exclude mod_log_sql/Documentation/CVS --exclude mod_log_sql/Documentation/HTML/CVS --exclude ".directory" mod_log_sql/; scp mod_log_sql-$(MLMVERS).tar.gz $(WEBSERV):$(APACHEINST)/html/mod_log_sql/; rm -f mod_log_sql-$(MLMVERS).tar.gz | 92 | @cd ..; tar zcf mod_log_sql-$(MLMVERS).tar.gz --exclude mod_log_sql/CVS --exclude mod_log_sql/Documentation/CVS --exclude mod_log_sql/Documentation/HTML/CVS --exclude ".directory" mod_log_sql/; scp mod_log_sql-$(MLMVERS).tar.gz $(WEBSERV):$(APACHEINSTALLED)/html/mod_log_sql/; rm -f mod_log_sql-$(MLMVERS).tar.gz |
92 | 93 | ||
93 | documentation: Documentation/documentation.lyx | 94 | documentation: Documentation/documentation.lyx |
94 | @echo "Creating LaTeX docs..." | 95 | @echo "Creating LaTeX docs..." |