~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/makefiles/Makefile.cygwin

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $PostgreSQL: pgsql/src/makefiles/Makefile.cygwin,v 1.6 2004-12-17 03:52:48 tgl Exp $
 
2
DLLTOOL= dlltool
 
3
DLLWRAP= dllwrap
 
4
ifdef PGXS
 
5
BE_DLLLIBS= -L$(DESTDIR)$(bindir) -lpostgres
 
6
else
 
7
BE_DLLLIBS= -L$(top_builddir)/src/backend -lpostgres
 
8
endif
 
9
DLLINIT = $(top_builddir)/src/utils/dllinit.o
 
10
 
 
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))
 
14
 
 
15
AROPT = crs
 
16
DLSUFFIX = .dll
 
17
CFLAGS_SL =
 
18
 
 
19
%.dll: %.o
 
20
        $(DLLTOOL) --export-all --output-def $*.def $<
 
21
        $(DLLWRAP) -o $@ --def $*.def $< $(DLLINIT) $(SHLIB_LINK)
 
22
        rm -f $*.def
 
23
 
 
24
ifneq (,$(findstring backend,$(subdir)))
 
25
ifeq (,$(findstring conversion_procs,$(subdir)))
 
26
override CPPFLAGS+= -DBUILDING_DLL
 
27
endif
 
28
endif
 
29
 
 
30
ifneq (,$(findstring timezone,$(subdir)))
 
31
override CPPFLAGS+= -DBUILDING_DLL
 
32
endif
 
33
 
 
34
ifneq (,$(findstring ecpg/ecpglib,$(subdir)))
 
35
override CPPFLAGS+= -DBUILDING_DLL
 
36
endif
 
37
 
 
38
# required by Python headers
 
39
ifneq (,$(findstring src/pl/plpython,$(subdir)))
 
40
override CPPFLAGS+= -DUSE_DL_IMPORT
 
41
endif
 
42
 
 
43
sqlmansect = 7