diff options
author | Edward Rudd | 2004-04-29 21:19:30 +0000 |
---|---|---|
committer | Edward Rudd | 2004-04-29 21:19:30 +0000 |
commit | 7c378cc1fac4e9fec1ca32d8d314ea86761a7404 (patch) | |
tree | bc82e7e864ce3978904bc1cb9d9eb6fa52e95dde /build-apache2.bat | |
parent | be0fe66bcd84e4660b9dba4c1f1f20a649b66c61 (diff) |
win32 updates and build script
added LogSQLDisablePreserve
set default of preserve file to root_relative logs/mod_log_sql-preserve
Diffstat (limited to 'build-apache2.bat')
-rw-r--r-- | build-apache2.bat | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/build-apache2.bat b/build-apache2.bat new file mode 100644 index 0000000..f44109c --- /dev/null +++ b/build-apache2.bat | |||
@@ -0,0 +1,40 @@ | |||
1 | @echo off | ||
2 | rem path to Microsoft SDK installation | ||
3 | SET DIR_MSSDK=C:\Program Files\Microsoft SDK | ||
4 | rem path to apache2 installation | ||
5 | SET DIR_APACHE=C:\Program Files\Apache Group\Apache2 | ||
6 | rem path to mysql 4.0 installation | ||
7 | SET DIR_MYSQL=C:\MySQL | ||
8 | rem Can be set to opt or debug | ||
9 | SET LIB_MYSQL=opt | ||
10 | |||
11 | copy /Y winconfig.h config.h | ||
12 | mkdir Release | ||
13 | cd Release | ||
14 | Rem Compile all the source code | ||
15 | echo /MD /W3 /Zi /O2 /DNDEBUG /D_WINDOWS /DWIN32 > RESP_c.txt | ||
16 | echo /Fd"mod_log_sql" /FD >> RESP_c.txt | ||
17 | echo /DHAVE_CONFIG_H /DWITH_APACHE20 /DLOGSQL_DECLARE_EXPORT >> RESP_c.txt | ||
18 | echo /I.. >> RESP_c.txt | ||
19 | echo /I"%DIR_MSSDK%\Include" >> RESP_c.txt | ||
20 | echo /I"%DIR_APACHE%\Include" >> RESP_c.txt | ||
21 | echo /I"%DIR_MYSQL%\Include" >> RESP_c.txt | ||
22 | cl @RESP_c.txt /c ..\mod_log_sql.c ..\mod_log_sql_mysql.c | ||
23 | |||
24 | rem link main module | ||
25 | echo /MACHINE:I386 /SUBSYSTEM:windows > RESP_l.txt | ||
26 | echo /OUT:mod_log_sql.so /DLL /OPT:REF /DEBUG >> RESP_l.txt | ||
27 | echo /LIBPATH:"%DIR_APACHE%\lib" >> RESP_l.txt | ||
28 | echo libapr.lib libaprutil.lib libhttpd.lib >> RESP_l.txt | ||
29 | link @RESP_l.txt mod_log_sql.obj | ||
30 | |||
31 | rem link mysql module | ||
32 | echo /MACHINE:I386 /SUBSYSTEM:windows > RESP_l.txt | ||
33 | echo /OUT:mod_log_sql_mysql.so /DLL /OPT:REF /DEBUG >> RESP_l.txt | ||
34 | echo /LIBPATH:"%DIR_APACHE%\lib" >> RESP_l.txt | ||
35 | echo /LIBPATH:"%DIR_MYSQL%\lib\%LIB_MYSQL%" >> RESP_l.txt | ||
36 | echo /NODEFAULTLIB:LIBCMT.lib >> RESP_l.txt | ||
37 | echo libapr.lib libaprutil.lib libhttpd.lib >> RESP_l.txt | ||
38 | echo libmysql.lib mod_log_sql.lib >> RESP_l.txt | ||
39 | link @RESP_l.txt mod_log_sql_mysql.obj | ||
40 | cd .. | ||