44#
55# Copyright (c) 1994, Regents of the University of California
66#
7- # $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.69 2001/04/02 03: 21:23 tgl Exp $
7+ # $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.70 2001/04/04 21:15:56 tgl Exp $
88#
99# -------------------------------------------------------------------------
1010
@@ -43,11 +43,11 @@ else # win
4343
4444# No points for style here. How about encapsulating some of these
4545# commands into variables?
46- postgres : $(DLLOBJS ) $(top_builddir ) /src/utils/dllinit.o postgres.def libpostgres.a
46+ postgres : $(OBJS ) $(top_builddir ) /src/utils/dllinit.o postgres.def libpostgres.a
4747 dlltool --dllname $@ $(X ) --output-exp $@ .exp --def postgres.def
48- gcc -g -o $@ $(X ) -Wl,--base-file,$@ .base $@ .exp $(DLLOBJS ) $(DLLLIBS )
48+ gcc -g -o $@ $(X ) -Wl,--base-file,$@ .base $@ .exp $(OBJS ) $(DLLLIBS )
4949 dlltool --dllname $@ $(X ) --base-file $@ .base --output-exp $@ .exp --def postgres.def
50- gcc -g -o $@ $(X ) $@ .exp $(DLLOBJS ) $(DLLLIBS )
50+ gcc -g -o $@ $(X ) $@ .exp $(OBJS ) $(DLLLIBS )
5151 rm $@ .exp $@ .base
5252
5353endif # win
@@ -64,12 +64,10 @@ $(DIRS:%=%-recursive): $(top_builddir)/src/include/parser/parse.h $(top_builddir
6464
6565ifeq ($(MAKE_DLL ) , true)
6666
67- DLLOBJS := $(OBJS )
67+ postgres.def : $(OBJS )
68+ $(DLLTOOL ) --export-all --output-def $@ $(OBJS )
6869
69- postgres.def : $(DLLOBJS )
70- $(DLLTOOL ) --export-all --output-def $@ $(DLLOBJS )
71-
72- libpostgres.a : $(DLLOBJS ) $(top_builddir ) /src/utils/dllinit.o postgres.def
70+ libpostgres.a : $(OBJS ) $(top_builddir ) /src/utils/dllinit.o postgres.def
7371 $(DLLTOOL ) --dllname postgres.exe --def postgres.def --output-lib $@
7472
7573endif # MAKE_DLL
0 commit comments