pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
bcc32.mak for libpq broken? (distro 8.0.0) (fwd)
12+ messages / 4 participants
[nested] [flat]

* bcc32.mak for libpq broken? (distro 8.0.0) (fwd)
@ 2005-02-21 14:26 =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>
  0 siblings, 0 replies; 12+ messages in thread

From: Berényi Gábor @ 2005-02-21 14:26 UTC (permalink / raw)
  To: pgsql-interfaces

Dears,

Alternatively, please email me the dll file in win32 binary format.

Thank you, Gabor

---------- Továbbított levél ----------
Dátum: Sun, 20 Feb 2005 18:09:19 +0100 (CET)
Feladó: Berényi Gábor <ber_@freemail.hu>
Címzett: pgsql-interfaces@postgresql.org
Tárgy: [INTERFACES] bcc32.mak for libpq broken? (distro 8.0.0)

Dear libpq programmers,

src\interfaces\libpq> make -f bcc32.mak

fails with the message

'".\Release\win32.obj"' does not exist - don't know how to make it

Please, help.

With love, Gabor

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings




^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd)
@ 2005-02-21 19:58 Magnus Hagander <mha@sollentuna.net>
  2005-02-21 21:24 ` Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 12+ messages in thread

From: Magnus Hagander @ 2005-02-21 19:58 UTC (permalink / raw)
  To: Berényi Gábor <ber_@freemail.hu>; pgsql-interfaces

That I can do. Coming up, off-list.

//Magnus

>-----Original Message-----
>From: pgsql-interfaces-owner@postgresql.org 
>[mailto:pgsql-interfaces-owner@postgresql.org] On Behalf Of 
>Berényi Gábor
>Sent: den 21 februari 2005 15:26
>To: pgsql-interfaces@postgresql.org
>Subject: [INTERFACES] bcc32.mak for libpq broken? (distro 8.0.0) (fwd)
>
>
>Dears,
>
>Alternatively, please email me the dll file in win32 binary format.
>
>Thank you, Gabor
>
>---------- Továbbított levél ----------
>Dátum: Sun, 20 Feb 2005 18:09:19 +0100 (CET)
>Feladó: Berényi Gábor <ber_@freemail.hu>
>Címzett: pgsql-interfaces@postgresql.org
>Tárgy: [INTERFACES] bcc32.mak for libpq broken? (distro 8.0.0)
>
>Dear libpq programmers,
>
>src\interfaces\libpq> make -f bcc32.mak
>
>fails with the message
>
>'".\Release\win32.obj"' does not exist - don't know how to make it
>
>Please, help.
>
>With love, Gabor
>
>---------------------------(end of 
>broadcast)---------------------------
>TIP 7: don't forget to increase your free space map settings
>
>
>---------------------------(end of 
>broadcast)---------------------------
>TIP 8: explain analyze is your friend
>



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd)
  2005-02-21 19:58 Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) Magnus Hagander <mha@sollentuna.net>
@ 2005-02-21 21:24 ` Bruce Momjian <pgman@candle.pha.pa.us>
  2005-02-24 00:10   ` Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>
  0 siblings, 1 reply; 12+ messages in thread

From: Bruce Momjian @ 2005-02-21 21:24 UTC (permalink / raw)
  To: Magnus Hagander <mha@sollentuna.net>; +Cc: Berényi Gábor <ber_@freemail.hu>; pgsql-interfaces


Please try the attached patch.  I have applied it to CVS HEAD and 8.0.X
as well.  Please report back any failure.  Thanks.

(The win32.mak changes are only reordering for consistency, and the
Borland CC compile doesn't work so we might as well try to get it
working with this change.)

---------------------------------------------------------------------------

Magnus Hagander wrote:
> That I can do. Coming up, off-list.
> 
> //Magnus
> 
> >-----Original Message-----
> >From: pgsql-interfaces-owner@postgresql.org 
> >[mailto:pgsql-interfaces-owner@postgresql.org] On Behalf Of 
> >Ber?nyi G?bor
> >Sent: den 21 februari 2005 15:26
> >To: pgsql-interfaces@postgresql.org
> >Subject: [INTERFACES] bcc32.mak for libpq broken? (distro 8.0.0) (fwd)
> >
> >
> >Dears,
> >
> >Alternatively, please email me the dll file in win32 binary format.
> >
> >Thank you, Gabor
> >
> >---------- Tov?bb?tott lev?l ----------
> >D?tum: Sun, 20 Feb 2005 18:09:19 +0100 (CET)
> >Felad?: Ber?nyi G?bor <ber_@freemail.hu>
> >C?mzett: pgsql-interfaces@postgresql.org
> >T?rgy: [INTERFACES] bcc32.mak for libpq broken? (distro 8.0.0)
> >
> >Dear libpq programmers,
> >
> >src\interfaces\libpq> make -f bcc32.mak
> >
> >fails with the message
> >
> >'".\Release\win32.obj"' does not exist - don't know how to make it
> >
> >Please, help.
> >
> >With love, Gabor
> >
> >---------------------------(end of 
> >broadcast)---------------------------
> >TIP 7: don't forget to increase your free space map settings
> >
> >
> >---------------------------(end of 
> >broadcast)---------------------------
> >TIP 8: explain analyze is your friend
> >
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
>                http://archives.postgresql.org
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
Index: src/interfaces/libpq/bcc32.mak
===================================================================
RCS file: /cvsroot/pgsql/src/interfaces/libpq/bcc32.mak,v
retrieving revision 1.11
diff -c -c -r1.11 bcc32.mak
*** src/interfaces/libpq/bcc32.mak	13 Nov 2004 03:18:50 -0000	1.11
--- src/interfaces/libpq/bcc32.mak	21 Feb 2005 21:18:50 -0000
***************
*** 42,51 ****
  DEBUG=1
  OUTDIR=.\Debug
  INTDIR=.\Debug
! !else
  OUTDIR=.\Release
  INTDIR=.\Release
! !endif
  
  USERDEFINES=FRONTEND;NDEBUG;WIN32;_WINDOWS;HAVE_VSNPRINTF;HAVE_STRDUP;
  
--- 42,53 ----
  DEBUG=1
  OUTDIR=.\Debug
  INTDIR=.\Debug
! !ELSE
  OUTDIR=.\Release
  INTDIR=.\Release
! !ENDIF
! 
! OUTFILENAME=blibpq
  
  USERDEFINES=FRONTEND;NDEBUG;WIN32;_WINDOWS;HAVE_VSNPRINTF;HAVE_STRDUP;
  
***************
*** 59,74 ****
  CPP_PROJ	= $(CPP_PROJ) -O -Oi -OS -DNDEBUG
  !endif
  
  LIB32=tlib.exe
  LIB32_FLAGS= 
  LIB32_OBJS= \
! 	"$(OUTDIR)\win32.obj" \
  	"$(INTDIR)\getaddrinfo.obj" \
  	"$(INTDIR)\thread.obj" \
  	"$(INTDIR)\inet_aton.obj" \
  	"$(INTDIR)\crypt.obj" \
  	"$(INTDIR)\noblock.obj" \
- 	"$(INTDIR)\pgstrcasecmp.obj" \
  	"$(INTDIR)\md5.obj" \
  	"$(INTDIR)\ip.obj" \
  	"$(INTDIR)\fe-auth.obj" \
--- 61,108 ----
  CPP_PROJ	= $(CPP_PROJ) -O -Oi -OS -DNDEBUG
  !endif
  
+ CLEAN :
+ 	-@erase "$(INTDIR)\getaddrinfo.obj"
+ 	-@erase "$(INTDIR)\pgstrcasecmp.obj"
+ 	-@erase "$(INTDIR)\thread.obj"
+ 	-@erase "$(INTDIR)\inet_aton.obj"
+ 	-@erase "$(INTDIR)\crypt.obj"
+ 	-@erase "$(INTDIR)\noblock.obj"
+ 	-@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"
+ 	-@erase "$(INTDIR)\pqexpbuffer.obj"
+ 	-@erase "$(INTDIR)\pqsignal.obj"
+ 	-@erase "$(OUTDIR)\libpqdll.obj"
+ 	-@erase "$(OUTDIR)\win32.obj"
+ 	-@erase "$(INTDIR)\wchar.obj"
+ 	-@erase "$(INTDIR)\encnames.obj"
+ 	-@erase "$(INTDIR)\pthread-win32.obj"
+ 	-@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"
+ 
  LIB32=tlib.exe
  LIB32_FLAGS= 
  LIB32_OBJS= \
! 	"$(INTDIR)\win32.obj" \
  	"$(INTDIR)\getaddrinfo.obj" \
+ 	"$(INTDIR)\pgstrcasecmp.obj" \
  	"$(INTDIR)\thread.obj" \
  	"$(INTDIR)\inet_aton.obj" \
  	"$(INTDIR)\crypt.obj" \
  	"$(INTDIR)\noblock.obj" \
  	"$(INTDIR)\md5.obj" \
  	"$(INTDIR)\ip.obj" \
  	"$(INTDIR)\fe-auth.obj" \
***************
*** 83,89 ****
  	"$(INTDIR)\pqexpbuffer.obj" \
  	"$(INTDIR)\pqsignal.obj" \
  	"$(INTDIR)\wchar.obj" \
! 	"$(INTDIR)\encnames.obj"
  
  
  RSC=brcc32.exe
--- 117,124 ----
  	"$(INTDIR)\pqexpbuffer.obj" \
  	"$(INTDIR)\pqsignal.obj" \
  	"$(INTDIR)\wchar.obj" \
! 	"$(INTDIR)\encnames.obj" \
! 	"$(INTDIR)\pthread-win32.obj"
  
  
  RSC=brcc32.exe
***************
*** 95,131 ****
  
  ALL: config "$(OUTDIR)" "$(OUTDIR)\blibpq.dll" "$(OUTDIR)\blibpq.lib"
  
- CLEAN :
- 	-@erase "$(INTDIR)\getaddrinfo.obj"
- 	-@erase "$(INTDIR)\thread.obj"
- 	-@erase "$(INTDIR)\inet_aton.obj"
- 	-@erase "$(INTDIR)\crypt.obj"
- 	-@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"
- 	-@erase "$(INTDIR)\pqexpbuffer.obj"
- 	-@erase "$(INTDIR)\pqsignal.obj"
- 	-@erase "$(OUTDIR)\libpqdll.obj"
- 	-@erase "$(OUTDIR)\win32.obj"
- 	-@erase "$(INTDIR)\wchar.obj"
- 	-@erase "$(INTDIR)\encnames.obj"
- 	-@erase "$(INTDIR)\noblock.obj"
- 	-@erase "$(INTDIR)\pgstrcasecmp.obj"
- 	-@erase "$(OUTDIR)\libpq.res"
- 	-@erase "$(OUTDIR)\blibpq.lib"
- 	-@erase "$(OUTDIR)\blibpqdll.lib"
- 	-@erase "$(OUTDIR)\blibpq.dll"
- 	-@erase "$(OUTDIR)\blibpq.tds"
- 	-@erase "$(INTDIR)\pg_config_paths.h"
- 
  config: ..\..\include\pg_config.h pthread.h pg_config_paths.h
  
  ..\..\include\pg_config.h: ..\..\include\pg_config.h.win32
--- 130,135 ----
Index: src/interfaces/libpq/win32.mak
===================================================================
RCS file: /cvsroot/pgsql/src/interfaces/libpq/win32.mak,v
retrieving revision 1.30
diff -c -c -r1.30 win32.mak
*** src/interfaces/libpq/win32.mak	26 Jan 2005 19:24:02 -0000	1.30
--- src/interfaces/libpq/win32.mak	21 Feb 2005 21:18:52 -0000
***************
*** 41,47 ****
  !ENDIF
  
  
! ALL : config "$(OUTDIR)\$(OUTFILENAME).lib" "$(OUTDIR)\$(OUTFILENAME).dll" 
  
  CLEAN :
  	-@erase "$(INTDIR)\getaddrinfo.obj"
--- 41,47 ----
  !ENDIF
  
  
! ALL : config "$(OUTDIR)\$(OUTFILENAME).lib" "$(OUTDIR)\$(OUTFILENAME).dll"
  
  CLEAN :
  	-@erase "$(INTDIR)\getaddrinfo.obj"
***************
*** 65,80 ****
  	-@erase "$(INTDIR)\pqsignal.obj"
  	-@erase "$(OUTDIR)\libpqdll.obj"
  	-@erase "$(OUTDIR)\win32.obj"
  	-@erase "$(OUTDIR)\$(OUTFILENAME).lib"
! 	-@erase "$(OUTDIR)\$(OUTFILENAME).dll"
  	-@erase "$(OUTDIR)\libpq.res"
  	-@erase "*.pch"
  	-@erase "$(OUTDIR)\libpq.pch"
  	-@erase "$(OUTDIR)\$(OUTFILENAME)dll.exp"
- 	-@erase "$(OUTDIR)\$(OUTFILENAME)dll.lib"
- 	-@erase "$(INTDIR)\wchar.obj"
- 	-@erase "$(INTDIR)\encnames.obj"
- 	-@erase "$(INTDIR)\pthread-win32.obj"
  	-@erase "$(INTDIR)\pg_config_paths.h"
  
  
--- 65,80 ----
  	-@erase "$(INTDIR)\pqsignal.obj"
  	-@erase "$(OUTDIR)\libpqdll.obj"
  	-@erase "$(OUTDIR)\win32.obj"
+ 	-@erase "$(INTDIR)\wchar.obj"
+ 	-@erase "$(INTDIR)\encnames.obj"
+ 	-@erase "$(INTDIR)\pthread-win32.obj"
  	-@erase "$(OUTDIR)\$(OUTFILENAME).lib"
! 	-@erase "$(OUTDIR)\$(OUTFILENAME)dll.lib"
  	-@erase "$(OUTDIR)\libpq.res"
+ 	-@erase "$(OUTDIR)\$(OUTFILENAME).dll"
  	-@erase "*.pch"
  	-@erase "$(OUTDIR)\libpq.pch"
  	-@erase "$(OUTDIR)\$(OUTFILENAME)dll.exp"
  	-@erase "$(INTDIR)\pg_config_paths.h"
  
  

Attachments:

  [text/plain] /bjm/diff (6.0K, ../../200502212124.j1LLO7M06236@candle.pha.pa.us/2-%2Fbjm%2Fdiff)
  download | inline:
Index: src/interfaces/libpq/bcc32.mak
===================================================================
RCS file: /cvsroot/pgsql/src/interfaces/libpq/bcc32.mak,v
retrieving revision 1.11
diff -c -c -r1.11 bcc32.mak
*** src/interfaces/libpq/bcc32.mak	13 Nov 2004 03:18:50 -0000	1.11
--- src/interfaces/libpq/bcc32.mak	21 Feb 2005 21:18:50 -0000
***************
*** 42,51 ****
  DEBUG=1
  OUTDIR=.\Debug
  INTDIR=.\Debug
! !else
  OUTDIR=.\Release
  INTDIR=.\Release
! !endif
  
  USERDEFINES=FRONTEND;NDEBUG;WIN32;_WINDOWS;HAVE_VSNPRINTF;HAVE_STRDUP;
  
--- 42,53 ----
  DEBUG=1
  OUTDIR=.\Debug
  INTDIR=.\Debug
! !ELSE
  OUTDIR=.\Release
  INTDIR=.\Release
! !ENDIF
! 
! OUTFILENAME=blibpq
  
  USERDEFINES=FRONTEND;NDEBUG;WIN32;_WINDOWS;HAVE_VSNPRINTF;HAVE_STRDUP;
  
***************
*** 59,74 ****
  CPP_PROJ	= $(CPP_PROJ) -O -Oi -OS -DNDEBUG
  !endif
  
  LIB32=tlib.exe
  LIB32_FLAGS= 
  LIB32_OBJS= \
! 	"$(OUTDIR)\win32.obj" \
  	"$(INTDIR)\getaddrinfo.obj" \
  	"$(INTDIR)\thread.obj" \
  	"$(INTDIR)\inet_aton.obj" \
  	"$(INTDIR)\crypt.obj" \
  	"$(INTDIR)\noblock.obj" \
- 	"$(INTDIR)\pgstrcasecmp.obj" \
  	"$(INTDIR)\md5.obj" \
  	"$(INTDIR)\ip.obj" \
  	"$(INTDIR)\fe-auth.obj" \
--- 61,108 ----
  CPP_PROJ	= $(CPP_PROJ) -O -Oi -OS -DNDEBUG
  !endif
  
+ CLEAN :
+ 	-@erase "$(INTDIR)\getaddrinfo.obj"
+ 	-@erase "$(INTDIR)\pgstrcasecmp.obj"
+ 	-@erase "$(INTDIR)\thread.obj"
+ 	-@erase "$(INTDIR)\inet_aton.obj"
+ 	-@erase "$(INTDIR)\crypt.obj"
+ 	-@erase "$(INTDIR)\noblock.obj"
+ 	-@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"
+ 	-@erase "$(INTDIR)\pqexpbuffer.obj"
+ 	-@erase "$(INTDIR)\pqsignal.obj"
+ 	-@erase "$(OUTDIR)\libpqdll.obj"
+ 	-@erase "$(OUTDIR)\win32.obj"
+ 	-@erase "$(INTDIR)\wchar.obj"
+ 	-@erase "$(INTDIR)\encnames.obj"
+ 	-@erase "$(INTDIR)\pthread-win32.obj"
+ 	-@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"
+ 
  LIB32=tlib.exe
  LIB32_FLAGS= 
  LIB32_OBJS= \
! 	"$(INTDIR)\win32.obj" \
  	"$(INTDIR)\getaddrinfo.obj" \
+ 	"$(INTDIR)\pgstrcasecmp.obj" \
  	"$(INTDIR)\thread.obj" \
  	"$(INTDIR)\inet_aton.obj" \
  	"$(INTDIR)\crypt.obj" \
  	"$(INTDIR)\noblock.obj" \
  	"$(INTDIR)\md5.obj" \
  	"$(INTDIR)\ip.obj" \
  	"$(INTDIR)\fe-auth.obj" \
***************
*** 83,89 ****
  	"$(INTDIR)\pqexpbuffer.obj" \
  	"$(INTDIR)\pqsignal.obj" \
  	"$(INTDIR)\wchar.obj" \
! 	"$(INTDIR)\encnames.obj"
  
  
  RSC=brcc32.exe
--- 117,124 ----
  	"$(INTDIR)\pqexpbuffer.obj" \
  	"$(INTDIR)\pqsignal.obj" \
  	"$(INTDIR)\wchar.obj" \
! 	"$(INTDIR)\encnames.obj" \
! 	"$(INTDIR)\pthread-win32.obj"
  
  
  RSC=brcc32.exe
***************
*** 95,131 ****
  
  ALL: config "$(OUTDIR)" "$(OUTDIR)\blibpq.dll" "$(OUTDIR)\blibpq.lib"
  
- CLEAN :
- 	-@erase "$(INTDIR)\getaddrinfo.obj"
- 	-@erase "$(INTDIR)\thread.obj"
- 	-@erase "$(INTDIR)\inet_aton.obj"
- 	-@erase "$(INTDIR)\crypt.obj"
- 	-@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"
- 	-@erase "$(INTDIR)\pqexpbuffer.obj"
- 	-@erase "$(INTDIR)\pqsignal.obj"
- 	-@erase "$(OUTDIR)\libpqdll.obj"
- 	-@erase "$(OUTDIR)\win32.obj"
- 	-@erase "$(INTDIR)\wchar.obj"
- 	-@erase "$(INTDIR)\encnames.obj"
- 	-@erase "$(INTDIR)\noblock.obj"
- 	-@erase "$(INTDIR)\pgstrcasecmp.obj"
- 	-@erase "$(OUTDIR)\libpq.res"
- 	-@erase "$(OUTDIR)\blibpq.lib"
- 	-@erase "$(OUTDIR)\blibpqdll.lib"
- 	-@erase "$(OUTDIR)\blibpq.dll"
- 	-@erase "$(OUTDIR)\blibpq.tds"
- 	-@erase "$(INTDIR)\pg_config_paths.h"
- 
  config: ..\..\include\pg_config.h pthread.h pg_config_paths.h
  
  ..\..\include\pg_config.h: ..\..\include\pg_config.h.win32
--- 130,135 ----
Index: src/interfaces/libpq/win32.mak
===================================================================
RCS file: /cvsroot/pgsql/src/interfaces/libpq/win32.mak,v
retrieving revision 1.30
diff -c -c -r1.30 win32.mak
*** src/interfaces/libpq/win32.mak	26 Jan 2005 19:24:02 -0000	1.30
--- src/interfaces/libpq/win32.mak	21 Feb 2005 21:18:52 -0000
***************
*** 41,47 ****
  !ENDIF
  
  
! ALL : config "$(OUTDIR)\$(OUTFILENAME).lib" "$(OUTDIR)\$(OUTFILENAME).dll" 
  
  CLEAN :
  	-@erase "$(INTDIR)\getaddrinfo.obj"
--- 41,47 ----
  !ENDIF
  
  
! ALL : config "$(OUTDIR)\$(OUTFILENAME).lib" "$(OUTDIR)\$(OUTFILENAME).dll"
  
  CLEAN :
  	-@erase "$(INTDIR)\getaddrinfo.obj"
***************
*** 65,80 ****
  	-@erase "$(INTDIR)\pqsignal.obj"
  	-@erase "$(OUTDIR)\libpqdll.obj"
  	-@erase "$(OUTDIR)\win32.obj"
  	-@erase "$(OUTDIR)\$(OUTFILENAME).lib"
! 	-@erase "$(OUTDIR)\$(OUTFILENAME).dll"
  	-@erase "$(OUTDIR)\libpq.res"
  	-@erase "*.pch"
  	-@erase "$(OUTDIR)\libpq.pch"
  	-@erase "$(OUTDIR)\$(OUTFILENAME)dll.exp"
- 	-@erase "$(OUTDIR)\$(OUTFILENAME)dll.lib"
- 	-@erase "$(INTDIR)\wchar.obj"
- 	-@erase "$(INTDIR)\encnames.obj"
- 	-@erase "$(INTDIR)\pthread-win32.obj"
  	-@erase "$(INTDIR)\pg_config_paths.h"
  
  
--- 65,80 ----
  	-@erase "$(INTDIR)\pqsignal.obj"
  	-@erase "$(OUTDIR)\libpqdll.obj"
  	-@erase "$(OUTDIR)\win32.obj"
+ 	-@erase "$(INTDIR)\wchar.obj"
+ 	-@erase "$(INTDIR)\encnames.obj"
+ 	-@erase "$(INTDIR)\pthread-win32.obj"
  	-@erase "$(OUTDIR)\$(OUTFILENAME).lib"
! 	-@erase "$(OUTDIR)\$(OUTFILENAME)dll.lib"
  	-@erase "$(OUTDIR)\libpq.res"
+ 	-@erase "$(OUTDIR)\$(OUTFILENAME).dll"
  	-@erase "*.pch"
  	-@erase "$(OUTDIR)\libpq.pch"
  	-@erase "$(OUTDIR)\$(OUTFILENAME)dll.exp"
  	-@erase "$(INTDIR)\pg_config_paths.h"
  
  

^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd)
  2005-02-21 19:58 Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) Magnus Hagander <mha@sollentuna.net>
  2005-02-21 21:24 ` Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) Bruce Momjian <pgman@candle.pha.pa.us>
