2002-07-27 22:10:05 +02:00
|
|
|
# $Header: /cvsroot/pgsql/src/makefiles/Attic/Makefile.win,v 1.17 2002/07/27 20:10:05 petere 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
|
2002-07-27 22:10:05 +02:00
|
|
|
DLLINIT = $(top_builddir)/src/utils/dllinit.o
|
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 $<
|
2002-07-16 07:46:36 +02:00
|
|
|
$(DLLWRAP) -o $@ --def $*.def $< $(DLLINIT) $(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
|
2001-05-03 18:07:52 +02:00
|
|
|
|
|
|
|
ifeq ($(findstring ecpg/lib,$(subdir)), ecpg/lib)
|
|
|
|
override CPPFLAGS+= -DBUILDING_DLL=1
|
|
|
|
endif
|
2001-05-25 16:28:58 +02:00
|
|
|
|
2001-09-06 04:58:33 +02:00
|
|
|
ifeq ($(findstring interfaces/libpq++,$(subdir)), interfaces/libpq++)
|
|
|
|
override CPPFLAGS+= -DBUILDING_DLL=1
|
|
|
|
endif
|
|
|
|
|
2001-05-25 17:48:33 +02:00
|
|
|
ifeq ($(findstring src/pl/plpython,$(subdir)), src/pl/plpython)
|
|
|
|
override CPPFLAGS+= -DUSE_DL_IMPORT
|
|
|
|
endif
|
|
|
|
|
2001-05-25 16:28:58 +02:00
|
|
|
override javadir := '$(shell cygpath -w $(javadir))'
|
2001-08-29 21:14:40 +02:00
|
|
|
|
|
|
|
sqlmansect = 7
|