Add win32 c++ files.

This commit is contained in:
Bruce Momjian 2001-07-12 14:07:48 +00:00
parent 79d78bb26a
commit fb45d4ae07
2 changed files with 160 additions and 0 deletions

View File

@ -0,0 +1,34 @@
#include <winver.h>
VS_VERSION_INFO VERSIONINFO
FILEVERSION 7,1,2,0
PRODUCTVERSION 7,1,2,0
FILEFLAGSMASK 0x3fL
FILEFLAGS 0x0L
FILEOS 0x40004L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "Comments", "\0"
VALUE "CompanyName", " \0"
VALUE "FileDescription", "PostgreSQL C++ Access Library\0"
VALUE "FileVersion", "7, 1, 2, 0\0"
VALUE "InternalName", "libpq++\0"
VALUE "LegalCopyright", "Copyright © 2000\0"
VALUE "LegalTrademarks", "\0"
VALUE "OriginalFilename", "libpq++.dll\0"
VALUE "PrivateBuild", "\0"
VALUE "ProductName", "PostgreSQL\0"
VALUE "ProductVersion", "7, 1, 2, 0\0"
VALUE "SpecialBuild", "\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END

View File

@ -0,0 +1,126 @@
# Makefile for Microsoft Visual C++ 6.0 (or compat)
# Will build a Win32 static library (non-debug) libpq++.lib
# and a Win32 dynamic library (non-debug) libpq++.dll with import library libpq++dll.lib
!IF "$(OS)" == "Windows_NT"
NULL=
!ELSE
NULL=nul
!ENDIF
.SUFFIXES : .cc
CPP=cl.exe
RSC=rc.exe
OUTDIR=.\Release
INTDIR=.\Release
# Begin Custom Macros
OutDir=.\Release
# End Custom Macros
ALL : "$(OUTDIR)\libpq++.dll" "$(OUTDIR)\libpq++.lib"
CLEAN :
-@erase "$(INTDIR)\pgconnection.obj"
-@erase "$(INTDIR)\pgcursordb.obj"
-@erase "$(INTDIR)\pgdatabase.obj"
-@erase "$(INTDIR)\pglobject.obj"
-@erase "$(INTDIR)\pgtransdb.obj"
-@erase "$(OUTDIR)\libpq++.lib"
-@erase "$(OUTDIR)\libpq++.dll"
-@erase "$(OUTDIR)\libpq++dll.exp"
-@erase "$(OUTDIR)\libpq++dll.lib"
-@erase "$(OUTDIR)\libpq++dll.res"
-@erase "*.pch"
-@erase "$(OUTDIR)\libpq++.pch"
"$(OUTDIR)" :
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
CPP_PROJ=/nologo /TP /MD /W3 /GX /O2 /I "..\..\include" /I "..\libpq" /D "NDEBUG" /D\
"WIN32" /D "_WINDOWS" /Fp"$(INTDIR)\libpq++.pch" /YX\
/Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c /D "HAVE_VSNPRINTF" /D "HAVE_STRDUP"
CPP_OBJS=.\Release/
CPP_SBRS=.
LIB32=link.exe -lib
LIB32_FLAGS=/nologo /out:"$(OUTDIR)\libpq++.lib"
LIB32_OBJS= \
"$(OUTDIR)\pgconnection.obj" \
"$(OUTDIR)\pgcursordb.obj" \
"$(OUTDIR)\pgdatabase.obj" \
"$(OUTDIR)\pglobject.obj" \
"$(OUTDIR)\pgtransdb.obj"
RSC_PROJ=/l 0x409 /fo"$(INTDIR)\libpq++dll.res"
LINK32=link.exe
LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib wsock32.lib\
odbccp32.lib libpq.lib msvcrt.lib /nologo /subsystem:windows /dll /incremental:no\
/pdb:"$(OUTDIR)\libpq++.pdb" /machine:I386 /out:"$(OUTDIR)\libpq++.dll"\
/implib:"$(OUTDIR)\libpq++dll.lib" /libpath:"..\libpq\release"
LINK32_OBJS= \
"$(OUTDIR)\pgconnection.obj" \
"$(OUTDIR)\pgcursordb.obj" \
"$(OUTDIR)\pgdatabase.obj" \
"$(OUTDIR)\pglobject.obj" \
"$(OUTDIR)\pgtransdb.obj" \
"$(OUTDIR)\libpq++dll.res"
"$(INTDIR)\libpq++dll.res" : "$(INTDIR)" libpq++dll.rc
$(RSC) $(RSC_PROJ) libpq++dll.rc
"$(OUTDIR)\libpq++.lib" : "$(OUTDIR)" $(LIB32_OBJS)
$(LIB32) @<<
$(LIB32_FLAGS) $(LIB32_OBJS)
<<
"$(OUTDIR)\libpq++.dll" : "$(OUTDIR)" $(LINK32_OBJS)
$(LINK32) @<<
$(LINK32_FLAGS) $(LINK32_OBJS)
<<
.c{$(CPP_OBJS)}.obj::
$(CPP) @<<
$(CPP_PROJ) $<
<<
.cpp{$(CPP_OBJS)}.obj::
$(CPP) @<<
$(CPP_PROJ) $<
<<
.cc{$(CPP_OBJS)}.obj::
$(CPP) @<<
$(CPP_PROJ) $<
<<
.cxx{$(CPP_OBJS)}.obj::
$(CPP) @<<
$(CPP_PROJ) $<
<<
.c{$(CPP_SBRS)}.sbr::
$(CPP) @<<
$(CPP_PROJ) $<
<<
.cpp{$(CPP_SBRS)}.sbr::
$(CPP) @<<
$(CPP_PROJ) $<
<<
.cc{$(CPP_SBRS)}.sbr::
$(CPP) @<<
$(CPP_PROJ) $<
<<
.cxx{$(CPP_SBRS)}.sbr::
$(CPP) @<<
$(CPP_PROJ) $<
<<