diff options
| author | Bruce Momjian <bruce@momjian.us> | 2002-12-30 21:07:26 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2002-12-30 21:07:26 +0000 |
| commit | d82794ee33a043ade43db6c7aaa299a2a153ade5 (patch) | |
| tree | f499f97732ea08f41f31841aaef7717cd6ce24ee /src/bcc32.mak | |
| parent | 896bd121cc4d468245acb76232b95100d5a87e12 (diff) | |
| download | postgresql-d82794ee33a043ade43db6c7aaa299a2a153ade5.tar.gz | |
Attached is a patch to provide makefiles, etc. to allow the compilation
of the libpq interface static and dynamic libraries with the freely
downloadable Borland C++ compiler version 5.5 and/or C++ Builder.
Lester Godwin
Diffstat (limited to 'src/bcc32.mak')
| -rw-r--r-- | src/bcc32.mak | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/bcc32.mak b/src/bcc32.mak new file mode 100644 index 0000000000..87df2c03fa --- /dev/null +++ b/src/bcc32.mak @@ -0,0 +1,51 @@ +# $Header: /cvsroot/pgsql/src/bcc32.mak,v 1.1 2002/12/30 21:07:21 momjian Exp $ + +# Makefile for Borland C++ 5.5 (or compat) +# Top-file makefile for Win32 parts of postgresql. +# Note that most parts are not ported to Win32! + +!IF "$(CFG)" != "Release" && "$(CFG)" != "Debug" +!MESSAGE Invalid configuration "$(CFG)" specified. +!MESSAGE You can specify a configuration when running MAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE make -DCFG=[Release | Debug] /f bcc32.mak +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "Release" (Win32 Release ) +!MESSAGE "Debug" (Win32 Debug) +!MESSAGE +!ENDIF + +!IF "$(OS)" == "Windows_NT" +NULL= +!ELSE +NULL=nul +!ENDIF + +ALL: + cd include + if not exist pg_config.h copy pg_config.h.win32 pg_config.h + cd .. + cd interfaces\libpq + make -DCFG=$(CFG) /f bcc32.mak + cd ..\..\bin\psql + make -DCFG=$(CFG) /f bcc32.mak + cd ..\.. + echo All Win32 parts have been built! + +CLEAN: + cd interfaces\libpq + make -DCFG=Release /f bcc32.mak CLEAN + make -DCFG=Debug /f bcc32.mak CLEAN + cd ..\..\bin\psql + make -DCFG=Release /f bcc32.mak CLEAN + make -DCFG=Debug /f bcc32.mak CLEAN + cd ..\.. + echo All Win32 parts have been cleaned! + +DISTCLEAN: CLEAN + cd include + del config.h + cd .. |
