2001-04-04 23:15:56 +02:00
|
|
|
# $Header: /cvsroot/pgsql/src/makefiles/Attic/Makefile.win,v 1.10 2001/04/04 21:15:56 tgl Exp $
|
1999-01-18 13:43:55 +01:00
|
|
|
LDFLAGS+= -g
|
|
|
|
DLLTOOL= dlltool
|
|
|
|
DLLWRAP= dllwrap
|
2001-04-04 23:15:56 +02:00
|
|
|
DLLLIBS= -lcygipc -lcrypt
|
|
|
|
BE_DLLLIBS= -L$(top_builddir)/src/backend -lpostgres
|
1999-01-18 13:43:55 +01:00
|
|
|
MK_NO_LORDER=true
|
|
|
|
MAKE_DLL=true
|
|
|
|
#MAKE_DLL=false
|
2000-09-29 15:36:50 +02:00
|
|
|
# linking with -lm or -lc causes program to crash
|
|
|
|
# (see http://sources.redhat.com/cygwin/faq/faq.html#SEC110)
|
|
|
|
LIBS:=$(filter-out -lm -lc, $(LIBS))
|
1999-01-18 13:43:55 +01:00
|
|
|
|
2000-10-22 00:36:14 +02:00
|
|
|
AROPT = crs
|
|
|
|
DLSUFFIX = .dll
|
|
|
|
CFLAGS_SL =
|
|
|
|
|
1999-01-18 13:43:55 +01:00
|
|
|
%.dll: %.o
|
|
|
|
$(DLLTOOL) --export-all --output-def $*.def $<
|
2000-08-31 18:12:35 +02:00
|
|
|
$(DLLWRAP) -o $@ --def $*.def $< $(top_builddir)/src/utils/dllinit.o $(DLLLIBS)
|
1999-01-18 13:43:55 +01:00
|
|
|
rm -f $*.def
|
1999-03-09 14:39:15 +01:00
|
|
|
|
2000-10-22 00:36:14 +02:00
|
|
|
ifeq ($(findstring backend,$(subdir)), backend)
|
2000-10-20 23:04:27 +02:00
|
|
|
override CPPFLAGS+= -DBUILDING_DLL=1
|
1999-03-09 14:39:15 +01:00
|
|
|
endif
|