@ -4,7 +4,7 @@
#
#
# Copyright (c) 1994, Regents of the University of California
# Copyright (c) 1994, Regents of the University of California
#
#
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.86 2002/09/04 15:45:50 tgl Exp $
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.87 2002/09/05 18:28:46 petere Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
@ -40,10 +40,16 @@ else # win
postgres : $( OBJS ) $( DLLINIT ) postgres .def libpostgres .a
postgres : $( OBJS ) $( DLLINIT ) postgres .def libpostgres .a
$( DLLTOOL) --dllname $@ $( X) --output-exp $@ .exp --def postgres.def
$( DLLTOOL) --dllname $@ $( X) --output-exp $@ .exp --def postgres.def
$( CC) $( LDFLAGS) -o $@ $( X) -Wl,--base-file,$@ .base $@ .exp $( OBJS) $( DLL LIBS)
$( CC) $( CFLAGS) $( LDFLAGS) -o $@ $( X) -Wl,--base-file,$@ .base $@ .exp $( OBJS) $( LIBS)
$( DLLTOOL) --dllname $@ $( X) --base-file $@ .base --output-exp $@ .exp --def postgres.def
$( DLLTOOL) --dllname $@ $( X) --base-file $@ .base --output-exp $@ .exp --def postgres.def
$( CC) $( LDFLAGS) -o $@ $( X) $@ .exp $( OBJS) $( DLLLIBS)
$( CC) $( CFLAGS) $( LDFLAGS) -o $@ $( X) $@ .exp $( OBJS) $( LIBS)
rm $@ .exp $@ .base
rm -f $@ .exp $@ .base
postgres.def : $( OBJS )
$( DLLTOOL) --export-all --output-def $@ $^
libpostgres.a : postgres .def
$( DLLTOOL) --dllname postgres.exe --def postgres.def --output-lib $@
e n d i f # win
e n d i f # win
@ -57,17 +63,6 @@ $(DIRS:%=%-recursive): $(top_builddir)/src/include/parser/parse.h $(top_builddir
$( MAKE) -C $( subst -recursive,,$@ ) all
$( MAKE) -C $( subst -recursive,,$@ ) all
i f e q ( $( MAKE_DLL ) , t r u e )
postgres.def : $( OBJS )
$( DLLTOOL) --export-all --output-def $@ $( OBJS)
libpostgres.a : $( OBJS ) $( DLLINIT ) postgres .def
$( DLLTOOL) --dllname postgres.exe --def postgres.def --output-lib $@
e n d i f # MAKE_DLL
$(DLLINIT) : $( DLLINIT :%.o =%.c )
$(DLLINIT) : $( DLLINIT :%.o =%.c )
$( MAKE) -C $( @D) $( @F)
$( MAKE) -C $( @D) $( @F)
@ -169,9 +164,7 @@ clean:
$( top_srcdir) /src/include/parser/parse.h \
$( top_srcdir) /src/include/parser/parse.h \
$( top_builddir) /src/include/utils/fmgroids.h
$( top_builddir) /src/include/utils/fmgroids.h
i f e q ( $( PORTNAME ) , w i n )
i f e q ( $( PORTNAME ) , w i n )
i f e q ( $( MAKE_DLL ) , t r u e )
rm -f postgres.dll postgres.def libpostgres.a
rm -f postgres.dll postgres.def libpostgres.a
e n d i f
e n d i f
e n d i f
for i in $( DIRS) ; do $( MAKE) -C $$ i clean || exit; done
for i in $( DIRS) ; do $( MAKE) -C $$ i clean || exit; done