@ 2005-02-24 00:10   ` =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>
  2005-02-25 05:21     ` Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 12+ messages in thread

From: Berényi Gábor @ 2005-02-24 00:10 UTC (permalink / raw)
  To: pgsql-interfaces

Dear Bruce, Magnus and others,

Strangely LoadLibrary() does not load libpq.dll (coming from the binary 
distribution) on a Win98 client. LoadLibrary() does work with other 
libraries. Any ideas would be appreciated.

The new libpq makefile for bcc failed.

Thank you, Gabor


        

Bruce Momjian <pgman@candle.pha.pa.us> írta:

> 
> Please try the attached patch.  I have applied it to CVS HEAD and 
8.0.X
> as well.  Please report back any failure.  Thanks.
> 
> (The win32.mak changes are only reordering for consistency, and the
> Borland CC compile doesn't work so we might as well try to get it
> working with this change.)
> 
> ---------------------------------------------------------------------------
> 
> Magnus Hagander wrote:
> > That I can do. Coming up, off-list.
> > 
> > //Magnus
> > 
> > >-----Original Message-----
> > >From: pgsql-interfaces-owner@postgresql.org 
> > >[mailto:pgsql-interfaces-owner@postgresql.org] On Behalf Of 
> > >Ber?nyi G?bor
> > >Sent: den 21 februari 2005 15:26
> > >To: pgsql-interfaces@postgresql.org
> > >Subject: [INTERFACES] bcc32.mak for libpq broken? (distro 8.0.0) 
(fwd)
> > >
> > >
> > >Dears,
> > >
> > >Alternatively, please email me the dll file in win32 binary format.
> > >
> > >Thank you, Gabor
> > >
> > >---------- Tov?bb?tott lev?l ----------
> > >D?tum: Sun, 20 Feb 2005 18:09:19 +0100 (CET)
> > >Felad?: Ber?nyi G?bor <ber_@freemail.hu>
> > >C?mzett: pgsql-interfaces@postgresql.org
> > >T?rgy: [INTERFACES] bcc32.mak for libpq broken? (distro 8.0.0)
> > >
> > >Dear libpq programmers,
> > >
> > >src\interfaces\libpq> make -f bcc32.mak
> > >
> > >fails with the message
> > >
> > >'".\Release\win32.obj"' does not exist - don't know how to make 
it
> > >
> > >Please, help.
> > >
> > >With love, Gabor
> > >
> > >---------------------------(end of 
> > >broadcast)---------------------------
> > >TIP 7: don't forget to increase your free space map settings
> > >
> > >
> > >---------------------------(end of 
> > >broadcast)---------------------------
> > >TIP 8: explain analyze is your friend
> > >
> > 
> > ---------------------------(end of broadcast)---------------------------
> > TIP 6: Have you searched our list archives?
> > 
> >                http://archives.postgresql.org
> > 
> 
> -- 
>   Bruce Momjian                        |  http://candle.pha.pa.us
>   pgman@candle.pha.pa.us               |  (610) 359-1001
>   +  If your life is a hard drive,     |  13 Roberts Road
>   +  Christ can be your backup.        |  Newtown Square, 
Pennsylvania 19073
> 



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd)
  2005-02-21 19:58 Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) Magnus Hagander <mha@sollentuna.net>
  2005-02-21 21:24 ` Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) Bruce Momjian <pgman@candle.pha.pa.us>
  2005-02-24 00:10   ` Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>
