1# src/win32.mak
2
3# Top-file makefile for building Win32 libpq with Visual C++ 7.1.
4# (see src/tools/msvc for tools to build with Visual C++ 2005 and newer)
5
6!IF "$(OS)" == "Windows_NT"
7NULL=
8!ELSE
9NULL=nul
10!ENDIF
11
12ALL:
13   cd include
14   if not exist pg_config.h copy pg_config.h.win32 pg_config.h
15   if not exist pg_config_ext.h copy pg_config_ext.h.win32 pg_config_ext.h
16   if not exist pg_config_os.h copy port\win32.h pg_config_os.h
17   cd ..
18   cd interfaces\libpq
19   nmake /f win32.mak $(MAKEMACRO)
20   cd ..\..
21   echo All Win32 parts have been built!
22
23CLEAN:
24   cd interfaces\libpq
25   nmake /f win32.mak CLEAN
26   cd ..\..
27   echo All Win32 parts have been cleaned!
28
29DISTCLEAN: CLEAN
30   cd include
31   del pg_config.h pg_config_ext.h pg_config_os.h
32   cd ..
33