mirror of
https://github.com/postgres/postgres.git
synced 2025-05-12 16:21:30 +03:00
libpq. We need to keep libpq to build static libraries and to use PQtrace with clients using older versions of MSVC.
32 lines
728 B
Makefile
32 lines
728 B
Makefile
# $PostgreSQL: pgsql/src/win32.mak,v 1.15 2007/03/05 14:18:38 mha Exp $
|
|
|
|
# Top-file makefile for building Win32 libpq with Visual C++ 6.0.
|
|
# (see src/tools/msvc for tools to build with Visual C++ 2005 and newer)
|
|
|
|
!IF "$(OS)" == "Windows_NT"
|
|
NULL=
|
|
!ELSE
|
|
NULL=nul
|
|
!ENDIF
|
|
|
|
ALL:
|
|
cd include
|
|
if not exist pg_config.h copy pg_config.h.win32 pg_config.h
|
|
if not exist pg_config_os.h copy port\win32.h pg_config_os.h
|
|
cd ..
|
|
cd interfaces\libpq
|
|
nmake /f win32.mak $(MAKEMACRO)
|
|
cd ..\..
|
|
echo All Win32 parts have been built!
|
|
|
|
CLEAN:
|
|
cd interfaces\libpq
|
|
nmake /f win32.mak CLEAN
|
|
cd ..\..
|
|
echo All Win32 parts have been cleaned!
|
|
|
|
DISTCLEAN: CLEAN
|
|
cd include
|
|
del pg_config.h pg_config_os.h
|
|
cd ..
|