Add alternative expected output files for cs_CZ locale for btree_gist and
[PostgreSQL.git] / src / makefiles / Makefile.win32
blob3605b0b63592e35b77dadc4e2cd8a538aca4d40f
1 # $PostgreSQL$
3 # Use replacement include files for those missing on Win32
4 override CPPFLAGS+="-I$(top_srcdir)/src/include/port/win32"
6 ifdef PGXS
7 BE_DLLLIBS= -L$(libdir) -lpostgres
8 else
9 BE_DLLLIBS= -L$(top_builddir)/src/backend -lpostgres
10 endif
12 AROPT = crs
13 DLSUFFIX = .dll
14 CFLAGS_SL =
16 %.dll: %.o
17         $(DLLTOOL) --export-all --output-def $*.def $<
18         $(DLLWRAP) -o $@ --def $*.def $< $(SHLIB_LINK)
19         rm -f $*.def
21 ifneq (,$(findstring backend,$(subdir)))
22 ifeq (,$(findstring conversion_procs,$(subdir)))
23 ifeq (,$(findstring snowball,$(subdir)))
24 override CPPFLAGS+= -DBUILDING_DLL
25 endif
26 endif
27 endif
29 ifneq (,$(findstring timezone,$(subdir)))
30 override CPPFLAGS+= -DBUILDING_DLL
31 endif
33 ifneq (,$(findstring ecpg/ecpglib,$(subdir)))
34 override CPPFLAGS+= -DBUILDING_DLL
35 endif
37 # required by Python headers
38 ifneq (,$(findstring src/pl/plpython,$(subdir)))
39 override CPPFLAGS+= -DUSE_DL_IMPORT
40 endif
42 # special win32 headers are provided here
43 ifdef PGXS
44 override CPPFLAGS+= -I$(includedir_server)/port/win32
45 endif
47 # it is better to install shared-libraries anyway?
48 # may be overriden with make MAKE_DLL=false install
49 ifndef MAKE_DLL
50 MAKE_DLL        = true
51 endif
54 # Build rules to add versioninfo resources to win32 binaries
56 WIN32RES += win32ver.o
57 ifeq ($(PGFILESHLIB),1)
58 PGFTYPE = VFT_DLL
59 else
60 PGFTYPE = VFT_APP
61 endif
62 ifneq (,$(PGAPPICON))
63 PGICOSTR = $(subst /,\/,IDI_ICON ICON \"$(top_builddir)/src/port/$(PGAPPICON).ico\")
64 endif
66 win32ver.rc: $(top_srcdir)/src/port/win32ver.rc
67         sed -e 's;FILEDESC;$(PGFILEDESC);' -e 's;VFT_APP;$(PGFTYPE);' -e 's;_ICO_;$(PGICOSTR);' -e 's;\(VERSION.*\),0 *$$;\1,'`date '+%y%j' | sed 's/^0*//'`';' $< >$@
69 win32ver.o: win32ver.rc
70         $(WINDRES) -i $< -o $@ --include-dir=$(top_builddir)/src/include --include-dir=$(srcdir)