@ 2005-02-25 05:21     ` Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 0 replies; 12+ messages in thread

From: Bruce Momjian @ 2005-02-25 05:21 UTC (permalink / raw)
  To: Berényi Gábor <ber_@freemail.hu>; +Cc: pgsql-interfaces

Berényi Gábor wrote:
> Dear Bruce, Magnus and others,
> 
> Strangely LoadLibrary() does not load libpq.dll (coming from the binary 
> distribution) on a Win98 client. LoadLibrary() does work with other 
> libraries. Any ideas would be appreciated.
> 
> The new libpq makefile for bcc failed.

Please show us how it failed.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd)
@ 2005-02-24 00:21 Guy Rouillier <guyr@masergy.com>
  0 siblings, 0 replies; 12+ messages in thread

From: Guy Rouillier @ 2005-02-24 00:21 UTC (permalink / raw)
  To: pgsql-interfaces

Berényi Gábor wrote:
> Dear Bruce, Magnus and others,
> 
> Strangely LoadLibrary() does not load libpq.dll (coming from the
> binary distribution) on a Win98 client. LoadLibrary() does work with
> other libraries. Any ideas would be appreciated.

What does GetLastError() tell you?  Probably only two likely possibilities: it didn't find it or it didn't like what it found.

> 
> The new libpq makefile for bcc failed.
> 
> Thank you, Gabor

-- 
Guy Rouillier




^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd)
@ 2005-02-25 11:36 =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>
  2005-02-25 15:58 ` Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 12+ messages in thread

