]> granicus.if.org Git - postgresql/blob - src/bcc32.mak
Fix HAVE_OPTRESET to be HAVE_INT_OPTRESET. Typos spotted by Lorne Sunley.
[postgresql] / src / bcc32.mak
1 # $PostgreSQL: pgsql/src/bcc32.mak,v 1.2 2003/11/29 19:51:39 pgsql Exp $
2
3 # Makefile for Borland C++ 5.5 (or compat)
4 # Top-file makefile for Win32 parts of postgresql.
5 # Note that most parts are not ported to Win32!
6
7 !IF "$(CFG)" != "Release" && "$(CFG)" != "Debug"
8 !MESSAGE Invalid configuration "$(CFG)" specified.
9 !MESSAGE You can specify a configuration when running MAKE
10 !MESSAGE by defining the macro CFG on the command line. For example:
11 !MESSAGE
12 !MESSAGE make  -DCFG=[Release | Debug] /f bcc32.mak
13 !MESSAGE
14 !MESSAGE Possible choices for configuration are:
15 !MESSAGE
16 !MESSAGE "Release" (Win32 Release )
17 !MESSAGE "Debug" (Win32 Debug)
18 !MESSAGE
19 !ENDIF
20
21 !IF "$(OS)" == "Windows_NT"
22 NULL=
23 !ELSE 
24 NULL=nul
25 !ENDIF 
26
27 ALL: 
28    cd include
29    if not exist pg_config.h copy pg_config.h.win32 pg_config.h
30    cd ..
31    cd interfaces\libpq
32    make -DCFG=$(CFG) /f bcc32.mak 
33    cd ..\..\bin\psql
34    make -DCFG=$(CFG) /f bcc32.mak
35    cd ..\..
36    echo All Win32 parts have been built!
37
38 CLEAN:
39    cd interfaces\libpq
40    make -DCFG=Release /f bcc32.mak CLEAN
41    make -DCFG=Debug /f bcc32.mak CLEAN
42    cd ..\..\bin\psql
43    make -DCFG=Release /f bcc32.mak CLEAN
44    make -DCFG=Debug /f bcc32.mak CLEAN
45    cd ..\..
46    echo All Win32 parts have been cleaned!
47
48 DISTCLEAN: CLEAN
49    cd include
50    del config.h
51    cd ..