]> granicus.if.org Git - postgresql/blob - src/makefiles/Makefile.win32
Fix HAVE_OPTRESET to be HAVE_INT_OPTRESET. Typos spotted by Lorne Sunley.
[postgresql] / src / makefiles / Makefile.win32
1 # $PostgreSQL: pgsql/src/makefiles/Makefile.win32,v 1.6 2004/11/17 17:16:17 tgl Exp $
2
3 # Use replacement include files for those missing on Win32
4 override CPPFLAGS+="-I$(top_srcdir)/src/include/port/win32"
5
6 DLLTOOL= dlltool
7 DLLWRAP= dllwrap
8 BE_DLLLIBS= -L$(top_builddir)/src/backend -lpostgres
9 DLLINIT = $(top_builddir)/src/utils/dllinit.o
10
11 AROPT = crs
12 DLSUFFIX = .dll
13 CFLAGS_SL =
14
15 %.dll: %.o
16         $(DLLTOOL) --export-all --output-def $*.def $<
17         $(DLLWRAP) -o $@ --def $*.def $< $(DLLINIT) $(SHLIB_LINK)
18         rm -f $*.def
19
20 ifneq (,$(findstring backend,$(subdir)))
21 ifeq (,$(findstring conversion_procs,$(subdir)))
22 override CPPFLAGS+= -DBUILDING_DLL
23 endif
24 endif
25
26 ifneq (,$(findstring timezone,$(subdir)))
27 override CPPFLAGS+= -DBUILDING_DLL
28 endif
29
30 ifneq (,$(findstring ecpg/ecpglib,$(subdir)))
31 override CPPFLAGS+= -DBUILDING_DLL
32 endif
33
34 # required by Python headers
35 ifneq (,$(findstring src/pl/plpython,$(subdir)))
36 override CPPFLAGS+= -DUSE_DL_IMPORT
37 endif
38
39 # special win32 headers are provided here
40 ifdef PGXS
41 override CPPFLAGS+= -I$(includedir_server)/port/win32
42 endif
43
44 # it is better to install shared-libraries anyway?
45 # may be overriden with make MAKE_DLL=false install
46 ifndef MAKE_DLL
47 MAKE_DLL        = true
48 endif