From: Berényi Gábor @ 2005-02-25 11:36 UTC (permalink / raw)
  To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: pgsql-interfaces

Meanwhile I made libpq.dll work in the following way:
First it threw an error ("the specified module could not be found").
Win98 did not say a word about what it needs, but testing it in XP, I 
realized that it was just asking for other DLLs, and could download 
them, and now the library works. (Should have listened to Magnus 
Hagander who warned me about dependencies.)

Regarding bcc32.mak, it could not make getaddrinfo.obj. I will be able 
to make further tests, but please send me whole files instead of 
patches - that will make things much easier under the circumstances.

Thank you, with love, Gabor

Bruce Momjian <pgman@candle.pha.pa.us> írta:

> Berényi Gábor wrote:
> > Dear Bruce, Magnus and others,
> > 
> > Strangely LoadLibrary() does not load libpq.dll (coming from the 
binary 
> > distribution) on a Win98 client. LoadLibrary() does work with other 
> > libraries. Any ideas would be appreciated.
> > 
> > The new libpq makefile for bcc failed.
> 
> Please show us how it failed.
> 
> -- 
>   Bruce Momjian                        |  http://candle.pha.pa.us
>   pgman@candle.pha.pa.us               |  (610) 359-1001
>   +  If your life is a hard drive,     |  13 Roberts Road
>   +  Christ can be your backup.        |  Newtown Square, Pennsylvania 
19073
>





^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd)
  2005-02-25 11:36 Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>
@ 2005-02-25 15:58 ` Bruce Momjian <pgman@candle.pha.pa.us>
  2005-02-27 20:38   ` Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>
  0 siblings, 1 reply; 12+ messages in thread

From: Bruce Momjian @ 2005-02-25 15:58 UTC (permalink / raw)
  To: Berényi Gábor <ber_@freemail.hu>; +Cc: pgsql-interfaces

Berényi Gábor wrote:
> Meanwhile I made libpq.dll work in the following way:
> First it threw an error ("the specified module could not be found").
> Win98 did not say a word about what it needs, but testing it in XP, I 
> realized that it was just asking for other DLLs, and could download 
> them, and now the library works. (Should have listened to Magnus 
> Hagander who warned me about dependencies.)
> 
> Regarding bcc32.mak, it could not make getaddrinfo.obj. I will be able 
> to make further tests, but please send me whole files instead of 
> patches - that will make things much easier under the circumstances.
> 
> Thank you, with love, Gabor

OK, I think I see why didn't work.  Here is a new bcc32.mak file.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
# 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
# BCB=d:\Borland\Bcc55

!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
!MESSAGE make  -DCFG=[Release | Debug] /f bcc32.mak
!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=
!ELSE 
NULL=nul
!ENDIF 

!IF "$(CFG)" == "Debug"
DEBUG=1
OUTDIR=.\Debug
INTDIR=.\Debug
!ELSE
OUTDIR=.\Release
INTDIR=.\Release
!ENDIF

OUTFILENAME=blibpq

USERDEFINES=FRONTEND;NDEBUG;WIN32;_WINDOWS;HAVE_VSNPRINTF;HAVE_STRDUP;

CPP=bcc32.exe
CPP_PROJ = -I$(BCB)\include;..\..\include -WD -c -D$(USERDEFINES) -tWM \
		-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

CLEAN :
	-@erase "$(INTDIR)\getaddrinfo.obj"
	-@erase "$(INTDIR)\pgstrcasecmp.obj"
	-@erase "$(INTDIR)\thread.obj"
	-@erase "$(INTDIR)\inet_aton.obj"
	-@erase "$(INTDIR)\crypt.obj"
	-@erase "$(INTDIR)\noblock.obj"
	-@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"
	-@erase "$(INTDIR)\pqexpbuffer.obj"
	-@erase "$(INTDIR)\pqsignal.obj"
	-@erase "$(OUTDIR)\libpqdll.obj"
	-@erase "$(OUTDIR)\win32.obj"
	-@erase "$(INTDIR)\wchar.obj"
	-@erase "$(INTDIR)\encnames.obj"
	-@erase "$(INTDIR)\pthread-win32.obj"
	-@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"

