summaryrefslogtreecommitdiffstats
path: root/build-apache13.bat
diff options
context:
space:
mode:
authorGravatar Edward Rudd 2004-04-29 23:11:12 +0000
committerGravatar Edward Rudd 2004-04-29 23:11:12 +0000
commit211c72fce4173b76712ae36bc240ca63c4fc1e31 (patch)
tree6b775e64b874627079f9b037e5236f8dcf6e25b7 /build-apache13.bat
parent482c6dba5db896d06099737e8a75be6a3949b492 (diff)
win32 fixes for apache 1.3
added win32 build script
Diffstat (limited to 'build-apache13.bat')
-rw-r--r--build-apache13.bat47
1 files changed, 47 insertions, 0 deletions
diff --git a/build-apache13.bat b/build-apache13.bat
new file mode 100644
index 0000000..77461ee
--- /dev/null
+++ b/build-apache13.bat
@@ -0,0 +1,47 @@
1@echo off
2cls
3rem path to Microsoft SDK installation
4SET DIR_MSSDK=C:\Program Files\Microsoft SDK
5rem path to apache2 installation
6SET DIR_APACHE=C:\Program Files\Apache Group\Apache
7rem path to mysql 4.0 installation
8SET DIR_MYSQL=C:\MySQL
9rem Can be set to opt or debug
10SET LIB_MYSQL=opt
11
12copy /Y winconfig.h config.h
13mkdir Release
14cd Release
15Rem Compile all the source code
16echo /MD /W3 /Zi /Ze /O2 > RESP_c.txt
17echo /DNDEBUG /D_WINDOWS /DWIN32 >> RESP_c.txt
18echo /Fd"mod_log_sql" /FD >> RESP_c.txt
19echo /DHAVE_CONFIG_H /DWITH_APACHE13 /DLOGSQL_DECLARE_EXPORT >> RESP_c.txt
20echo /DSHARED_MODULE >> RESP_c.txt
21echo /I.. >> RESP_c.txt
22echo /I"%DIR_MSSDK%\Include" >> RESP_c.txt
23echo /I"%DIR_APACHE%\Include" >> RESP_c.txt
24echo /I"%DIR_MYSQL%\Include" >> RESP_c.txt
25cl @RESP_c.txt /c ..\mod_log_sql.c ..\mod_log_sql_mysql.c
26
27rem link main module
28echo /MACHINE:I386 /SUBSYSTEM:windows > RESP_l.txt
29echo /OUT:mod_log_sql.so /DLL /OPT:REF /DEBUG >> RESP_l.txt
30echo /LIBPATH:"%DIR_APACHE%\lib" >> RESP_l.txt
31echo /LIBPATH:"%DIR_APACHE%\libexec" >> RESP_l.txt
32echo /LIBPATH:"%DIR_MSSDK%\lib" >> RESP_l.txt
33echo ApacheCore.lib >> RESP_l.txt
34link @RESP_l.txt mod_log_sql.obj
35
36rem link mysql module
37echo /MACHINE:I386 /SUBSYSTEM:windows > RESP_l.txt
38echo /OUT:mod_log_sql_mysql.so /DLL /OPT:REF /DEBUG >> RESP_l.txt
39echo /LIBPATH:"%DIR_APACHE%\lib" >> RESP_l.txt
40echo /LIBPATH:"%DIR_APACHE%\libexec" >> RESP_l.txt
41echo /LIBPATH:"%DIR_MYSQL%\lib\%LIB_MYSQL%" >> RESP_l.txt
42echo /LIBPATH:"%DIR_MSSDK%\lib" >> RESP_l.txt
43echo /NODEFAULTLIB:LIBCMT.lib >> RESP_l.txt
44echo ApacheCore.lib >> RESP_l.txt
45echo libmysql.lib mod_log_sql.lib >> RESP_l.txt
46link @RESP_l.txt mod_log_sql_mysql.obj
47cd ..