5 BE_DLLLIBS= -L$(libdir) -lpostgres
7 BE_DLLLIBS= -L$(top_builddir)/src/backend -lpostgres
10 # linking with -lm or -lc causes program to crash
11 # (see http://sources.redhat.com/cygwin/faq/faq.html#SEC110)
12 LIBS:=$(filter-out -lm -lc, $(LIBS))
19 $(DLLTOOL) --export-all --output-def $*.def $<
20 $(DLLWRAP) -o $@ --def $*.def $< $(SHLIB_LINK)
23 ifneq (,$(findstring backend,$(subdir)))
24 ifeq (,$(findstring conversion_procs,$(subdir)))
25 ifeq (,$(findstring snowball,$(subdir)))
26 override CPPFLAGS+= -DBUILDING_DLL
31 ifneq (,$(findstring timezone,$(subdir)))
32 override CPPFLAGS+= -DBUILDING_DLL
35 ifneq (,$(findstring ecpg/ecpglib,$(subdir)))
36 override CPPFLAGS+= -DBUILDING_DLL
39 # required by Python headers
40 ifneq (,$(findstring src/pl/plpython,$(subdir)))
41 override CPPFLAGS+= -DUSE_DL_IMPORT