LIB32=tlib.exe
LIB32_FLAGS= 
LIB32_OBJS= \
	"$(INTDIR)\win32.obj" \
	"$(INTDIR)\getaddrinfo.obj" \
	"$(INTDIR)\pgstrcasecmp.obj" \
	"$(INTDIR)\thread.obj" \
	"$(INTDIR)\inet_aton.obj" \
	"$(INTDIR)\crypt.obj" \
	"$(INTDIR)\noblock.obj" \
	"$(INTDIR)\md5.obj" \
	"$(INTDIR)\ip.obj" \
	"$(INTDIR)\fe-auth.obj" \
	"$(INTDIR)\fe-protocol2.obj" \
	"$(INTDIR)\fe-protocol3.obj" \
	"$(INTDIR)\fe-connect.obj" \
	"$(INTDIR)\fe-exec.obj" \
	"$(INTDIR)\fe-lobj.obj" \
	"$(INTDIR)\fe-misc.obj" \
	"$(INTDIR)\fe-print.obj" \
	"$(INTDIR)\fe-secure.obj" \
	"$(INTDIR)\pqexpbuffer.obj" \
	"$(INTDIR)\pqsignal.obj" \
	"$(INTDIR)\wchar.obj" \
	"$(INTDIR)\encnames.obj" \
	"$(INTDIR)\pthread-win32.obj"


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
LINK32_OBJS= "$(INTDIR)\libpqdll.obj"

ALL: config "$(OUTDIR)" "$(OUTDIR)\blibpq.dll" "$(OUTDIR)\blibpq.lib"

config: ..\..\include\pg_config.h pthread.h pg_config_paths.h

..\..\include\pg_config.h: ..\..\include\pg_config.h.win32
	copy ..\..\include\pg_config.h.win32 ..\..\include\pg_config.h

pthread.h: pthread.h.win32
	copy pthread.h.win32 pthread.h

pg_config_paths.h: win32.mak
	echo #define SYSCONFDIR "" >pg_config_paths.h

"$(OUTDIR)" :
	@if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"

"$(OUTDIR)\blibpq.dll": "$(OUTDIR)\blibpq.lib" $(LINK32_OBJS) "$(INTDIR)\libpq.res" blibpqdll.def 
	$(LINK32) @&&!
	$(LINK32_FLAGS) +
	c0d32.obj $(LINK32_OBJS), +
	$@,, +
	"$(OUTDIR)\blibpq.lib" import32.lib cw32mti.lib, +
	blibpqdll.def,"$(INTDIR)\libpq.res"
!
	implib -w "$(OUTDIR)\blibpqdll.lib" blibpqdll.def $@

"$(INTDIR)\libpq.res" : "$(INTDIR)" libpq.rc
    $(RSC) $(RSC_PROJ) libpq.rc

"$(OUTDIR)\blibpq.lib": $(LIB32_OBJS)
	$(LIB32) $@ @&&!
+-"$(**: =" &^
+-")"
!


"$(INTDIR)\getaddrinfo.obj" : ..\..\port\getaddrinfo.c
    $(CPP) @<<
    $(CPP_PROJ) ..\..\port\getaddrinfo.c
<<

"$(INTDIR)\pgstrcasecmp.obj" : ..\..\port\pgstrcasecmp.c
    $(CPP) @<<
    $(CPP_PROJ) ..\..\port\pgstrcasecmp.c
<<

"$(INTDIR)\thread.obj" : ..\..\port\thread.c
    $(CPP) @<<
    $(CPP_PROJ) ..\..\port\thread.c
<<

"$(INTDIR)\inet_aton.obj" : ..\..\port\inet_aton.c
    $(CPP) @<<
    $(CPP_PROJ) ..\..\port\inet_aton.c
<<

"$(INTDIR)\crypt.obj" : ..\..\port\crypt.c
    $(CPP) @<<
    $(CPP_PROJ) ..\..\port\crypt.c
<<

"$(INTDIR)\noblock.obj" : ..\..\port\noblock.c
    $(CPP) @<<
    $(CPP_PROJ) ..\..\port\noblock.c
<<

"$(INTDIR)\md5.obj" : ..\..\backend\libpq\md5.c
    $(CPP) @<<
    $(CPP_PROJ) ..\..\backend\libpq\md5.c
<<

"$(INTDIR)\ip.obj" : ..\..\backend\libpq\ip.c
    $(CPP) @<<
    $(CPP_PROJ) ..\..\backend\libpq\ip.c
<<

"$(INTDIR)\wchar.obj" : ..\..\backend\utils\mb\wchar.c
    $(CPP) @<<
    $(CPP_PROJ) /I "." ..\..\backend\utils\mb\wchar.c
<<


"$(INTDIR)\encnames.obj" : ..\..\backend\utils\mb\encnames.c
    $(CPP) @<<
    $(CPP_PROJ) /I "." ..\..\backend\utils\mb\encnames.c
<<

.c.obj:
	$(CPP) -o"$(INTDIR)\$&" $(CPP_PROJ) $<

Attachments:

  [text/plain] /pg/interfaces/libpq/bcc32.mak (5.4K, ../../200502251558.j1PFwXk23035@candle.pha.pa.us/2-%2Fpg%2Finterfaces%2Flibpq%2Fbcc32.mak)
  download | inline:
# 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
# BCB=d:\Borland\Bcc55

!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
!MESSAGE make  -DCFG=[Release | Debug] /f bcc32.mak
!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=
!ELSE 
NULL=nul
!ENDIF 

!IF "$(CFG)" == "Debug"
DEBUG=1
OUTDIR=.\Debug
INTDIR=.\Debug
!ELSE
OUTDIR=.\Release
INTDIR=.\Release
!ENDIF

OUTFILENAME=blibpq

USERDEFINES=FRONTEND;NDEBUG;WIN32;_WINDOWS;HAVE_VSNPRINTF;HAVE_STRDUP;

CPP=bcc32.exe
CPP_PROJ = -I$(BCB)\include;..\..\include -WD -c -D$(USERDEFINES) -tWM \
		-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

CLEAN :
	-@erase "$(INTDIR)\getaddrinfo.obj"
	-@erase "$(INTDIR)\pgstrcasecmp.obj"
	-@erase "$(INTDIR)\thread.obj"
	-@erase "$(INTDIR)\inet_aton.obj"
	-@erase "$(INTDIR)\crypt.obj"
	-@erase "$(INTDIR)\noblock.obj"
	-@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"
	-@erase "$(INTDIR)\pqexpbuffer.obj"
	-@erase "$(INTDIR)\pqsignal.obj"
	-@erase "$(OUTDIR)\libpqdll.obj"
	-@erase "$(OUTDIR)\win32.obj"
	-@erase "$(INTDIR)\wchar.obj"
	-@erase "$(INTDIR)\encnames.obj"
	-@erase "$(INTDIR)\pthread-win32.obj"
	-@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"

LIB32=tlib.exe
LIB32_FLAGS= 
LIB32_OBJS= \
	"$(INTDIR)\win32.obj" \
	"$(INTDIR)\getaddrinfo.obj" \
	"$(INTDIR)\pgstrcasecmp.obj" \
	"$(INTDIR)\thread.obj" \
	"$(INTDIR)\inet_aton.obj" \
	"$(INTDIR)\crypt.obj" \
	"$(INTDIR)\noblock.obj" \
	"$(INTDIR)\md5.obj" \
	"$(INTDIR)\ip.obj" \
	"$(INTDIR)\fe-auth.obj" \
	"$(INTDIR)\fe-protocol2.obj" \
	"$(INTDIR)\fe-protocol3.obj" \
	"$(INTDIR)\fe-connect.obj" \
	"$(INTDIR)\fe-exec.obj" \
	"$(INTDIR)\fe-lobj.obj" \
	"$(INTDIR)\fe-misc.obj" \
	"$(INTDIR)\fe-print.obj" \
	"$(INTDIR)\fe-secure.obj" \
	"$(INTDIR)\pqexpbuffer.obj" \
	"$(INTDIR)\pqsignal.obj" \
	"$(INTDIR)\wchar.obj" \
	"$(INTDIR)\encnames.obj" \
	"$(INTDIR)\pthread-win32.obj"


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
LINK32_OBJS= "$(INTDIR)\libpqdll.obj"

