summaryrefslogtreecommitdiffstats
path: root/build-apache2.bat
diff options
context:
space:
mode:
authorGravatar Edward Rudd 2004-04-29 21:19:30 +0000
committerGravatar Edward Rudd 2004-04-29 21:19:30 +0000
commit7c378cc1fac4e9fec1ca32d8d314ea86761a7404 (patch)
treebc82e7e864ce3978904bc1cb9d9eb6fa52e95dde /build-apache2.bat
parentbe0fe66bcd84e4660b9dba4c1f1f20a649b66c61 (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.bat40
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
2rem path to Microsoft SDK installation
3SET DIR_MSSDK=C:\Program Files\Microsoft SDK
4rem path to apache2 installation
5SET DIR_APACHE=C:\Program Files\Apache Group\Apache2
6rem path to mysql 4.0 installation
7SET DIR_MYSQL=C:\MySQL
8rem Can be set to opt or debug
9SET LIB_MYSQL=opt
10
11copy /Y winconfig.h config.h
12mkdir Release
13cd Release
14Rem Compile all the source code
15echo /MD /W3 /Zi /O2 /DNDEBUG /D_WINDOWS /DWIN32 > RESP_c.txt
16echo /Fd"mod_log_sql" /FD >> RESP_c.txt
17echo /DHAVE_CONFIG_H /DWITH_APACHE20 /DLOGSQL_DECLARE_EXPORT >> RESP_c.txt
18echo /I.. >> RESP_c.txt
19echo /I"%DIR_MSSDK%\Include" >> RESP_c.txt
20echo /I"%DIR_APACHE%\Include" >> RESP_c.txt
21echo /I"%DIR_MYSQL%\Include" >> RESP_c.txt
22cl @RESP_c.txt /c ..\mod_log_sql.c ..\mod_log_sql_mysql.c
23
24rem link main module
25echo /MACHINE:I386 /SUBSYSTEM:windows > RESP_l.txt
26echo /OUT:mod_log_sql.so /DLL /OPT:REF /DEBUG >> RESP_l.txt
27echo /LIBPATH:"%DIR_APACHE%\lib" >> RESP_l.txt
28echo libapr.lib libaprutil.lib libhttpd.lib >> RESP_l.txt
29link @RESP_l.txt mod_log_sql.obj
30
31rem link mysql module
32echo /MACHINE:I386 /SUBSYSTEM:windows > RESP_l.txt
33echo /OUT:mod_log_sql_mysql.so /DLL /OPT:REF /DEBUG >> RESP_l.txt
34echo /LIBPATH:"%DIR_APACHE%\lib" >> RESP_l.txt
35echo /LIBPATH:"%DIR_MYSQL%\lib\%LIB_MYSQL%" >> RESP_l.txt
36echo /NODEFAULTLIB:LIBCMT.lib >> RESP_l.txt
37echo libapr.lib libaprutil.lib libhttpd.lib >> RESP_l.txt
38echo libmysql.lib mod_log_sql.lib >> RESP_l.txt
39link @RESP_l.txt mod_log_sql_mysql.obj
40cd ..