Jason Tishler's credit, if it's broken it's my fault ...
#
-# $Header: /cvsroot/pgsql/contrib/spi/Makefile,v 1.19 2001/02/20 19:20:28 petere Exp $
+# $Header: /cvsroot/pgsql/contrib/spi/Makefile,v 1.20 2001/04/04 21:15:56 tgl Exp $
#
subdir = contrib/spi
override CPPFLAGS+= -DREFINT_VERBOSE
endif
+override DLLLIBS := $(BE_DLLLIBS) $(DLLLIBS)
+
+
all: $(MODS) $(SQLS)
%.sql: %.sql.in
#
# Copyright (c) 1994, Regents of the University of California
#
-# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.69 2001/04/02 03:21:23 tgl Exp $
+# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.70 2001/04/04 21:15:56 tgl Exp $
#
#-------------------------------------------------------------------------
# No points for style here. How about encapsulating some of these
# commands into variables?
-postgres: $(DLLOBJS) $(top_builddir)/src/utils/dllinit.o postgres.def libpostgres.a
+postgres: $(OBJS) $(top_builddir)/src/utils/dllinit.o postgres.def libpostgres.a
endif # win
ifeq ($(MAKE_DLL), true)
-DLLOBJS := $(OBJS)
+postgres.def: $(OBJS)
+ $(DLLTOOL) --export-all --output-def $@ $(OBJS)
-postgres.def: $(DLLOBJS)
- $(DLLTOOL) --export-all --output-def $@ $(DLLOBJS)
-
-libpostgres.a: $(DLLOBJS) $(top_builddir)/src/utils/dllinit.o postgres.def
+libpostgres.a: $(OBJS) $(top_builddir)/src/utils/dllinit.o postgres.def
$(DLLTOOL) --dllname postgres.exe --def postgres.def --output-lib $@
endif # MAKE_DLL
-# $Header: /cvsroot/pgsql/src/makefiles/Attic/Makefile.win,v 1.9 2001/02/20 19:20:29 petere Exp $
+# $Header: /cvsroot/pgsql/src/makefiles/Attic/Makefile.win,v 1.10 2001/04/04 21:15:56 tgl Exp $
LDFLAGS+= -g
DLLTOOL= dlltool
DLLWRAP= dllwrap
-DLLLIBS=-L$(top_builddir)/src/backend -lpostgres -lcygipc -lcygwin -lcrypt -lkernel32
+DLLLIBS= -lcygipc -lcrypt
+BE_DLLLIBS= -L$(top_builddir)/src/backend -lpostgres
MK_NO_LORDER=true
MAKE_DLL=true
#MAKE_DLL=false
#
# Makefile for the plpgsql shared object
#
-# $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Makefile,v 1.12 2001/02/20 19:20:29 petere Exp $
+# $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Makefile,v 1.13 2001/04/04 21:15:56 tgl Exp $
#
#-------------------------------------------------------------------------
override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
+override DLLLIBS := $(BE_DLLLIBS) $(DLLLIBS)
+
OBJS = pl_parse.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o
all: all-lib
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.33 2001/02/20 19:20:30 petere Exp $
+# $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.34 2001/04/04 21:15:56 tgl Exp $
#
#-------------------------------------------------------------------------
override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
override CFLAGS += $(CFLAGS_SL)
+override DLLLIBS := $(BE_DLLLIBS) $(DLLLIBS)
+
##
## Prepare for tests