ALL: config "$(OUTDIR)" "$(OUTDIR)\blibpq.dll" "$(OUTDIR)\blibpq.lib"

config: ..\..\include\pg_config.h pthread.h pg_config_paths.h

..\..\include\pg_config.h: ..\..\include\pg_config.h.win32
	copy ..\..\include\pg_config.h.win32 ..\..\include\pg_config.h

pthread.h: pthread.h.win32
	copy pthread.h.win32 pthread.h

pg_config_paths.h: win32.mak
	echo #define SYSCONFDIR "" >pg_config_paths.h

"$(OUTDIR)" :
	@if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"

"$(OUTDIR)\blibpq.dll": "$(OUTDIR)\blibpq.lib" $(LINK32_OBJS) "$(INTDIR)\libpq.res" blibpqdll.def 
	$(LINK32) @&&!
	$(LINK32_FLAGS) +
	c0d32.obj $(LINK32_OBJS), +
	$@,, +
	"$(OUTDIR)\blibpq.lib" import32.lib cw32mti.lib, +
	blibpqdll.def,"$(INTDIR)\libpq.res"
!
	implib -w "$(OUTDIR)\blibpqdll.lib" blibpqdll.def $@

"$(INTDIR)\libpq.res" : "$(INTDIR)" libpq.rc
    $(RSC) $(RSC_PROJ) libpq.rc

"$(OUTDIR)\blibpq.lib": $(LIB32_OBJS)
	$(LIB32) $@ @&&!
+-"$(**: =" &^
+-")"
!


"$(INTDIR)\getaddrinfo.obj" : ..\..\port\getaddrinfo.c
    $(CPP) @<<
    $(CPP_PROJ) ..\..\port\getaddrinfo.c
<<

"$(INTDIR)\pgstrcasecmp.obj" : ..\..\port\pgstrcasecmp.c
    $(CPP) @<<
    $(CPP_PROJ) ..\..\port\pgstrcasecmp.c
<<

"$(INTDIR)\thread.obj" : ..\..\port\thread.c
    $(CPP) @<<
    $(CPP_PROJ) ..\..\port\thread.c
<<

"$(INTDIR)\inet_aton.obj" : ..\..\port\inet_aton.c
    $(CPP) @<<
    $(CPP_PROJ) ..\..\port\inet_aton.c
<<

"$(INTDIR)\crypt.obj" : ..\..\port\crypt.c
    $(CPP) @<<
    $(CPP_PROJ) ..\..\port\crypt.c
<<

"$(INTDIR)\noblock.obj" : ..\..\port\noblock.c
    $(CPP) @<<
    $(CPP_PROJ) ..\..\port\noblock.c
<<

"$(INTDIR)\md5.obj" : ..\..\backend\libpq\md5.c
    $(CPP) @<<
    $(CPP_PROJ) ..\..\backend\libpq\md5.c
<<

"$(INTDIR)\ip.obj" : ..\..\backend\libpq\ip.c
    $(CPP) @<<
    $(CPP_PROJ) ..\..\backend\libpq\ip.c
<<

"$(INTDIR)\wchar.obj" : ..\..\backend\utils\mb\wchar.c
    $(CPP) @<<
    $(CPP_PROJ) /I "." ..\..\backend\utils\mb\wchar.c
<<


"$(INTDIR)\encnames.obj" : ..\..\backend\utils\mb\encnames.c
    $(CPP) @<<
    $(CPP_PROJ) /I "." ..\..\backend\utils\mb\encnames.c
<<

.c.obj:
	$(CPP) -o"$(INTDIR)\$&" $(CPP_PROJ) $<

