1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-10 17:42:29 +03:00

Add Win32 version info to client binaries.

Magnus Hagander
This commit is contained in:
Bruce Momjian
2004-10-05 19:30:25 +00:00
parent abef6b5162
commit da67c919d9
14 changed files with 91 additions and 28 deletions

View File

@@ -4,10 +4,11 @@
#
# Copyright (c) 1994, Regents of the University of California
#
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.105 2004/10/04 13:43:54 momjian Exp $
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.106 2004/10/05 19:30:20 momjian Exp $
#
#-------------------------------------------------------------------------
PGFILEDESC = "PostgreSQL Database Backend"
subdir = src/backend
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
@@ -60,11 +61,11 @@ endif # cygwin
ifeq ($(PORTNAME), win32)
postgres: $(OBJS) $(DLLINIT) postgres.def libpostgres.a
postgres: $(OBJS) $(DLLINIT) postgres.def libpostgres.a $(WIN32RES)
$(DLLTOOL) --dllname $@$(X) --output-exp $@.exp --def postgres.def
$(CC) $(CFLAGS) $(LDFLAGS) -o $@$(X) -Wl,--base-file,$@.base $@.exp $(OBJS) $(LIBS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@$(X) -Wl,--base-file,$@.base $@.exp $(OBJS) $(WIN32RES) $(LIBS)
$(DLLTOOL) --dllname $@$(X) --base-file $@.base --output-exp $@.exp --def postgres.def
$(CC) $(CFLAGS) $(LDFLAGS) -o $@$(X) $@.exp $(OBJS) $(LIBS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@$(X) $@.exp $(OBJS) $(WIN32RES) $(LIBS)
rm -f $@.exp $@.base
postgres.def: $(OBJS)