File tree 14 files changed +91
-28
lines changed
14 files changed +91
-28
lines changed Original file line number Diff line number Diff line change 1
1
# -*-makefile-*-
2
- # $PostgreSQL: pgsql/src/Makefile.global.in,v 1.196 2004/10/01 02:06:52 neilc Exp $
2
+ # $PostgreSQL: pgsql/src/Makefile.global.in,v 1.197 2004/10/05 19:30:19 momjian Exp $
3
3
4
4
# ------------------------------------------------------------------------------
5
5
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -386,6 +386,23 @@ TAS = @TAS@
386
386
% .bz2 : %
387
387
$(BZIP2 ) -f $<
388
388
389
+ ifeq ($(PORTNAME ) ,win32)
390
+ # Build rules to add versioninfo resources to win32 binaries
391
+ WIN32RES += win32ver.o
392
+ ifeq ($(PGFILESHLIB ) ,1)
393
+ PGFTYPE =VFT_DLL
394
+ else
395
+ PGFTYPE =VFT_APP
396
+ endif
397
+ ifneq (,$(PGAPPICON ) )
398
+ PGICOSTR =$(subst /,\/,IDI_ICON ICON \"$(top_builddir ) /src/port/$(PGAPPICON ) .ico\")
399
+ endif
400
+ win32ver.rc : $(top_builddir ) /src/port/win32ver.rc
401
+ sed -e " s;FILEDESC;$( PGFILEDESC) ;" -e " s/VFT_APP/$( PGFTYPE) /" -e " s/_ICO_/$( PGICOSTR) /" $(top_builddir ) /src/port/win32ver.rc > win32ver.rc
402
+ win32ver.o : win32ver.rc
403
+ windres -i win32ver.rc -o win32ver.o --include-dir=$(top_builddir ) /src/include
404
+ rm -f win32ver.rc
405
+ endif
389
406
390
407
ifndef PGXS
391
408
Original file line number Diff line number Diff line change 4
4
#
5
5
# Copyright (c) 1994, Regents of the University of California
6
6
#
7
- # $PostgreSQL: pgsql/src/backend/Makefile,v 1.105 2004/10/04 13:43:54 momjian Exp $
7
+ # $PostgreSQL: pgsql/src/backend/Makefile,v 1.106 2004/10/05 19:30:20 momjian Exp $
8
8
#
9
9
# -------------------------------------------------------------------------
10
10
11
+ PGFILEDESC = "PostgreSQL Database Backend"
11
12
subdir = src/backend
12
13
top_builddir = ../..
13
14
include $(top_builddir ) /src/Makefile.global
@@ -60,11 +61,11 @@ endif # cygwin
60
61
61
62
ifeq ($(PORTNAME ) , win32)
62
63
63
- postgres : $(OBJS ) $(DLLINIT ) postgres.def libpostgres.a
64
+ postgres : $(OBJS ) $(DLLINIT ) postgres.def libpostgres.a $( WIN32RES )
64
65
$(DLLTOOL ) --dllname $@ $(X ) --output-exp $@ .exp --def postgres.def
65
- $(CC ) $(CFLAGS ) $(LDFLAGS ) -o $@ $(X ) -Wl,--base-file,$@ .base $@ .exp $(OBJS ) $(LIBS )
66
+ $(CC ) $(CFLAGS ) $(LDFLAGS ) -o $@ $(X ) -Wl,--base-file,$@ .base $@ .exp $(OBJS ) $(WIN32RES ) $( LIBS )
66
67
$(DLLTOOL ) --dllname $@ $(X ) --base-file $@ .base --output-exp $@ .exp --def postgres.def
67
- $(CC ) $(CFLAGS ) $(LDFLAGS ) -o $@ $(X ) $@ .exp $(OBJS ) $(LIBS )
68
+ $(CC ) $(CFLAGS ) $(LDFLAGS ) -o $@ $(X ) $@ .exp $(OBJS ) $(WIN32RES ) $( LIBS )
68
69
rm -f $@ .exp $@ .base
69
70
70
71
postgres.def : $(OBJS )
Original file line number Diff line number Diff line change 5
5
# Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
6
6
# Portions Copyright (c) 1994, Regents of the University of California
7
7
#
8
- # $PostgreSQL: pgsql/src/bin/initdb/Makefile,v 1.46 2004/10/04 18:05:53 momjian Exp $
8
+ # $PostgreSQL: pgsql/src/bin/initdb/Makefile,v 1.47 2004/10/05 19:30:21 momjian Exp $
9
9
#
10
10
# -------------------------------------------------------------------------
11
11
12
+ PGFILEDESC = "initdb - initialize a new database cluster"
12
13
subdir = src/bin/initdb
13
14
top_builddir = ../../..
14
15
include $(top_builddir ) /src/Makefile.global
15
16
16
17
override CPPFLAGS := -DFRONTEND -I$(libpq_srcdir ) $(CPPFLAGS )
17
18
18
- OBJS = initdb.o
19
+ OBJS = initdb.o $( WIN32RES )
19
20
20
21
all : submake-libpq submake-libpgport initdb
21
22
Original file line number Diff line number Diff line change 4
4
#
5
5
# Copyright (c) 1998-2002, PostgreSQL Global Development Group
6
6
#
7
- # $PostgreSQL: pgsql/src/bin/pg_controldata/Makefile,v 1.10 2004/10/04 13:43:55 momjian Exp $
7
+ # $PostgreSQL: pgsql/src/bin/pg_controldata/Makefile,v 1.11 2004/10/05 19:30:21 momjian Exp $
8
8
#
9
9
# -------------------------------------------------------------------------
10
10
11
+ PGFILEDESC = "pg_controldata - reads the data from pg_control"
11
12
subdir = src/bin/pg_controldata
12
13
top_builddir = ../../..
13
14
include $(top_builddir ) /src/Makefile.global
14
15
15
16
override CPPFLAGS += -DFRONTEND
16
17
17
- OBJS = pg_controldata.o pg_crc.o
18
+ OBJS = pg_controldata.o pg_crc.o $( WIN32RES )
18
19
19
20
all : submake-libpgport pg_controldata
20
21
Original file line number Diff line number Diff line change 5
5
# Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
6
6
# Portions Copyright (c) 1994, Regents of the University of California
7
7
#
8
- # $PostgreSQL: pgsql/src/bin/pg_ctl/Makefile,v 1.17 2004/10/04 18:05:54 momjian Exp $
8
+ # $PostgreSQL: pgsql/src/bin/pg_ctl/Makefile,v 1.18 2004/10/05 19:30:22 momjian Exp $
9
9
#
10
10
# -------------------------------------------------------------------------
11
11
12
+ PGFILEDESC = "pg_ctl - starts/stops/restarts the PostgreSQL server"
12
13
subdir = src/bin/pg_ctl
13
14
top_builddir = ../../..
14
15
include $(top_builddir ) /src/Makefile.global
15
16
16
17
override CPPFLAGS := -DFRONTEND -DDEF_PGPORT=$(DEF_PGPORT ) -I$(libpq_srcdir ) $(CPPFLAGS )
17
18
18
- OBJS = pg_ctl.o
19
+ OBJS = pg_ctl.o $( WIN32RES )
19
20
20
21
all : submake-libpq submake-libpgport pg_ctl
21
22
Original file line number Diff line number Diff line change 5
5
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
6
6
# Portions Copyright (c) 1994, Regents of the University of California
7
7
#
8
- # $PostgreSQL: pgsql/src/bin/pg_dump/Makefile,v 1.55 2004/10/04 20:32:58 momjian Exp $
8
+ # $PostgreSQL: pgsql/src/bin/pg_dump/Makefile,v 1.56 2004/10/05 19:30:23 momjian Exp $
9
9
#
10
10
# -------------------------------------------------------------------------
11
11
12
+ PGFILEDESC = "pg_dump/pg_restore/pg_dumpall - backup and restore PostgreSQL databases"
12
13
subdir = src/bin/pg_dump
13
14
top_builddir = ../../..
14
15
include $(top_builddir ) /src/Makefile.global
@@ -17,7 +18,7 @@ override CPPFLAGS := -DFRONTEND -I$(libpq_srcdir) $(CPPFLAGS)
17
18
18
19
OBJS = pg_backup_archiver.o pg_backup_db.o pg_backup_custom.o \
19
20
pg_backup_files.o pg_backup_null.o pg_backup_tar.o \
20
- dumputils.o
21
+ dumputils.o $( WIN32RES )
21
22
22
23
EXTRA_OBJS = $(top_builddir ) /src/backend/parser/keywords.o
23
24
@@ -35,7 +36,7 @@ pg_restore: pg_restore.o $(OBJS) $(libpq_builddir)/libpq.a
35
36
$(CC ) $(CFLAGS ) pg_restore.o $(OBJS ) $(EXTRA_OBJS ) $(libpq ) $(LDFLAGS ) $(LIBS ) -o $@ $(X )
36
37
37
38
pg_dumpall : pg_dumpall.o dumputils.o $(libpq_builddir ) /libpq.a
38
- $(CC ) $(CFLAGS ) pg_dumpall.o dumputils.o $(EXTRA_OBJS ) $(libpq ) $(LDFLAGS ) $(LIBS ) -o $@ $(X )
39
+ $(CC ) $(CFLAGS ) pg_dumpall.o dumputils.o $(EXTRA_OBJS ) $(WIN32RES ) $( libpq ) $(LDFLAGS ) $(LIBS ) -o $@ $(X )
39
40
40
41
.PHONY : submake-backend
41
42
submake-backend :
Original file line number Diff line number Diff line change 4
4
#
5
5
# Copyright (c) 1998-2002, PostgreSQL Global Development Group
6
6
#
7
- # $PostgreSQL: pgsql/src/bin/pg_resetxlog/Makefile,v 1.12 2004/10/04 13:43:57 momjian Exp $
7
+ # $PostgreSQL: pgsql/src/bin/pg_resetxlog/Makefile,v 1.13 2004/10/05 19:30:23 momjian Exp $
8
8
#
9
9
# -------------------------------------------------------------------------
10
10
11
+ PGFILEDESC = "pg_resetxlog - reset PostgreSQL WAL log"
11
12
subdir = src/bin/pg_resetxlog
12
13
top_builddir = ../../..
13
14
include $(top_builddir ) /src/Makefile.global
14
15
15
16
override CPPFLAGS += -DFRONTEND
16
17
17
- OBJS = pg_resetxlog.o pg_crc.o
18
+ OBJS = pg_resetxlog.o pg_crc.o $( WIN32RES )
18
19
19
20
all : submake-libpgport pg_resetxlog
20
21
Original file line number Diff line number Diff line change 6
6
#
7
7
# -------------------------------------------------------------------------
8
8
9
+ PGFILEDESC = "Eventlog message formatter"
10
+ PGFILESHLIB = 1
9
11
subdir = src/bin/pgevent
10
12
top_builddir = ../../..
11
13
include $(top_builddir ) /src/Makefile.global
@@ -20,19 +22,19 @@ install: all install-lib
20
22
pgevent.dll : $(OBJS ) pgevent.def
21
23
dllwrap --def pgevent.def -o $(NAME ) $(OBJS )
22
24
23
- pgmsgevent.o : pgmsgevent.rc
24
- windres pgmsgevent.rc -o pgmsgevent.o
25
+ pgmsgevent.o : pgmsgevent.rc win32ver.rc
26
+ windres pgmsgevent.rc -o pgmsgevent.o --include-dir= $( top_builddir ) /src/include
25
27
26
28
all-lib : $(NAME )
27
29
28
30
install-lib : $(NAME )
29
31
$(INSTALL_STLIB ) $< $(DESTDIR )$(libdir ) /$<
30
-
32
+
31
33
uninstall-lib :
32
34
rm -f $(DESTDIR )$(libdir ) /$(NAME )
33
35
34
36
clean distclean :
35
- rm -f $(OBJS ) $(NAME )
37
+ rm -f $(OBJS ) $(NAME ) win32ver.rc
36
38
37
39
clean-lib :
38
40
rm -f $(NAME )
Original file line number Diff line number Diff line change 1
1
LANGUAGE 0x9,0x1
2
2
1 11 MSG00001.bin
3
+
4
+ #include "win32ver.rc"
Original file line number Diff line number Diff line change 5
5
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
6
6
# Portions Copyright (c) 1994, Regents of the University of California
7
7
#
8
- # $PostgreSQL: pgsql/src/bin/psql/Makefile,v 1.50 2004/10/04 20:36:10 momjian Exp $
8
+ # $PostgreSQL: pgsql/src/bin/psql/Makefile,v 1.51 2004/10/05 19:30:24 momjian Exp $
9
9
#
10
10
# -------------------------------------------------------------------------
11
11
12
+ PGFILEDESC = "psql - the PostgreSQL interactive terminal"
13
+ PGAPPICON =win32
12
14
subdir = src/bin/psql
13
15
top_builddir = ../../..
14
16
include $(top_builddir ) /src/Makefile.global
@@ -19,7 +21,7 @@ override CPPFLAGS := -DFRONTEND -I$(libpq_srcdir) $(CPPFLAGS)
19
21
20
22
OBJS = command.o common.o help.o input.o stringutils.o mainloop.o copy.o \
21
23
startup.o prompt.o variables.o large_obj.o print.o describe.o \
22
- psqlscan.o tab-complete.o mbprint.o
24
+ psqlscan.o tab-complete.o mbprint.o $( WIN32RES )
23
25
24
26
FLEXFLAGS = -Cfe
25
27
Original file line number Diff line number Diff line change 5
5
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
6
6
# Portions Copyright (c) 1994, Regents of the University of California
7
7
#
8
- # $PostgreSQL: pgsql/src/bin/scripts/Makefile,v 1.30 2004/10/04 18:05:55 momjian Exp $
8
+ # $PostgreSQL: pgsql/src/bin/scripts/Makefile,v 1.31 2004/10/05 19:30:25 momjian Exp $
9
9
#
10
10
# -------------------------------------------------------------------------
11
11
12
+ PGFILEDESC = "PostgreSQL utility"
12
13
subdir = src/bin/scripts
13
14
top_builddir = ../../..
14
15
include $(top_builddir ) /src/Makefile.global
@@ -19,7 +20,7 @@ override CPPFLAGS := -DFRONTEND -I$(top_srcdir)/src/bin/pg_dump -I$(top_srcdir)/
19
20
20
21
all : submake-libpq submake-backend $(PROGRAMS )
21
22
22
- % : % .o
23
+ % : % .o $( WIN32RES )
23
24
$(CC ) $(CFLAGS ) $^ $(libpq ) $(LDFLAGS ) $(LIBS ) -o $@ $(X )
24
25
25
26
createdb : createdb.o common.o dumputils.o $(top_builddir ) /src/backend/parser/keywords.o
@@ -61,5 +62,5 @@ uninstall:
61
62
62
63
clean distclean maintainer-clean :
63
64
rm -f $(addsuffix $(X ) , $(PROGRAMS ) ) $(addsuffix .o, $(PROGRAMS ) )
64
- rm -f common.o dumputils.o print.o mbprint.o
65
+ rm -f common.o dumputils.o print.o mbprint.o $( WIN32RES )
65
66
rm -f dumputils.c print.c mbprint.c
Original file line number Diff line number Diff line change 4
4
#
5
5
# Copyright (c) 1998-2002, PostgreSQL Global Development Group
6
6
#
7
- # $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.108 2004/10/04 13:43:58 momjian Exp $
7
+ # $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.109 2004/10/05 19:30:25 momjian Exp $
8
8
#
9
9
# -------------------------------------------------------------------------
10
10
11
+ PGFILEDESC = "ecpg - embedded SQL precompiler for C"
11
12
subdir = src/interfaces/ecpg/preproc
12
13
top_builddir = ../../../..
13
14
include $(top_builddir ) /src/Makefile.global
@@ -25,8 +26,9 @@ override CFLAGS += -Wno-error
25
26
endif
26
27
override CFLAGS += $(PTHREAD_CFLAGS )
27
28
28
- OBJS = preproc.o type.o ecpg.o ecpg_keywords.o output.o\
29
- keywords.o c_keywords.o ../ecpglib/typename.o descriptor.o variable.o
29
+ OBJS = preproc.o type.o ecpg.o ecpg_keywords.o output.o \
30
+ keywords.o c_keywords.o ../ecpglib/typename.o descriptor.o variable.o \
31
+ $(WIN32RES )
30
32
31
33
all : submake-libpgport ecpg
32
34
Original file line number Diff line number Diff line change
1
+ #include <winver.h>
2
+ #include "pg_config.h"
3
+
4
+ VS_VERSION_INFO VERSIONINFO
5
+ FILEVERSION 7,4,999,999
6
+ PRODUCTVERSION 7,4,999,999
7
+ FILEFLAGSMASK 0x17L
8
+ FILEFLAGS 0x0L
9
+ FILEOS VOS_NT_WINDOWS32
10
+ FILETYPE VFT_APP
11
+ FILESUBTYPE 0x0L
12
+ BEGIN
13
+ BLOCK "StringFileInfo"
14
+ BEGIN
15
+ BLOCK "000004b0"
16
+ BEGIN
17
+ VALUE "CompanyName", "PostgreSQL Global Development Group"
18
+ VALUE "FileDescription", FILEDESC
19
+ VALUE "FileVersion", PG_VERSION
20
+ VALUE "LegalCopyright", "Portions Copyright (C) 1996-2004 PostgreSQL Global Development Group. Portions Copyright (C) 1994, Regents of the University of California."
21
+ VALUE "ProductName", "PostgreSQL"
22
+ VALUE "ProductVersion", PG_VERSION
23
+ END
24
+ END
25
+ BLOCK "VarFileInfo"
26
+ BEGIN
27
+ VALUE "Translation", 0x0, 1200
28
+ END
29
+ END
30
+
31
+ _ICO_
You can’t perform that action at this time.
0 commit comments