^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd)
  2005-02-25 11:36 Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>
  2005-02-25 15:58 ` Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) Bruce Momjian <pgman@candle.pha.pa.us>
@ 2005-02-27 20:38   ` =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>
  2005-02-27 22:39     ` Re: [INTERFACES] bcc32.mak for libpq broken? (distro 8.0.0) (fwd) Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 12+ messages in thread

From: Berényi Gábor @ 2005-02-27 20:38 UTC (permalink / raw)
  To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: pgsql-interfaces

Dear Bruce,
Didn't work:
Fatal bcc32.mak 169: No terminator specified for in-line file operator
Look forward to hear of you again, Gabor

Bruce Momjian <pgman@candle.pha.pa.us> írta:

> Berényi Gábor wrote:
> > Meanwhile I made libpq.dll work in the following way:
> > First it threw an error ("the specified module could not be found").
> > Win98 did not say a word about what it needs, but testing it in XP, 
I 
> > realized that it was just asking for other DLLs, and could download 
> > them, and now the library works. (Should have listened to Magnus 
> > Hagander who warned me about dependencies.)
> > 
> > Regarding bcc32.mak, it could not make getaddrinfo.obj. I will be 
able 
> > to make further tests, but please send me whole files instead of 
> > patches - that will make things much easier under the 
circumstances.
> > 
> > Thank you, with love, Gabor
> 
> OK, I think I see why didn't work.  Here is a new bcc32.mak file.
> 
> -- 
>   Bruce Momjian                        |  http://candle.pha.pa.us
>   pgman@candle.pha.pa.us               |  (610) 359-1001
>   +  If your life is a hard drive,     |  13 Roberts Road
>   +  Christ can be your backup.        |  Newtown Square, Pennsylvania 
19073
> 



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: [INTERFACES] bcc32.mak for libpq broken? (distro 8.0.0) (fwd)
  2005-02-25 11:36 Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>
  2005-02-25 15:58 ` Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) Bruce Momjian <pgman@candle.pha.pa.us>
  2005-02-27 20:38   ` Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>
@ 2005-02-27 22:39     ` Bruce Momjian <pgman@candle.pha.pa.us>
  2005-03-04 00:00       ` Re: [INTERFACES] bcc32.mak for libpq broken? (distro 8.0.0) (fwd) =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>
  0 siblings, 1 reply; 12+ messages in thread

From: Bruce Momjian @ 2005-02-27 22:39 UTC (permalink / raw)
  To: Berényi Gábor <ber_@freemail.hu>; +Cc: PostgreSQL-patches <pgsql-patches@postgresql.org>

Berényi Gábor wrote:
> Dear Bruce,
> Didn't work:
> Fatal bcc32.mak 169: No terminator specified for in-line file operator
> Look forward to hear of you again, Gabor

OK, new bcc32.mak attached.  It turns out the actions were indented with
spaces instead of tabs.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
# 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
# BCB=d:\Borland\Bcc55

!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
!MESSAGE make  -DCFG=[Release | Debug] /f bcc32.mak
!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=
!ELSE 
NULL=nul
!ENDIF 

!IF "$(CFG)" == "Debug"
DEBUG=1
OUTDIR=.\Debug
INTDIR=.\Debug
!ELSE
OUTDIR=.\Release
INTDIR=.\Release
!ENDIF

OUTFILENAME=blibpq

USERDEFINES=FRONTEND;NDEBUG;WIN32;_WINDOWS;HAVE_VSNPRINTF;HAVE_STRDUP;

CPP=bcc32.exe
CPP_PROJ = -I$(BCB)\include;..\..\include -WD -c -D$(USERDEFINES) -tWM \
		-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

CLEAN :
	-@erase "$(INTDIR)\getaddrinfo.obj"
	-@erase "$(INTDIR)\pgstrcasecmp.obj"
	-@erase "$(INTDIR)\thread.obj"
	-@erase "$(INTDIR)\inet_aton.obj"
	-@erase "$(INTDIR)\crypt.obj"
	-@erase "$(INTDIR)\noblock.obj"
	-@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"
	-@erase "$(INTDIR)\pqexpbuffer.obj"
	-@erase "$(INTDIR)\pqsignal.obj"
	-@erase "$(OUTDIR)\libpqdll.obj"
	-@erase "$(OUTDIR)\win32.obj"
	-@erase "$(INTDIR)\wchar.obj"
	-@erase "$(INTDIR)\encnames.obj"
	-@erase "$(INTDIR)\pthread-win32.obj"
	-@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"

LIB32=tlib.exe
LIB32_FLAGS= 
LIB32_OBJS= \
	"$(INTDIR)\win32.obj" \
	"$(INTDIR)\getaddrinfo.obj" \
	"$(INTDIR)\pgstrcasecmp.obj" \
	"$(INTDIR)\thread.obj" \
	"$(INTDIR)\inet_aton.obj" \
	"$(INTDIR)\crypt.obj" \
	"$(INTDIR)\noblock.obj" \
	"$(INTDIR)\md5.obj" \
	"$(INTDIR)\ip.obj" \
	"$(INTDIR)\fe-auth.obj" \
	"$(INTDIR)\fe-protocol2.obj" \
	"$(INTDIR)\fe-protocol3.obj" \
	"$(INTDIR)\fe-connect.obj" \
	"$(INTDIR)\fe-exec.obj" \
	"$(INTDIR)\fe-lobj.obj" \
	"$(INTDIR)\fe-misc.obj" \
	"$(INTDIR)\fe-print.obj" \
	"$(INTDIR)\fe-secure.obj" \
	"$(INTDIR)\pqexpbuffer.obj" \
	"$(INTDIR)\pqsignal.obj" \
	"$(INTDIR)\wchar.obj" \
	"$(INTDIR)\encnames.obj" \
	"$(INTDIR)\pthread-win32.obj"


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
LINK32_OBJS= "$(INTDIR)\libpqdll.obj"

ALL: config "$(OUTDIR)" "$(OUTDIR)\blibpq.dll" "$(OUTDIR)\blibpq.lib"

config: ..\..\include\pg_config.h pthread.h pg_config_paths.h

..\..\include\pg_config.h: ..\..\include\pg_config.h.win32
	copy ..\..\include\pg_config.h.win32 ..\..\include\pg_config.h

pthread.h: pthread.h.win32
	copy pthread.h.win32 pthread.h

pg_config_paths.h: win32.mak
	echo #define SYSCONFDIR "" >pg_config_paths.h

"$(OUTDIR)" :
	@if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"

"$(OUTDIR)\blibpq.dll": "$(OUTDIR)\blibpq.lib" $(LINK32_OBJS) "$(INTDIR)\libpq.res" blibpqdll.def 
	$(LINK32) @&&!
	$(LINK32_FLAGS) +
	c0d32.obj $(LINK32_OBJS), +
	$@,, +
	"$(OUTDIR)\blibpq.lib" import32.lib cw32mti.lib, +
	blibpqdll.def,"$(INTDIR)\libpq.res"
!
	implib -w "$(OUTDIR)\blibpqdll.lib" blibpqdll.def $@

"$(INTDIR)\libpq.res" : "$(INTDIR)" libpq.rc
    $(RSC) $(RSC_PROJ) libpq.rc

"$(OUTDIR)\blibpq.lib": $(LIB32_OBJS)
	$(LIB32) $@ @&&!
+-"$(**: =" &^
+-")"
!


"$(INTDIR)\getaddrinfo.obj" : ..\..\port\getaddrinfo.c
	$(CPP) @<<
	$(CPP_PROJ) ..\..\port\getaddrinfo.c
<<

"$(INTDIR)\pgstrcasecmp.obj" : ..\..\port\pgstrcasecmp.c
	$(CPP) @<<
	$(CPP_PROJ) ..\..\port\pgstrcasecmp.c
<<

"$(INTDIR)\thread.obj" : ..\..\port\thread.c
	$(CPP) @<<
	$(CPP_PROJ) ..\..\port\thread.c
<<

"$(INTDIR)\inet_aton.obj" : ..\..\port\inet_aton.c
	$(CPP) @<<
	$(CPP_PROJ) ..\..\port\inet_aton.c
<<

"$(INTDIR)\crypt.obj" : ..\..\port\crypt.c
	$(CPP) @<<
	$(CPP_PROJ) ..\..\port\crypt.c
<<

"$(INTDIR)\noblock.obj" : ..\..\port\noblock.c
	$(CPP) @<<
	$(CPP_PROJ) ..\..\port\noblock.c
<<

"$(INTDIR)\md5.obj" : ..\..\backend\libpq\md5.c
	$(CPP) @<<
	$(CPP_PROJ) ..\..\backend\libpq\md5.c
<<

"$(INTDIR)\ip.obj" : ..\..\backend\libpq\ip.c
	$(CPP) @<<
	$(CPP_PROJ) ..\..\backend\libpq\ip.c
<<

"$(INTDIR)\wchar.obj" : ..\..\backend\utils\mb\wchar.c
	$(CPP) @<<
	$(CPP_PROJ) /I "." ..\..\backend\utils\mb\wchar.c
<<


"$(INTDIR)\encnames.obj" : ..\..\backend\utils\mb\encnames.c
	$(CPP) @<<
	$(CPP_PROJ) /I "." ..\..\backend\utils\mb\encnames.c
<<

.c.obj:
	$(CPP) -o"$(INTDIR)\$&" $(CPP_PROJ) $<

Attachments:

  [text/plain] /pg/interfaces/libpq/bcc32.mak (5.4K, ../../200502272239.j1RMdax28030@candle.pha.pa.us/2-%2Fpg%2Finterfaces%2Flibpq%2Fbcc32.mak)
  download | inline:
# 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
# BCB=d:\Borland\Bcc55

!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
!MESSAGE make  -DCFG=[Release | Debug] /f bcc32.mak
!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=
!ELSE 
NULL=nul
!ENDIF 

!IF "$(CFG)" == "Debug"
DEBUG=1
OUTDIR=.\Debug
INTDIR=.\Debug
!ELSE
OUTDIR=.\Release
INTDIR=.\Release
!ENDIF

OUTFILENAME=blibpq

USERDEFINES=FRONTEND;NDEBUG;WIN32;_WINDOWS;HAVE_VSNPRINTF;HAVE_STRDUP;

CPP=bcc32.exe
CPP_PROJ = -I$(BCB)\include;..\..\include -WD -c -D$(USERDEFINES) -tWM \
		-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

CLEAN :
	-@erase "$(INTDIR)\getaddrinfo.obj"
	-@erase "$(INTDIR)\pgstrcasecmp.obj"
	-@erase "$(INTDIR)\thread.obj"
	-@erase "$(INTDIR)\inet_aton.obj"
	-@erase "$(INTDIR)\crypt.obj"
	-@erase "$(INTDIR)\noblock.obj"
	-@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"
	-@erase "$(INTDIR)\pqexpbuffer.obj"
	-@erase "$(INTDIR)\pqsignal.obj"
	-@erase "$(OUTDIR)\libpqdll.obj"
	-@erase "$(OUTDIR)\win32.obj"
	-@erase "$(INTDIR)\wchar.obj"
	-@erase "$(INTDIR)\encnames.obj"
	-@erase "$(INTDIR)\pthread-win32.obj"
	-@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"

LIB32=tlib.exe
LIB32_FLAGS= 
LIB32_OBJS= \
	"$(INTDIR)\win32.obj" \
	"$(INTDIR)\getaddrinfo.obj" \
	"$(INTDIR)\pgstrcasecmp.obj" \
	"$(INTDIR)\thread.obj" \
	"$(INTDIR)\inet_aton.obj" \
	"$(INTDIR)\crypt.obj" \
	"$(INTDIR)\noblock.obj" \
	"$(INTDIR)\md5.obj" \
	"$(INTDIR)\ip.obj" \
	"$(INTDIR)\fe-auth.obj" \
	"$(INTDIR)\fe-protocol2.obj" \
	"$(INTDIR)\fe-protocol3.obj" \
	"$(INTDIR)\fe-connect.obj" \
	"$(INTDIR)\fe-exec.obj" \
	"$(INTDIR)\fe-lobj.obj" \
	"$(INTDIR)\fe-misc.obj" \
	"$(INTDIR)\fe-print.obj" \
	"$(INTDIR)\fe-secure.obj" \
	"$(INTDIR)\pqexpbuffer.obj" \
	"$(INTDIR)\pqsignal.obj" \
	"$(INTDIR)\wchar.obj" \
	"$(INTDIR)\encnames.obj" \
	"$(INTDIR)\pthread-win32.obj"


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
LINK32_OBJS= "$(INTDIR)\libpqdll.obj"

ALL: config "$(OUTDIR)" "$(OUTDIR)\blibpq.dll" "$(OUTDIR)\blibpq.lib"

config: ..\..\include\pg_config.h pthread.h pg_config_paths.h

..\..\include\pg_config.h: ..\..\include\pg_config.h.win32
	copy ..\..\include\pg_config.h.win32 ..\..\include\pg_config.h

pthread.h: pthread.h.win32
	copy pthread.h.win32 pthread.h

pg_config_paths.h: win32.mak
	echo #define SYSCONFDIR "" >pg_config_paths.h

"$(OUTDIR)" :
	@if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"

"$(OUTDIR)\blibpq.dll": "$(OUTDIR)\blibpq.lib" $(LINK32_OBJS) "$(INTDIR)\libpq.res" blibpqdll.def 
	$(LINK32) @&&!
	$(LINK32_FLAGS) +
	c0d32.obj $(LINK32_OBJS), +
	$@,, +
	"$(OUTDIR)\blibpq.lib" import32.lib cw32mti.lib, +
	blibpqdll.def,"$(INTDIR)\libpq.res"
!
	implib -w "$(OUTDIR)\blibpqdll.lib" blibpqdll.def $@

"$(INTDIR)\libpq.res" : "$(INTDIR)" libpq.rc
    $(RSC) $(RSC_PROJ) libpq.rc

"$(OUTDIR)\blibpq.lib": $(LIB32_OBJS)
	$(LIB32) $@ @&&!
+-"$(**: =" &^
+-")"
!


"$(INTDIR)\getaddrinfo.obj" : ..\..\port\getaddrinfo.c
	$(CPP) @<<
	$(CPP_PROJ) ..\..\port\getaddrinfo.c
<<

"$(INTDIR)\pgstrcasecmp.obj" : ..\..\port\pgstrcasecmp.c
	$(CPP) @<<
	$(CPP_PROJ) ..\..\port\pgstrcasecmp.c
<<

"$(INTDIR)\thread.obj" : ..\..\port\thread.c
	$(CPP) @<<
	$(CPP_PROJ) ..\..\port\thread.c
<<

"$(INTDIR)\inet_aton.obj" : ..\..\port\inet_aton.c
	$(CPP) @<<
	$(CPP_PROJ) ..\..\port\inet_aton.c
<<

"$(INTDIR)\crypt.obj" : ..\..\port\crypt.c
	$(CPP) @<<
	$(CPP_PROJ) ..\..\port\crypt.c
<<

"$(INTDIR)\noblock.obj" : ..\..\port\noblock.c
	$(CPP) @<<
	$(CPP_PROJ) ..\..\port\noblock.c
<<

"$(INTDIR)\md5.obj" : ..\..\backend\libpq\md5.c
	$(CPP) @<<
	$(CPP_PROJ) ..\..\backend\libpq\md5.c
<<

"$(INTDIR)\ip.obj" : ..\..\backend\libpq\ip.c
	$(CPP) @<<
	$(CPP_PROJ) ..\..\backend\libpq\ip.c
<<

"$(INTDIR)\wchar.obj" : ..\..\backend\utils\mb\wchar.c
	$(CPP) @<<
	$(CPP_PROJ) /I "." ..\..\backend\utils\mb\wchar.c
<<


"$(INTDIR)\encnames.obj" : ..\..\backend\utils\mb\encnames.c
	$(CPP) @<<
	$(CPP_PROJ) /I "." ..\..\backend\utils\mb\encnames.c
<<

.c.obj:
	$(CPP) -o"$(INTDIR)\$&" $(CPP_PROJ) $<

^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: [INTERFACES] bcc32.mak for libpq broken? (distro 8.0.0) (fwd)
  2005-02-25 11:36 Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>
  2005-02-25 15:58 ` Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) Bruce Momjian <pgman@candle.pha.pa.us>
  2005-02-27 20:38   ` Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>
  2005-02-27 22:39     ` Re: [INTERFACES] bcc32.mak for libpq broken? (distro 8.0.0) (fwd) Bruce Momjian <pgman@candle.pha.pa.us>
