]> granicus.if.org Git - postgresql/blob - src/win32.mak
Make pgsql compile on FreeBSD-alpha.
[postgresql] / src / win32.mak
1 # Makefile for Microsoft Visual C++ 5.0 (or compat)
2
3 # Top-file makefile for Win32 parts of postgresql.
4
5 # Note that most parts are not ported to Win32!
6
7 !IF "$(OS)" == "Windows_NT"
8 NULL=
9 !ELSE 
10 NULL=nul
11 !ENDIF 
12
13 !IFDEF  MULTIBYTE
14 MAKEMACRO = "MULTIBYTE=$(MULTIBYTE)"
15 !ENDIF
16
17 ALL: 
18    cd include
19    if not exist config.h copy config.h.win32 config.h
20    cd ..
21    cd interfaces\libpq
22    nmake /f win32.mak $(MAKEMACRO)
23    cd ..\..\bin\psql
24    nmake /f win32.mak $(MAKEMACRO)
25    cd ..\..
26    echo All Win32 parts have been built!
27
28 CLEAN:
29    cd interfaces\libpq
30    nmake /f win32.mak CLEAN
31    cd ..\..\bin\psql
32    nmake /f win32.mak CLEAN
33    cd ..\..
34    echo All Win32 parts have been cleaned!
35
36 DISTCLEAN: CLEAN
37    cd include
38    del config.h
39    cd ..