diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 62 |
1 files changed, 43 insertions, 19 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | # $Id: Makefile,v 1.9 2002/04/21 23:01:52 helios Exp $ | 1 | # $Id: Makefile,v 1.10 2002/05/14 21:47:14 helios Exp $ |
| 2 | MLMVERS = 1.16 | 2 | MLMVERS = 1.17 |
| 3 | 3 | ||
| 4 | # Where you unpacked your Apache tarball -- the source. | 4 | # Where you unpacked your Apache tarball -- the source. |
| 5 | APACHESOURCE = /usr/local/src/apache_1.3.22 | 5 | APACHESOURCE = /usr/local/src/apache_1.3.22 |
| @@ -7,16 +7,28 @@ APACHESOURCE = /usr/local/src/apache_1.3.22 | |||
| 7 | # Where Apache [got|will get] installed | 7 | # Where Apache [got|will get] installed |
| 8 | APACHEINST = /usr/local/Apache | 8 | APACHEINST = /usr/local/Apache |
| 9 | 9 | ||
| 10 | # Set the WANT_SSL_LOGGING define in mod_log_mysql.c if you want to log SSL | 10 | # Do you want to log SSL information? |
| 11 | # info, or #undef it if you don't. Then use the first CFLAGS if you *do* | 11 | # Yes? |
| 12 | # WANT_SSL_LOGGING, and confirm the paths. | 12 | # - #define WANT_SSL_LOGGING in mod_log_sql.c |
| 13 | # - pick (A) below | ||
| 14 | # No? | ||
| 15 | # - #undef WANT_SSL_LOGGING in mod_log_sql.c | ||
| 16 | # - pick (B) below | ||
| 17 | |||
| 18 | |||
| 19 | # (A) | ||
| 13 | # | 20 | # |
| 21 | # Modify "/usr/include/mysql" to where YOUR mysql.h can be found, | ||
| 14 | # Modify "/usr/local/ssl/include" to where YOUR openssl/*.h files are, | 22 | # Modify "/usr/local/ssl/include" to where YOUR openssl/*.h files are, |
| 15 | # Modify "/usr/include/db1" to where YOUR ndbm.h can be found, | 23 | # Modify "/usr/include/db1" to where YOUR ndbm.h can be found, |
| 16 | # Modify "/usr/local/src/apache_1.3.22/src/modules/ssl" to where YOUR mod_ssl.h can be found. | 24 | # Modify "/usr/local/src/apache_1.3.22/src/modules/ssl" to where YOUR mod_ssl.h can be found. |
| 17 | # | 25 | # |
| 18 | # How to find your directories: | 26 | # How to find your directories: |
| 19 | # | 27 | # |
| 28 | # $ locate mysql.h | ||
| 29 | # /usr/include/mysql/mysql.h | ||
| 30 | # ^^^^^^^^^^^^^^^^^^ | ||
| 31 | # | ||
| 20 | # $ locate x509.h | 32 | # $ locate x509.h |
| 21 | # /usr/local/ssl/include/openssl/x509.h | 33 | # /usr/local/ssl/include/openssl/x509.h |
| 22 | # ^^^^^^^^^^^^^^^^^^^^^^ | 34 | # ^^^^^^^^^^^^^^^^^^^^^^ |
| @@ -28,11 +40,23 @@ APACHEINST = /usr/local/Apache | |||
| 28 | # $ locate mod_ssl.h | 40 | # $ locate mod_ssl.h |
| 29 | # /usr/local/src/apache_1.3.22/src/modules/ssl/mod_ssl.h | 41 | # /usr/local/src/apache_1.3.22/src/modules/ssl/mod_ssl.h |
| 30 | # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 42 | # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 43 | # Now uncomment this CFLAGS and comment out the one further down: | ||
| 31 | 44 | ||
| 32 | CFLAGS = -fpic -O2 -Wall -I${APACHEINST}/include -I/usr/local/ssl/include -I/usr/include/db1 -I${APACHESOURCE}/src/modules/ssl | 45 | CFLAGS = -fpic -O2 -Wall -I${APACHEINST}/include -I/usr/include/mysql -I/usr/local/ssl/include -I/usr/include/db1 -I${APACHESOURCE}/src/modules/ssl |
| 46 | |||
| 47 | # (B) | ||
| 48 | # | ||
| 49 | # Modify "/usr/include/mysql" to where YOUR mysql.h can be found, | ||
| 50 | # | ||
| 51 | # How to find your directories: | ||
| 52 | # | ||
| 53 | # $ locate mysql.h | ||
| 54 | # /usr/include/mysql/mysql.h | ||
| 55 | # ^^^^^^^^^^^^^^^^^^ | ||
| 56 | # | ||
| 57 | # Comment out CFLAGS above and uncomment CFLAGS below: | ||
| 33 | 58 | ||
| 34 | # Use this CFLAGS if you don't WANT_SSL_LOGGING: | 59 | #CFLAGS = -fpic -O2 -Wall -I${APACHEINST}/include -I/usr/include/mysql |
| 35 | #CFLAGS = -fpic -O2 -Wall -I${APACHEINST}/include | ||
| 36 | 60 | ||
| 37 | 61 | ||
| 38 | # --------------------------------------------------------- | 62 | # --------------------------------------------------------- |
| @@ -41,24 +65,24 @@ CFLAGS = -fpic -O2 -Wall -I${APACHEINST}/include -I/usr/local/ssl/include -I/ | |||
| 41 | CC = gcc | 65 | CC = gcc |
| 42 | INSTALL = /usr/bin/install -m 664 | 66 | INSTALL = /usr/bin/install -m 664 |
| 43 | 67 | ||
| 44 | all: mod_log_mysql.o | 68 | all: mod_log_sql.o |
| 45 | 69 | ||
| 46 | mod_log_mysql.o: mod_log_mysql.c Makefile | 70 | mod_log_sql.o: mod_log_sql.c Makefile |
| 47 | $(CC) ${CFLAGS} -c mod_log_mysql.c | 71 | $(CC) ${CFLAGS} -c mod_log_sql.c |
| 48 | 72 | ||
| 49 | install: all | 73 | install: all |
| 50 | $(INSTALL) -d -m 755 ${APACHESOURCE}/src/modules/sql | 74 | $(INSTALL) -d -m 755 ${APACHESOURCE}/src/modules/sql |
| 51 | $(INSTALL) mod_log_mysql.c ${APACHESOURCE}/src/modules/sql/mod_log_mysql.c | 75 | $(INSTALL) mod_log_sql.c ${APACHESOURCE}/src/modules/sql/mod_log_sql.c |
| 52 | $(INSTALL) Makefile ${APACHESOURCE}/src/modules/sql/Makefile | 76 | $(INSTALL) Makefile ${APACHESOURCE}/src/modules/sql/Makefile |
| 53 | $(INSTALL) mod_log_mysql.o ${APACHESOURCE}/src/modules/sql/mod_log_mysql.o | 77 | $(INSTALL) mod_log_sql.o ${APACHESOURCE}/src/modules/sql/mod_log_sql.o |
| 54 | 78 | ||
| 55 | distro: all | 79 | distro: all |
| 56 | cp -f INSTALL ${APACHEINST}/html/mod_log_mysql/ | 80 | cp -f INSTALL ${APACHEINST}/html/mod_log_sql/ |
| 57 | cp -f README ${APACHEINST}/html/mod_log_mysql/ | 81 | cp -f README ${APACHEINST}/html/mod_log_sql/ |
| 58 | cp -f CHANGELOG ${APACHEINST}/html/mod_log_mysql/ | 82 | cp -f CHANGELOG ${APACHEINST}/html/mod_log_sql/ |
| 59 | cd ..; tar zcf mod_log_mysql-${MLMVERS}.tar.gz --exclude mod_log_mysql/CVS mod_log_mysql/; $(INSTALL) mod_log_mysql-${MLMVERS}.tar.gz ${APACHEINST}/html/mod_log_mysql/; rm -f mod_log_mysql-${MLMVERS}.tar.gz | 83 | cd ..; tar zcf mod_log_sql-${MLMVERS}.tar.gz --exclude mod_log_sql/CVS mod_log_sql/; $(INSTALL) mod_log_sql-${MLMVERS}.tar.gz ${APACHEINST}/html/mod_log_sql/; rm -f mod_log_sql-${MLMVERS}.tar.gz |
| 60 | rm -f ${APACHEINST}/html/mod_log_mysql/mod_log_mysql.tar.gz | 84 | rm -f ${APACHEINST}/html/mod_log_sql/mod_log_sql.tar.gz |
| 61 | ln -s mod_log_mysql-${MLMVERS}.tar.gz ${APACHEINST}/html/mod_log_mysql/mod_log_mysql.tar.gz | 85 | ln -s mod_log_sql-${MLMVERS}.tar.gz ${APACHEINST}/html/mod_log_sql/mod_log_sql.tar.gz |
| 62 | 86 | ||
| 63 | clean: | 87 | clean: |
| 64 | rm -f *.o *~ | 88 | rm -f *.o *~ |
