summaryrefslogtreecommitdiff
path: root/src/win32.mak
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2000-01-18 19:05:31 +0000
committerBruce Momjian <bruce@momjian.us>2000-01-18 19:05:31 +0000
commit0cb6bc70cec12d4fbcb68673bd73453061de89f2 (patch)
treeb34d4c0d427b5b24eeb195935957787f843fe59d /src/win32.mak
parent2eebcddeaa2a60fe836a8a10ac6c697bdd36bf8e (diff)
downloadpostgresql-0cb6bc70cec12d4fbcb68673bd73453061de89f2.tar.gz
Hi!
Here is a patch to bring both libpq and psql to a state where it compiles on win32 (native) again. A lot of things have changed, and I have not been able to keep up with them all, so it has been broken for quite a while. After this patch, at least it compiles. It also talks "basic talk" to the server, but I have not yet tested all things. Sending queries, and using e.g. \d or \dt works fine. The rest will have to be tested further. It also bumps the version on libpq.dll to 7.0. Everything should be enclosed in #ifdef WIN32, unless I have missed something. Except for one or maybe two places where I have moved a #include that should not be used on win32 from the "global area" into a "#ifndef WIN32 area". //Magnus
Diffstat (limited to 'src/win32.mak')
-rw-r--r--src/win32.mak16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/win32.mak b/src/win32.mak
index a7264acf54..86d9ee8216 100644
--- a/src/win32.mak
+++ b/src/win32.mak
@@ -15,9 +15,25 @@ MAKEMACRO = "MULTIBYTE=$(MULTIBYTE)"
!ENDIF
ALL:
+ cd include
+ if not exist config.h copy config.h.win32 config.h
+ cd ..
cd interfaces\libpq
nmake /f win32.mak $(MAKEMACRO)
cd ..\..\bin\psql
nmake /f win32.mak $(MAKEMACRO)
cd ..\..
echo All Win32 parts have been built!
+
+CLEAN:
+ cd interfaces\libpq
+ nmake /f win32.mak CLEAN
+ cd ..\..\bin\psql
+ nmake /f win32.mak CLEAN
+ cd ..\..
+ echo All Win32 parts have been cleaned!
+
+DISTCLEAN: CLEAN
+ cd include
+ del config.h
+ cd .. \ No newline at end of file