1 # $PostgreSQL: pgsql/src/makefiles/Makefile.win32,v 1.6 2004/11/17 17:16:17 tgl Exp $
3 # Use replacement include files for those missing on Win32
4 override CPPFLAGS+="-I$(top_srcdir)/src/include/port/win32"
8 BE_DLLLIBS= -L$(top_builddir)/src/backend -lpostgres
9 DLLINIT = $(top_builddir)/src/utils/dllinit.o
16 $(DLLTOOL) --export-all --output-def $*.def $<
17 $(DLLWRAP) -o $@ --def $*.def $< $(DLLINIT) $(SHLIB_LINK)
20 ifneq (,$(findstring backend,$(subdir)))
21 ifeq (,$(findstring conversion_procs,$(subdir)))
22 override CPPFLAGS+= -DBUILDING_DLL
26 ifneq (,$(findstring timezone,$(subdir)))
27 override CPPFLAGS+= -DBUILDING_DLL
30 ifneq (,$(findstring ecpg/ecpglib,$(subdir)))
31 override CPPFLAGS+= -DBUILDING_DLL
34 # required by Python headers
35 ifneq (,$(findstring src/pl/plpython,$(subdir)))
36 override CPPFLAGS+= -DUSE_DL_IMPORT
39 # special win32 headers are provided here
41 override CPPFLAGS+= -I$(includedir_server)/port/win32
44 # it is better to install shared-libraries anyway?
45 # may be overriden with make MAKE_DLL=false install