1# src/bcc32.mak 2 3# Makefile for Borland C++ 5.5 (or compat) 4# Top-file makefile for building Win32 libpq with Borland C++. 5 6!IF "$(CFG)" != "Release" && "$(CFG)" != "Debug" 7!MESSAGE Invalid configuration "$(CFG)" specified. 8!MESSAGE You can specify a configuration when running MAKE 9!MESSAGE by defining the macro CFG on the command line. For example: 10!MESSAGE 11!MESSAGE make -DCFG=[Release | Debug] /f bcc32.mak 12!MESSAGE 13!MESSAGE Possible choices for configuration are: 14!MESSAGE 15!MESSAGE "Release" (Win32 Release) 16!MESSAGE "Debug" (Win32 Debug) 17!MESSAGE 18!ENDIF 19 20!IF "$(OS)" == "Windows_NT" 21NULL= 22!ELSE 23NULL=nul 24!ENDIF 25 26ALL: 27 cd include 28 if not exist pg_config.h copy pg_config.h.win32 pg_config.h 29 if not exist pg_config_ext.h copy pg_config_ext.h.win32 pg_config_ext.h 30 if not exist pg_config_os.h copy port\win32.h pg_config_os.h 31 cd .. 32 cd interfaces\libpq 33 make -N -DCFG=$(CFG) /f bcc32.mak 34 cd ..\.. 35 echo All Win32 parts have been built! 36 37CLEAN: 38 cd interfaces\libpq 39 make -N -DCFG=Release /f bcc32.mak CLEAN 40 make -N -DCFG=Debug /f bcc32.mak CLEAN 41 cd ..\.. 42 echo All Win32 parts have been cleaned! 43 44DISTCLEAN: CLEAN 45 cd include 46 del pg_config.h pg_config_ext.h pg_config_os.h 47 cd .. 48