1 # $PostgreSQL: pgsql/src/makefiles/Makefile.cygwin,v 1.12 2010/01/15 21:43:21 tgl Exp $
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 ifeq (,$(findstring walreceiver,$(subdir)))
27 override CPPFLAGS+= -DBUILDING_DLL
33 ifneq (,$(findstring timezone,$(subdir)))
34 override CPPFLAGS+= -DBUILDING_DLL
37 ifneq (,$(findstring ecpg/ecpglib,$(subdir)))
38 override CPPFLAGS+= -DBUILDING_DLL
41 # required by Python headers
42 ifneq (,$(findstring src/pl/plpython,$(subdir)))
43 override CPPFLAGS+= -DUSE_DL_IMPORT