diff options
author | Edward Rudd | 2004-04-29 23:11:12 +0000 |
---|---|---|
committer | Edward Rudd | 2004-04-29 23:11:12 +0000 |
commit | 211c72fce4173b76712ae36bc240ca63c4fc1e31 (patch) | |
tree | 6b775e64b874627079f9b037e5236f8dcf6e25b7 /build-apache13.bat | |
parent | 482c6dba5db896d06099737e8a75be6a3949b492 (diff) |
win32 fixes for apache 1.3
added win32 build script
Diffstat (limited to 'build-apache13.bat')
-rw-r--r-- | build-apache13.bat | 47 |
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 | ||
2 | cls | ||
3 | rem path to Microsoft SDK installation | ||
4 | SET DIR_MSSDK=C:\Program Files\Microsoft SDK | ||
5 | rem path to apache2 installation | ||
6 | SET DIR_APACHE=C:\Program Files\Apache Group\Apache | ||
7 | rem path to mysql 4.0 installation | ||
8 | SET DIR_MYSQL=C:\MySQL | ||
9 | rem Can be set to opt or debug | ||
10 | SET LIB_MYSQL=opt | ||
11 | |||
12 | copy /Y winconfig.h config.h | ||
13 | mkdir Release | ||
14 | cd Release | ||
15 | Rem Compile all the source code | ||
16 | echo /MD /W3 /Zi /Ze /O2 > RESP_c.txt | ||
17 | echo /DNDEBUG /D_WINDOWS /DWIN32 >> RESP_c.txt | ||
18 | echo /Fd"mod_log_sql" /FD >> RESP_c.txt | ||
19 | echo /DHAVE_CONFIG_H /DWITH_APACHE13 /DLOGSQL_DECLARE_EXPORT >> RESP_c.txt | ||
20 | echo /DSHARED_MODULE >> RESP_c.txt | ||
21 | echo /I.. >> RESP_c.txt | ||
22 | echo /I"%DIR_MSSDK%\Include" >> RESP_c.txt | ||
23 | echo /I"%DIR_APACHE%\Include" >> RESP_c.txt | ||
24 | echo /I"%DIR_MYSQL%\Include" >> RESP_c.txt | ||
25 | cl @RESP_c.txt /c ..\mod_log_sql.c ..\mod_log_sql_mysql.c | ||
26 | |||
27 | rem link main module | ||
28 | echo /MACHINE:I386 /SUBSYSTEM:windows > RESP_l.txt | ||
29 | echo /OUT:mod_log_sql.so /DLL /OPT:REF /DEBUG >> RESP_l.txt | ||
30 | echo /LIBPATH:"%DIR_APACHE%\lib" >> RESP_l.txt | ||
31 | echo /LIBPATH:"%DIR_APACHE%\libexec" >> RESP_l.txt | ||
32 | echo /LIBPATH:"%DIR_MSSDK%\lib" >> RESP_l.txt | ||
33 | echo ApacheCore.lib >> RESP_l.txt | ||
34 | link @RESP_l.txt mod_log_sql.obj | ||
35 | |||
36 | rem link mysql module | ||
37 | echo /MACHINE:I386 /SUBSYSTEM:windows > RESP_l.txt | ||
38 | echo /OUT:mod_log_sql_mysql.so /DLL /OPT:REF /DEBUG >> RESP_l.txt | ||
39 | echo /LIBPATH:"%DIR_APACHE%\lib" >> RESP_l.txt | ||
40 | echo /LIBPATH:"%DIR_APACHE%\libexec" >> RESP_l.txt | ||
41 | echo /LIBPATH:"%DIR_MYSQL%\lib\%LIB_MYSQL%" >> RESP_l.txt | ||
42 | echo /LIBPATH:"%DIR_MSSDK%\lib" >> RESP_l.txt | ||
43 | echo /NODEFAULTLIB:LIBCMT.lib >> RESP_l.txt | ||
44 | echo ApacheCore.lib >> RESP_l.txt | ||
45 | echo libmysql.lib mod_log_sql.lib >> RESP_l.txt | ||
46 | link @RESP_l.txt mod_log_sql_mysql.obj | ||
47 | cd .. | ||