diff options
author | Edward Rudd | 2004-08-17 15:13:13 +0000 |
---|---|---|
committer | Edward Rudd | 2004-08-17 15:13:13 +0000 |
commit | b36378e545e031eeeae795025999798c2db04a4c (patch) | |
tree | e8083115db0f84a8ba68ddd3597bda4c03232b99 | |
parent | 9bc98a029d12912bcbfcbcf27823ea3711078013 (diff) |
Added SSL building for win32
-rw-r--r-- | build-apache2.bat | 22 |
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 | |||
7 | SET DIR_MYSQL=C:\MySQL | 7 | SET DIR_MYSQL=C:\MySQL |
8 | rem Can be set to opt or debug | 8 | rem Can be set to opt or debug |
9 | SET LIB_MYSQL=opt | 9 | SET LIB_MYSQL=opt |
10 | rem path to OpenSSL installation | ||
11 | SET DIR_OPENSSL=C:\OpenSSL | ||
12 | rem Should be set to VC | ||
13 | SET LIB_OPENSSL=VC | ||
10 | 14 | ||
11 | copy /Y winconfig.h config.h | 15 | copy /Y winconfig.h config.h |
12 | mkdir Release | 16 | mkdir Release |
@@ -19,8 +23,14 @@ echo /I.. >> RESP_c.txt | |||
19 | echo /I"%DIR_MSSDK%\Include" >> RESP_c.txt | 23 | echo /I"%DIR_MSSDK%\Include" >> RESP_c.txt |
20 | echo /I"%DIR_APACHE%\Include" >> RESP_c.txt | 24 | echo /I"%DIR_APACHE%\Include" >> RESP_c.txt |
21 | echo /I"%DIR_MYSQL%\Include" >> RESP_c.txt | 25 | echo /I"%DIR_MYSQL%\Include" >> RESP_c.txt |
26 | echo /I"%DIR_OPENSSL%\Include" >> RESP_c.txt | ||
27 | echo /I"%DIR_OPENSSL%\Include\openssl" >> RESP_c.txt | ||
22 | cl @RESP_c.txt /c ..\mod_log_sql.c ..\mod_log_sql_mysql.c | 28 | cl @RESP_c.txt /c ..\mod_log_sql.c ..\mod_log_sql_mysql.c |
23 | 29 | ||
30 | if not exist "%DIR_APACHE%\Include\mod_ssl.h" goto nossl | ||
31 | cl @RESP_C.txt /c ..\mod_log_sql_ssl.c | ||
32 | :nossl | ||
33 | |||
24 | rem link main module | 34 | rem link main module |
25 | echo /MACHINE:I386 /SUBSYSTEM:windows > RESP_l.txt | 35 | echo /MACHINE:I386 /SUBSYSTEM:windows > RESP_l.txt |
26 | echo /OUT:mod_log_sql.so /DLL /OPT:REF /DEBUG >> RESP_l.txt | 36 | echo /OUT:mod_log_sql.so /DLL /OPT:REF /DEBUG >> RESP_l.txt |
@@ -37,4 +47,16 @@ echo /NODEFAULTLIB:LIBCMT.lib >> RESP_l.txt | |||
37 | echo libapr.lib libaprutil.lib libhttpd.lib >> RESP_l.txt | 47 | echo libapr.lib libaprutil.lib libhttpd.lib >> RESP_l.txt |
38 | echo libmysql.lib mod_log_sql.lib >> RESP_l.txt | 48 | echo libmysql.lib mod_log_sql.lib >> RESP_l.txt |
39 | link @RESP_l.txt mod_log_sql_mysql.obj | 49 | link @RESP_l.txt mod_log_sql_mysql.obj |
50 | |||
51 | if not exist "%DIR_APACHE%\Include\mod_ssl.h" goto done | ||
52 | rem link ssl module | ||
53 | echo /MACHINE:I386 /SUBSYSTEM:windows > RESP_l.txt | ||
54 | echo /OUT:mod_log_sql_ssl.so /DLL /OPT:REF /DEBUG >> RESP_l.txt | ||
55 | echo /LIBPATH:"%DIR_APACHE%\lib" >> RESP_l.txt | ||
56 | echo /LIBPATH:"%DIR_OPENSSL%\lib\%LIB_OPENSSL%" >> RESP_l.txt | ||
57 | echo libapr.lib libaprutil.lib libhttpd.lib >> RESP_l.txt | ||
58 | echo mod_log_sql.lib >> RESP_l.txt | ||
59 | link @RESP_l.txt mod_log_sql_ssl.obj | ||
60 | |||
61 | :done | ||
40 | cd .. | 62 | cd .. |