Remove croak and Perl_croak from gettext triggers. While we could
[PostgreSQL.git] / src / makefiles / Makefile.cygwin
blob0fa936c9b1d817c268ff4609a196358de5902ce4
1 # $PostgreSQL$
2 DLLTOOL= dlltool
3 DLLWRAP= dllwrap
4 ifdef PGXS
5 BE_DLLLIBS= -L$(libdir) -lpostgres
6 else
7 BE_DLLLIBS= -L$(top_builddir)/src/backend -lpostgres
8 endif
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))
14 AROPT = crs
15 DLSUFFIX = .dll
16 CFLAGS_SL =
18 %.dll: %.o
19         $(DLLTOOL) --export-all --output-def $*.def $<
20         $(DLLWRAP) -o $@ --def $*.def $< $(SHLIB_LINK)
21         rm -f $*.def
23 ifneq (,$(findstring backend,$(subdir)))
24 ifeq (,$(findstring conversion_procs,$(subdir)))
25 ifeq (,$(findstring snowball,$(subdir)))
26 override CPPFLAGS+= -DBUILDING_DLL
27 endif
28 endif
29 endif
31 ifneq (,$(findstring timezone,$(subdir)))
32 override CPPFLAGS+= -DBUILDING_DLL
33 endif
35 ifneq (,$(findstring ecpg/ecpglib,$(subdir)))
36 override CPPFLAGS+= -DBUILDING_DLL
37 endif
39 # required by Python headers
40 ifneq (,$(findstring src/pl/plpython,$(subdir)))
41 override CPPFLAGS+= -DUSE_DL_IMPORT
42 endif