1
# $PostgreSQL: pgsql/src/makefiles/Makefile.cygwin,v 1.6 2004-12-17 03:52:48 tgl Exp $
5
BE_DLLLIBS= -L$(DESTDIR)$(bindir) -lpostgres
7
BE_DLLLIBS= -L$(top_builddir)/src/backend -lpostgres
9
DLLINIT = $(top_builddir)/src/utils/dllinit.o
11
# linking with -lm or -lc causes program to crash
12
# (see http://sources.redhat.com/cygwin/faq/faq.html#SEC110)
13
LIBS:=$(filter-out -lm -lc, $(LIBS))
20
$(DLLTOOL) --export-all --output-def $*.def $<
21
$(DLLWRAP) -o $@ --def $*.def $< $(DLLINIT) $(SHLIB_LINK)
24
ifneq (,$(findstring backend,$(subdir)))
25
ifeq (,$(findstring conversion_procs,$(subdir)))
26
override CPPFLAGS+= -DBUILDING_DLL
30
ifneq (,$(findstring timezone,$(subdir)))
31
override CPPFLAGS+= -DBUILDING_DLL
34
ifneq (,$(findstring ecpg/ecpglib,$(subdir)))
35
override CPPFLAGS+= -DBUILDING_DLL
38
# required by Python headers
39
ifneq (,$(findstring src/pl/plpython,$(subdir)))
40
override CPPFLAGS+= -DUSE_DL_IMPORT