@ 2005-03-04 00:00       ` =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>
  0 siblings, 0 replies; 12+ messages in thread

From: Berényi Gábor @ 2005-03-04 00:00 UTC (permalink / raw)
  To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: PostgreSQL-patches <pgsql-patches@postgresql.org>

The problem is something else.
Gives the same message.

Bruce Momjian <pgman@candle.pha.pa.us> írta:

> Berényi Gábor wrote:
> > Dear Bruce,
> > Didn't work:
> > Fatal bcc32.mak 169: No terminator specified for in-line file 
operator
> > Look forward to hear of you again, Gabor
> 
> OK, new bcc32.mak attached.  It turns out the actions were 
indented with
> spaces instead of tabs.
> 
> -- 
>   Bruce Momjian                        |  http://candle.pha.pa.us
>   pgman@candle.pha.pa.us               |  (610) 359-1001
>   +  If your life is a hard drive,     |  13 Roberts Road
>   +  Christ can be your backup.        |  Newtown Square, 
Pennsylvania 19073
> 



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: [INTERFACES] bcc32.mak for libpq broken? (distro 8.0.0) (fwd)
@ 2005-03-11 22:55 =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>
  0 siblings, 0 replies; 12+ messages in thread

From: Berényi Gábor @ 2005-03-11 22:55 UTC (permalink / raw)
  To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: PostgreSQL-patches <pgsql-patches@postgresql.org>

Bruce Momjian <pgman@candle.pha.pa.us> írta:

> Berényi Gábor wrote:
> > The problem is something else.
> > Gives the same message.
> > 
> > Bruce Momjian <pgman@candle.pha.pa.us> ?rta:
> > 
> > > Ber?nyi G?bor wrote:
> > > > Dear Bruce,
> > > > Didn't work:
> > > > Fatal bcc32.mak 169: No terminator specified for in-line file 
> > operator
> > > > Look forward to hear of you again, Gabor
> > > 
> > > OK, new bcc32.mak attached.  It turns out the actions were 
> > indented with
> > > spaces instead of tabs.
> 
> OK, I think I figured it out.  "Resource files" are done differently in
> MS make and bcc make.  I have attached a new file.  Please test and 
let
> me know.  If you can keep testing, we will eventually get this 
working. 
> Thanks.
> 
> -- 
>   Bruce Momjian                        |  http://candle.pha.pa.us
>   pgman@candle.pha.pa.us               |  (610) 359-1001
>   +  If your life is a hard drive,     |  13 Roberts Road
>   +  Christ can be your backup.        |  Newtown Square, 
Pennsylvania 19073
> 

Hello Bruce,
The output: 29 rows, each consists of the single message "file not 
found".
Should I send you a bcc makefile that works?  have one for my project 
that the IDE created automatically - if you think it helps to understand 
the syntax.
Keep trying, Gabor



^ permalink  raw  reply  [nested|flat] 12+ messages in thread


end of thread, other threads:[~2005-03-11 22:55 UTC | newest]

Thread overview: 12+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-02-21 14:26 bcc32.mak for libpq broken? (distro 8.0.0) (fwd) =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>
2005-02-21 19:58 Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) Magnus Hagander <mha@sollentuna.net>
2005-02-21 21:24 ` Bruce Momjian <pgman@candle.pha.pa.us>
2005-02-24 00:10   ` =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>
2005-02-25 05:21     ` Bruce Momjian <pgman@candle.pha.pa.us>
2005-02-24 00:21 Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) Guy Rouillier <guyr@masergy.com>
2005-02-25 11:36 Re: bcc32.mak for libpq broken? (distro 8.0.0) (fwd) =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>
2005-02-25 15:58 ` Bruce Momjian <pgman@candle.pha.pa.us>
2005-02-27 20:38   ` =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>
2005-02-27 22:39     ` Bruce Momjian <pgman@candle.pha.pa.us>
2005-03-04 00:00       ` =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>
2005-03-11 22:55 Re: [INTERFACES] bcc32.mak for libpq broken? (distro 8.0.0) (fwd) =?ISO-8859-2?Q?Ber=E9nyi_G=E1bor?= <ber_@freemail.hu>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox