Commit | Line | Data |
0198fd3c |
1 | rem |
2 | rem This build script is intended to be run from the root dir that |
3 | rem the FastCGI kit was unpacked in. It should work on an X86 |
4 | rem machine but it's only been tested in limited form. |
5 | rem |
6 | rem $Id: build_no_shell.bat,v 1.1 1997/09/16 15:36:24 stanleyg Exp $ |
7 | rem |
8 | rem |
9 | |
10 | echo off |
11 | if not exist "include\fcgi_config_x86.h" goto NO_CONFIG |
12 | |
13 | copy include\fcgi_config_x86.h include\fcgi_config.h |
14 | |
15 | rem |
16 | rem Build the FastCGI DLL and import library. |
17 | rem |
18 | cd libfcgi |
19 | nmake -f libfcgi.mak |
20 | %1% |
21 | |
22 | rem |
23 | rem Build the cgi-fcgi.exe "shim" application. |
24 | rem |
25 | cd ..\cgi-fcgi |
26 | nmake -f cgi-fcgi.mak |
27 | %1% |
28 | |
29 | rem |
30 | rem Now build the sample applications that have been qualified. |
31 | rem |
32 | cd ..\examples |
33 | nmake -f echo.mak |
34 | nmake -f echo2.mak |
35 | nmake -f tiny-fcgi.mak |
36 | nmake -f tiny-fcgi2.mak |
37 | |
38 | cd .. |
39 | |
40 | rem |
41 | rem Now copy all binaries (including the libfcgi.dll) to a common |
42 | rem directory to make testing and accessing the apps easier. |
43 | rem |
44 | if not exist "FcgiBin" mkdir FcgiBin |
45 | copy libfcgi\Debug\libfcgi.dll FcgiBin |
46 | copy examples\*.fcgi FcgiBin |
47 | copy examples\Debug\*.exe FcgiBin |
48 | copy cgi-fcgi\Debug\cgi-fcgi.exe FcgiBin |
49 | |
50 | goto :DONE |
51 | |
52 | :NO_CONFIG |
53 | echo Could not find the file "fcgi_config_x86.h". Aborting. |
54 | |
55 | :DONE |
56 | |