2002-12-30 22:07:26 +01:00
|
|
|
# Makefile for Borland C++ 5.5
|
|
|
|
|
|
|
|
# Will build a Win32 static library libpq.lib
|
|
|
|
# and a Win32 dynamic library libpq.dll with import library libpqdll.lib
|
|
|
|
|
|
|
|
# Borland C++ base install directory goes here
|
2005-04-30 06:00:07 +02:00
|
|
|
# BCB=c:\Borland\Bcc55
|
2005-04-29 15:42:21 +02:00
|
|
|
|
|
|
|
!IF "$(BCB)" == ""
|
|
|
|
!MESSAGE You must edit bcc32.mak and define BCB at the top
|
|
|
|
!ERROR misssing BCB
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IF "$(__NMAKE__)" == ""
|
|
|
|
!MESSAGE You must use the -N compatibility flag, e.g. make -N -f bcc32.make
|
|
|
|
!ERROR missing -N
|
|
|
|
!ENDIF
|
2002-12-30 22:07:26 +01:00
|
|
|
|
|
|
|
!MESSAGE Building the Win32 DLL and Static Library...
|
|
|
|
!MESSAGE
|
|
|
|
!IF "$(CFG)" == ""
|
|
|
|
CFG=Release
|
|
|
|
!MESSAGE No configuration specified. Defaulting to Release.
|
|
|
|
!MESSAGE
|
|
|
|
!ELSE
|
|
|
|
!MESSAGE Configuration "$(CFG)"
|
|
|
|
!MESSAGE
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!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
|
2005-04-29 15:42:21 +02:00
|
|
|
!MESSAGE make -N -DCFG=[Release | Debug] -f bcc32.mak
|
2002-12-30 22:07:26 +01:00
|
|
|
!MESSAGE
|
|
|
|
!MESSAGE Possible choices for configuration are:
|
|
|
|
!MESSAGE
|
|
|
|
!MESSAGE "Release" (Win32 Release DLL and Static Library)
|
|
|
|
!MESSAGE "Debug" (Win32 Debug DLL and Static Library)
|
|
|
|
!MESSAGE
|
|
|
|
!ERROR An invalid configuration was specified.
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IF "$(OS)" == "Windows_NT"
|
|
|
|
NULL=
|
2010-11-23 21:27:50 +01:00
|
|
|
!ELSE
|
2002-12-30 22:07:26 +01:00
|
|
|
NULL=nul
|
2010-11-23 21:27:50 +01:00
|
|
|
!ENDIF
|
2002-12-30 22:07:26 +01:00
|
|
|
|
|
|
|
!IF "$(CFG)" == "Debug"
|
|
|
|
DEBUG=1
|
|
|
|
OUTDIR=.\Debug
|
|
|
|
INTDIR=.\Debug
|
2005-02-21 22:22:32 +01:00
|
|
|
!ELSE
|
2002-12-30 22:07:26 +01:00
|
|
|
OUTDIR=.\Release
|
|
|
|
INTDIR=.\Release
|
2005-02-21 22:22:32 +01:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
OUTFILENAME=blibpq
|
2002-12-30 22:07:26 +01:00
|
|
|
|
2006-11-22 00:26:47 +01:00
|
|
|
USERDEFINES=FRONTEND;NDEBUG;WIN32;_WINDOWS
|
2002-12-30 22:07:26 +01:00
|
|
|
|
|
|
|
CPP=bcc32.exe
|
2009-04-20 00:37:13 +02:00
|
|
|
CPP_PROJ = -I..\..\include\port\win32_msvc;$(BCB)\include;..\..\include;..\..\include\port\win32;..\..\port -n"$(INTDIR)" -WD -c -D$(USERDEFINES) -tWM \
|
2002-12-30 22:07:26 +01:00
|
|
|
-a8 -X -w-use -w-par -w-pia -w-csu -w-aus -w-ccc
|
|
|
|
|
|
|
|
!IFDEF DEBUG
|
|
|
|
CPP_PROJ = $(CPP_PROJ) -Od -r- -k -v -y -vi- -D_DEBUG
|
|
|
|
!else
|
|
|
|
CPP_PROJ = $(CPP_PROJ) -O -Oi -OS -DNDEBUG
|
|
|
|
!endif
|
|
|
|
|
2005-04-29 15:42:21 +02:00
|
|
|
ALL : config "$(OUTDIR)" "$(OUTDIR)\blibpq.dll" "$(OUTDIR)\blibpq.lib"
|
|
|
|
|
2005-02-21 22:22:32 +01:00
|
|
|
CLEAN :
|
|
|
|
-@erase "$(INTDIR)\getaddrinfo.obj"
|
|
|
|
-@erase "$(INTDIR)\pgstrcasecmp.obj"
|
2013-03-17 20:45:31 +01:00
|
|
|
-@erase "$(INTDIR)\pqsignal.obj"
|
2005-02-21 22:22:32 +01:00
|
|
|
-@erase "$(INTDIR)\thread.obj"
|
|
|
|
-@erase "$(INTDIR)\inet_aton.obj"
|
|
|
|
-@erase "$(INTDIR)\crypt.obj"
|
|
|
|
-@erase "$(INTDIR)\noblock.obj"
|
2011-09-07 21:43:50 +02:00
|
|
|
-@erase "$(INTDIR)\chklocale.obj"
|
|
|
|
-@erase "$(INTDIR)\inet_net_ntop.obj"
|
2005-02-21 22:22:32 +01:00
|
|
|
-@erase "$(INTDIR)\md5.obj"
|
|
|
|
-@erase "$(INTDIR)\ip.obj"
|
|
|
|
-@erase "$(INTDIR)\fe-auth.obj"
|
|
|
|
-@erase "$(INTDIR)\fe-protocol2.obj"
|
|
|
|
-@erase "$(INTDIR)\fe-protocol3.obj"
|
|
|
|
-@erase "$(INTDIR)\fe-connect.obj"
|
|
|
|
-@erase "$(INTDIR)\fe-exec.obj"
|
|
|
|
-@erase "$(INTDIR)\fe-lobj.obj"
|
|
|
|
-@erase "$(INTDIR)\fe-misc.obj"
|
|
|
|
-@erase "$(INTDIR)\fe-print.obj"
|
|
|
|
-@erase "$(INTDIR)\fe-secure.obj"
|
2008-10-27 10:10:04 +01:00
|
|
|
-@erase "$(INTDIR)\libpq-events.obj"
|
2005-02-21 22:22:32 +01:00
|
|
|
-@erase "$(INTDIR)\pqexpbuffer.obj"
|
2008-08-16 03:56:20 +02:00
|
|
|
-@erase "$(INTDIR)\win32.obj"
|
2005-02-21 22:22:32 +01:00
|
|
|
-@erase "$(INTDIR)\wchar.obj"
|
|
|
|
-@erase "$(INTDIR)\encnames.obj"
|
|
|
|
-@erase "$(INTDIR)\pthread-win32.obj"
|
2007-01-11 03:42:31 +01:00
|
|
|
-@erase "$(INTDIR)\snprintf.obj"
|
|
|
|
-@erase "$(INTDIR)\strlcpy.obj"
|
2008-08-16 03:56:20 +02:00
|
|
|
-@erase "$(INTDIR)\dirent.obj"
|
|
|
|
-@erase "$(INTDIR)\dirmod.obj"
|
|
|
|
-@erase "$(INTDIR)\pgsleep.obj"
|
|
|
|
-@erase "$(INTDIR)\open.obj"
|
Replace SYSTEMQUOTEs with Windows-specific wrapper functions.
It's easy to forget using SYSTEMQUOTEs when constructing command strings
for system() or popen(). Even if we fix all the places missing it now, it is
bound to be forgotten again in the future. Introduce wrapper functions that
do the the extra quoting for you, and get rid of SYSTEMQUOTEs in all the
callers.
We previosly used SYSTEMQUOTEs in all the hard-coded command strings, and
this doesn't change the behavior of those. But user-supplied commands, like
archive_command, restore_command, COPY TO/FROM PROGRAM calls, as well as
pgbench's \shell, will now gain an extra pair of quotes. That is desirable,
but if you have existing scripts or config files that include an extra
pair of quotes, those might need to be adjusted.
Reviewed by Amit Kapila and Tom Lane
2014-05-05 15:07:40 +02:00
|
|
|
-@erase "$(INTDIR)\system.obj"
|
2008-08-16 03:56:20 +02:00
|
|
|
-@erase "$(INTDIR)\win32error.obj"
|
2005-02-21 22:22:32 +01:00
|
|
|
-@erase "$(OUTDIR)\$(OUTFILENAME).lib"
|
|
|
|
-@erase "$(OUTDIR)\$(OUTFILENAME)dll.lib"
|
|
|
|
-@erase "$(OUTDIR)\libpq.res"
|
|
|
|
-@erase "$(OUTDIR)\$(OUTFILENAME).dll"
|
|
|
|
-@erase "$(OUTDIR)\$(OUTFILENAME).tds"
|
|
|
|
-@erase "$(INTDIR)\pg_config_paths.h"
|
|
|
|
|
2005-04-29 15:42:21 +02:00
|
|
|
|
2002-12-30 22:07:26 +01:00
|
|
|
LIB32=tlib.exe
|
2010-11-23 21:27:50 +01:00
|
|
|
LIB32_FLAGS=
|
2002-12-30 22:07:26 +01:00
|
|
|
LIB32_OBJS= \
|
2005-02-21 22:22:32 +01:00
|
|
|
"$(INTDIR)\win32.obj" \
|
2003-06-12 10:15:29 +02:00
|
|
|
"$(INTDIR)\getaddrinfo.obj" \
|
2005-02-21 22:22:32 +01:00
|
|
|
"$(INTDIR)\pgstrcasecmp.obj" \
|
2013-03-17 20:45:31 +01:00
|
|
|
"$(INTDIR)\pqsignal.obj" \
|
2003-11-30 07:01:15 +01:00
|
|
|
"$(INTDIR)\thread.obj" \
|
2003-06-12 10:15:29 +02:00
|
|
|
"$(INTDIR)\inet_aton.obj" \
|
|
|
|
"$(INTDIR)\crypt.obj" \
|
2004-07-31 08:19:23 +02:00
|
|
|
"$(INTDIR)\noblock.obj" \
|
2011-09-07 21:43:50 +02:00
|
|
|
"$(INTDIR)\chklocale.obj" \
|
|
|
|
"$(INTDIR)\inet_net_ntop.obj" \
|
2002-12-30 22:07:26 +01:00
|
|
|
"$(INTDIR)\md5.obj" \
|
2003-06-12 10:15:29 +02:00
|
|
|
"$(INTDIR)\ip.obj" \
|
2002-12-30 22:07:26 +01:00
|
|
|
"$(INTDIR)\fe-auth.obj" \
|
2003-06-12 10:15:29 +02:00
|
|
|
"$(INTDIR)\fe-protocol2.obj" \
|
|
|
|
"$(INTDIR)\fe-protocol3.obj" \
|
2002-12-30 22:07:26 +01:00
|
|
|
"$(INTDIR)\fe-connect.obj" \
|
|
|
|
"$(INTDIR)\fe-exec.obj" \
|
|
|
|
"$(INTDIR)\fe-lobj.obj" \
|
|
|
|
"$(INTDIR)\fe-misc.obj" \
|
|
|
|
"$(INTDIR)\fe-print.obj" \
|
|
|
|
"$(INTDIR)\fe-secure.obj" \
|
2008-10-27 10:10:04 +01:00
|
|
|
"$(INTDIR)\libpq-events.obj" \
|
2002-12-30 22:07:26 +01:00
|
|
|
"$(INTDIR)\pqexpbuffer.obj" \
|
|
|
|
"$(INTDIR)\wchar.obj" \
|
2005-02-21 22:22:32 +01:00
|
|
|
"$(INTDIR)\encnames.obj" \
|
2007-01-11 03:42:31 +01:00
|
|
|
"$(INTDIR)\snprintf.obj" \
|
|
|
|
"$(INTDIR)\strlcpy.obj" \
|
2008-08-16 03:56:20 +02:00
|
|
|
"$(INTDIR)\dirent.obj" \
|
|
|
|
"$(INTDIR)\dirmod.obj" \
|
|
|
|
"$(INTDIR)\pgsleep.obj" \
|
|
|
|
"$(INTDIR)\open.obj" \
|
Replace SYSTEMQUOTEs with Windows-specific wrapper functions.
It's easy to forget using SYSTEMQUOTEs when constructing command strings
for system() or popen(). Even if we fix all the places missing it now, it is
bound to be forgotten again in the future. Introduce wrapper functions that
do the the extra quoting for you, and get rid of SYSTEMQUOTEs in all the
callers.
We previosly used SYSTEMQUOTEs in all the hard-coded command strings, and
this doesn't change the behavior of those. But user-supplied commands, like
archive_command, restore_command, COPY TO/FROM PROGRAM calls, as well as
pgbench's \shell, will now gain an extra pair of quotes. That is desirable,
but if you have existing scripts or config files that include an extra
pair of quotes, those might need to be adjusted.
Reviewed by Amit Kapila and Tom Lane
2014-05-05 15:07:40 +02:00
|
|
|
"$(INTDIR)\system.obj" \
|
2008-08-16 03:56:20 +02:00
|
|
|
"$(INTDIR)\win32error.obj" \
|
2005-02-21 22:22:32 +01:00
|
|
|
"$(INTDIR)\pthread-win32.obj"
|
2002-12-30 22:07:26 +01:00
|
|
|
|
2004-07-31 08:19:23 +02:00
|
|
|
|
2012-10-08 03:52:07 +02:00
|
|
|
config: ..\..\include\pg_config.h ..\..\include\pg_config_ext.h ..\..\include\pg_config_os.h pg_config_paths.h
|
2004-07-31 08:19:23 +02:00
|
|
|
|
|
|
|
..\..\include\pg_config.h: ..\..\include\pg_config.h.win32
|
|
|
|
copy ..\..\include\pg_config.h.win32 ..\..\include\pg_config.h
|
|
|
|
|
2012-10-08 03:52:07 +02:00
|
|
|
..\..\include\pg_config_ext.h: ..\..\include\pg_config_ext.h.win32
|
|
|
|
copy ..\..\include\pg_config_ext.h.win32 ..\..\include\pg_config_ext.h
|
|
|
|
|
2007-11-22 00:03:44 +01:00
|
|
|
..\..\include\pg_config_os.h: ..\..\include\port\win32.h
|
|
|
|
copy ..\..\include\port\win32.h ..\..\include\pg_config_os.h
|
|
|
|
|
2005-06-19 15:14:20 +02:00
|
|
|
# Have to use \# so # isn't treated as a comment, but MSVC doesn't like this
|
2005-04-29 15:42:21 +02:00
|
|
|
pg_config_paths.h: bcc32.mak
|
2006-06-06 18:17:20 +02:00
|
|
|
echo \#define SYSCONFDIR "" > pg_config_paths.h
|
2002-12-30 22:07:26 +01:00
|
|
|
|
|
|
|
"$(OUTDIR)" :
|
|
|
|
@if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
|
|
|
|
|
2005-04-29 15:42:21 +02:00
|
|
|
RSC=brcc32.exe
|
|
|
|
RSC_PROJ=-l 0x409 -i$(BCB)\include -fo"$(INTDIR)\libpq.res"
|
|
|
|
|
|
|
|
LINK32=ilink32.exe
|
|
|
|
LINK32_FLAGS = -Gn -L$(BCB)\lib;$(INTDIR); -x -Tpd -v
|
|
|
|
|
|
|
|
# @<< is a Response file, http://www.opussoftware.com/tutorial/TutMakefile.htm
|
2005-03-07 22:10:58 +01:00
|
|
|
|
2010-11-23 21:27:50 +01:00
|
|
|
"$(OUTDIR)\blibpq.dll": "$(OUTDIR)\blibpq.lib" "$(INTDIR)\libpq.res" blibpqdll.def
|
2005-04-29 15:42:21 +02:00
|
|
|
$(LINK32) @<<
|
2002-12-30 22:07:26 +01:00
|
|
|
$(LINK32_FLAGS) +
|
2007-03-08 20:27:28 +01:00
|
|
|
c0d32.obj , +
|
2002-12-30 22:07:26 +01:00
|
|
|
$@,, +
|
2007-01-11 03:42:31 +01:00
|
|
|
"$(OUTDIR)\blibpq.lib" import32.lib cw32mt.lib, +
|
2002-12-30 22:07:26 +01:00
|
|
|
blibpqdll.def,"$(INTDIR)\libpq.res"
|
2005-04-29 15:42:21 +02:00
|
|
|
<<
|
2003-06-12 10:15:29 +02:00
|
|
|
implib -w "$(OUTDIR)\blibpqdll.lib" blibpqdll.def $@
|
2002-12-30 22:07:26 +01:00
|
|
|
|
2008-02-26 14:31:40 +01:00
|
|
|
"$(INTDIR)\libpq.res" : "$(INTDIR)" libpq-dist.rc
|
|
|
|
$(RSC) $(RSC_PROJ) libpq-dist.rc
|
2002-12-30 22:07:26 +01:00
|
|
|
|
|
|
|
"$(OUTDIR)\blibpq.lib": $(LIB32_OBJS)
|
2005-04-29 15:42:21 +02:00
|
|
|
$(LIB32) $@ @<<
|
2002-12-30 22:07:26 +01:00
|
|
|
+-"$(**: =" &^
|
|
|
|
+-")"
|
2005-04-29 15:42:21 +02:00
|
|
|
<<
|
2002-12-30 22:07:26 +01:00
|
|
|
|
2004-07-31 08:19:23 +02:00
|
|
|
|
2005-02-25 16:57:33 +01:00
|
|
|
"$(INTDIR)\getaddrinfo.obj" : ..\..\port\getaddrinfo.c
|
2005-04-29 15:42:21 +02:00
|
|
|
$(CPP) @<<
|
2005-02-27 23:39:52 +01:00
|
|
|
$(CPP_PROJ) ..\..\port\getaddrinfo.c
|
2005-04-29 15:42:21 +02:00
|
|
|
<<
|
2005-02-25 16:57:33 +01:00
|
|
|
|
|
|
|
"$(INTDIR)\pgstrcasecmp.obj" : ..\..\port\pgstrcasecmp.c
|
2005-04-29 15:42:21 +02:00
|
|
|
$(CPP) @<<
|
2005-02-27 23:39:52 +01:00
|
|
|
$(CPP_PROJ) ..\..\port\pgstrcasecmp.c
|
2005-04-29 15:42:21 +02:00
|
|
|
<<
|
2005-02-25 16:57:33 +01:00
|
|
|
|
2013-03-17 20:45:31 +01:00
|
|
|
"$(INTDIR)\pqsignal.obj" : ..\..\port\pqsignal.c
|
|
|
|
$(CPP) @<<
|
|
|
|
$(CPP_PROJ) ..\..\port\pqsignal.c
|
|
|
|
<<
|
|
|
|
|
2005-02-25 16:57:33 +01:00
|
|
|
"$(INTDIR)\thread.obj" : ..\..\port\thread.c
|
2005-04-29 15:42:21 +02:00
|
|
|
$(CPP) @<<
|
2005-02-27 23:39:52 +01:00
|
|
|
$(CPP_PROJ) ..\..\port\thread.c
|
2005-04-29 15:42:21 +02:00
|
|
|
<<
|
2005-02-25 16:57:33 +01:00
|
|
|
|
|
|
|
"$(INTDIR)\inet_aton.obj" : ..\..\port\inet_aton.c
|
2005-04-29 15:42:21 +02:00
|
|
|
$(CPP) @<<
|
2005-02-27 23:39:52 +01:00
|
|
|
$(CPP_PROJ) ..\..\port\inet_aton.c
|
2005-04-29 15:42:21 +02:00
|
|
|
<<
|
2005-02-25 16:57:33 +01:00
|
|
|
|
|
|
|
"$(INTDIR)\crypt.obj" : ..\..\port\crypt.c
|
2005-04-29 15:42:21 +02:00
|
|
|
$(CPP) @<<
|
2005-02-27 23:39:52 +01:00
|
|
|
$(CPP_PROJ) ..\..\port\crypt.c
|
2005-04-29 15:42:21 +02:00
|
|
|
<<
|
2005-02-25 16:57:33 +01:00
|
|
|
|
|
|
|
"$(INTDIR)\noblock.obj" : ..\..\port\noblock.c
|
2005-04-29 15:42:21 +02:00
|
|
|
$(CPP) @<<
|
2005-02-27 23:39:52 +01:00
|
|
|
$(CPP_PROJ) ..\..\port\noblock.c
|
2005-04-29 15:42:21 +02:00
|
|
|
<<
|
2005-02-25 16:57:33 +01:00
|
|
|
|
2011-09-07 21:43:50 +02:00
|
|
|
"$(INTDIR)\chklocale.obj" : ..\..\port\chklocale.c
|
|
|
|
$(CPP) @<<
|
|
|
|
$(CPP_PROJ) ..\..\port\chklocale.c
|
|
|
|
<<
|
|
|
|
|
|
|
|
"$(INTDIR)\inet_net_ntop.obj" : ..\..\port\inet_net_ntop.c
|
|
|
|
$(CPP) @<<
|
|
|
|
$(CPP_PROJ) ..\..\port\inet_net_ntop.c
|
|
|
|
<<
|
|
|
|
|
2005-02-25 16:57:33 +01:00
|
|
|
"$(INTDIR)\md5.obj" : ..\..\backend\libpq\md5.c
|
2005-04-29 15:42:21 +02:00
|
|
|
$(CPP) @<<
|
2005-02-27 23:39:52 +01:00
|
|
|
$(CPP_PROJ) ..\..\backend\libpq\md5.c
|
2005-04-29 15:42:21 +02:00
|
|
|
<<
|
2005-02-25 16:57:33 +01:00
|
|
|
|
|
|
|
"$(INTDIR)\ip.obj" : ..\..\backend\libpq\ip.c
|
2005-04-29 15:42:21 +02:00
|
|
|
$(CPP) @<<
|
2005-02-27 23:39:52 +01:00
|
|
|
$(CPP_PROJ) ..\..\backend\libpq\ip.c
|
2005-04-29 15:42:21 +02:00
|
|
|
<<
|
2005-02-25 16:57:33 +01:00
|
|
|
|
|
|
|
"$(INTDIR)\wchar.obj" : ..\..\backend\utils\mb\wchar.c
|
2005-04-29 15:42:21 +02:00
|
|
|
$(CPP) @<<
|
|
|
|
$(CPP_PROJ) /I"." ..\..\backend\utils\mb\wchar.c
|
|
|
|
<<
|
2005-02-25 16:57:33 +01:00
|
|
|
|
|
|
|
|
|
|
|
"$(INTDIR)\encnames.obj" : ..\..\backend\utils\mb\encnames.c
|
2005-04-29 15:42:21 +02:00
|
|
|
$(CPP) @<<
|
|
|
|
$(CPP_PROJ) /I"." ..\..\backend\utils\mb\encnames.c
|
|
|
|
<<
|
2005-02-25 16:57:33 +01:00
|
|
|
|
2007-01-11 03:42:31 +01:00
|
|
|
"$(INTDIR)\snprintf.obj" : ..\..\port\snprintf.c
|
|
|
|
$(CPP) @<<
|
|
|
|
$(CPP_PROJ) /I"." ..\..\port\snprintf.c
|
|
|
|
<<
|
|
|
|
|
|
|
|
"$(INTDIR)\strlcpy.obj" : ..\..\port\strlcpy.c
|
|
|
|
$(CPP) @<<
|
2008-08-16 03:56:20 +02:00
|
|
|
$(CPP_PROJ) /I"." ..\..\port\strlcpy.c
|
|
|
|
<<
|
|
|
|
|
|
|
|
"$(INTDIR)\dirent.obj" : ..\..\port\dirent.c
|
|
|
|
$(CPP) @<<
|
|
|
|
$(CPP_PROJ) /I"." ..\..\port\dirent.c
|
|
|
|
<<
|
|
|
|
|
|
|
|
"$(INTDIR)\dirmod.obj" : ..\..\port\dirmod.c
|
|
|
|
$(CPP) @<<
|
|
|
|
$(CPP_PROJ) /I"." ..\..\port\dirmod.c
|
|
|
|
<<
|
|
|
|
|
|
|
|
"$(INTDIR)\pgsleep.obj" : ..\..\port\pgsleep.c
|
|
|
|
$(CPP) @<<
|
|
|
|
$(CPP_PROJ) /I"." ..\..\port\pgsleep.c
|
|
|
|
<<
|
|
|
|
|
|
|
|
"$(INTDIR)\open.obj" : ..\..\port\open.c
|
|
|
|
$(CPP) @<<
|
|
|
|
$(CPP_PROJ) /I"." ..\..\port\open.c
|
|
|
|
<<
|
|
|
|
|
Replace SYSTEMQUOTEs with Windows-specific wrapper functions.
It's easy to forget using SYSTEMQUOTEs when constructing command strings
for system() or popen(). Even if we fix all the places missing it now, it is
bound to be forgotten again in the future. Introduce wrapper functions that
do the the extra quoting for you, and get rid of SYSTEMQUOTEs in all the
callers.
We previosly used SYSTEMQUOTEs in all the hard-coded command strings, and
this doesn't change the behavior of those. But user-supplied commands, like
archive_command, restore_command, COPY TO/FROM PROGRAM calls, as well as
pgbench's \shell, will now gain an extra pair of quotes. That is desirable,
but if you have existing scripts or config files that include an extra
pair of quotes, those might need to be adjusted.
Reviewed by Amit Kapila and Tom Lane
2014-05-05 15:07:40 +02:00
|
|
|
"$(INTDIR)\system.obj" : ..\..\port\system.c
|
|
|
|
$(CPP) @<<
|
|
|
|
$(CPP_PROJ) /I"." ..\..\port\system.c
|
|
|
|
<<
|
|
|
|
|
2008-08-16 03:56:20 +02:00
|
|
|
"$(INTDIR)\win32error.obj" : ..\..\port\win32error.c
|
|
|
|
$(CPP) @<<
|
|
|
|
$(CPP_PROJ) /I"." ..\..\port\win32error.c
|
2007-01-11 03:42:31 +01:00
|
|
|
<<
|
|
|
|
|
|
|
|
|
2002-12-30 22:07:26 +01:00
|
|
|
.c.obj:
|
2005-04-29 15:42:21 +02:00
|
|
|
$(CPP) $(CPP_PROJ) $<
|