summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Edward Rudd 2004-08-17 15:13:13 +0000
committerGravatar Edward Rudd 2004-08-17 15:13:13 +0000
commitb36378e545e031eeeae795025999798c2db04a4c (patch)
treee8083115db0f84a8ba68ddd3597bda4c03232b99
parent9bc98a029d12912bcbfcbcf27823ea3711078013 (diff)
Added SSL building for win32
-rw-r--r--build-apache2.bat22
1 files changed, 22 insertions, 0 deletions
diff --git a/build-apache2.bat b/build-apache2.bat
index f44109c..c18fa23 100644
--- a/build-apache2.bat
+++ b/build-apache2.bat
@@ -7,6 +7,10 @@ rem path to mysql 4.0 installation
7SET DIR_MYSQL=C:\MySQL 7SET DIR_MYSQL=C:\MySQL
8rem Can be set to opt or debug 8rem Can be set to opt or debug
9SET LIB_MYSQL=opt 9SET LIB_MYSQL=opt
10rem path to OpenSSL installation
11SET DIR_OPENSSL=C:\OpenSSL
12rem Should be set to VC
13SET LIB_OPENSSL=VC
10 14
11copy /Y winconfig.h config.h 15copy /Y winconfig.h config.h
12mkdir Release 16mkdir Release
@@ -19,8 +23,14 @@ echo /I.. >> RESP_c.txt
19echo /I"%DIR_MSSDK%\Include" >> RESP_c.txt 23echo /I"%DIR_MSSDK%\Include" >> RESP_c.txt
20echo /I"%DIR_APACHE%\Include" >> RESP_c.txt 24echo /I"%DIR_APACHE%\Include" >> RESP_c.txt
21echo /I"%DIR_MYSQL%\Include" >> RESP_c.txt 25echo /I"%DIR_MYSQL%\Include" >> RESP_c.txt
26echo /I"%DIR_OPENSSL%\Include" >> RESP_c.txt
27echo /I"%DIR_OPENSSL%\Include\openssl" >> RESP_c.txt
22cl @RESP_c.txt /c ..\mod_log_sql.c ..\mod_log_sql_mysql.c 28cl @RESP_c.txt /c ..\mod_log_sql.c ..\mod_log_sql_mysql.c
23 29
30if not exist "%DIR_APACHE%\Include\mod_ssl.h" goto nossl
31cl @RESP_C.txt /c ..\mod_log_sql_ssl.c
32:nossl
33
24rem link main module 34rem link main module
25echo /MACHINE:I386 /SUBSYSTEM:windows > RESP_l.txt 35echo /MACHINE:I386 /SUBSYSTEM:windows > RESP_l.txt
26echo /OUT:mod_log_sql.so /DLL /OPT:REF /DEBUG >> RESP_l.txt 36echo /OUT:mod_log_sql.so /DLL /OPT:REF /DEBUG >> RESP_l.txt
@@ -37,4 +47,16 @@ echo /NODEFAULTLIB:LIBCMT.lib >> RESP_l.txt
37echo libapr.lib libaprutil.lib libhttpd.lib >> RESP_l.txt 47echo libapr.lib libaprutil.lib libhttpd.lib >> RESP_l.txt
38echo libmysql.lib mod_log_sql.lib >> RESP_l.txt 48echo libmysql.lib mod_log_sql.lib >> RESP_l.txt
39link @RESP_l.txt mod_log_sql_mysql.obj 49link @RESP_l.txt mod_log_sql_mysql.obj
50
51if not exist "%DIR_APACHE%\Include\mod_ssl.h" goto done
52rem link ssl module
53echo /MACHINE:I386 /SUBSYSTEM:windows > RESP_l.txt
54echo /OUT:mod_log_sql_ssl.so /DLL /OPT:REF /DEBUG >> RESP_l.txt
55echo /LIBPATH:"%DIR_APACHE%\lib" >> RESP_l.txt
56echo /LIBPATH:"%DIR_OPENSSL%\lib\%LIB_OPENSSL%" >> RESP_l.txt
57echo libapr.lib libaprutil.lib libhttpd.lib >> RESP_l.txt
58echo mod_log_sql.lib >> RESP_l.txt
59link @RESP_l.txt mod_log_sql_ssl.obj
60
61:done
40cd .. 62cd ..