diff options
author | Noah Misch <noah@leadboat.com> | 2014-07-14 14:07:52 -0400 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2014-07-14 14:07:52 -0400 |
commit | 0ffc201a51395ca71fe429ef86c872850a5850ee (patch) | |
tree | 982984e5beda2ea095400c604acf519b5103e82e /src | |
parent | c0e8fb6148ce9c539f6fbde71faa955cab85f214 (diff) | |
download | postgresql-0ffc201a51395ca71fe429ef86c872850a5850ee.tar.gz postgresql-0ffc201a51395ca71fe429ef86c872850a5850ee.zip |
Add file version information to most installed Windows binaries.
Prominent binaries already had this metadata. A handful of minor
binaries, such as pg_regress.exe, still lack it; efforts to eliminate
such exceptions are welcome.
Michael Paquier, reviewed by MauMau.
Diffstat (limited to 'src')
40 files changed, 61 insertions, 15 deletions
diff --git a/src/backend/replication/libpqwalreceiver/Makefile b/src/backend/replication/libpqwalreceiver/Makefile index 774adaa24d4..6c95c1ce97b 100644 --- a/src/backend/replication/libpqwalreceiver/Makefile +++ b/src/backend/replication/libpqwalreceiver/Makefile @@ -14,9 +14,10 @@ include $(top_builddir)/src/Makefile.global override CPPFLAGS := -I$(srcdir) -I$(libpq_srcdir) $(CPPFLAGS) -OBJS = libpqwalreceiver.o +OBJS = libpqwalreceiver.o $(WIN32RES) SHLIB_LINK = $(libpq) SHLIB_PREREQS = submake-libpq +PGFILEDESC = "libpqwalreceiver - receive WAL during streaming replication" NAME = libpqwalreceiver all: all-shared-lib diff --git a/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile index d71ca16c000..fa65eba9fd7 100644 --- a/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = ascii_and_mic +PGFILEDESC = "ascii <-> mic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile index 78c384a6b68..e7cd8e8162a 100644 --- a/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = cyrillic_and_mic +PGFILEDESC = "cyrillic <-> mic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile b/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile index 199e65525a0..fe0221cc34b 100644 --- a/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc2004_sjis2004 +PGFILEDESC = "euc2004 <-> sjis2004 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile index a7406564291..cb6a83f5841 100644 --- a/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_cn_and_mic +PGFILEDESC = "euc_cn <-> mic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile b/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile index fa167e98afd..0b1de0e48dc 100644 --- a/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_jp_and_sjis +PGFILEDESC = "euc_jp <-> sjis text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile index 5ce5548dc34..d43b082bd5f 100644 --- a/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_kr_and_mic +PGFILEDESC = "euc_kr <-> mic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile b/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile index 76254354342..5ac238908da 100644 --- a/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile @@ -8,6 +8,7 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_tw_and_big5 +PGFILEDESC = "euc_tw <-> big5 text conversions" SRCS += big5.c OBJS += big5.o diff --git a/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile b/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile index 7587b66cad4..5e48dae2e8a 100644 --- a/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile +++ b/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = latin2_and_win1250 +PGFILEDESC = "latin2 <-> win1250 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile index ec887406b9b..c404738d2f6 100644 --- a/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = latin_and_mic +PGFILEDESC = "latin <-> mic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/proc.mk b/src/backend/utils/mb/conversion_procs/proc.mk index 77322a452ef..e0a3b74b25e 100644 --- a/src/backend/utils/mb/conversion_procs/proc.mk +++ b/src/backend/utils/mb/conversion_procs/proc.mk @@ -1,5 +1,5 @@ SRCS += $(NAME).c -OBJS += $(NAME).o +OBJS += $(NAME).o $(WIN32RES) rpath = diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile index a4b1b3ff5d0..7bd68e209b7 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_ascii +PGFILEDESC = "utf8 <-> ascii text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile index df728369a7a..2c274f3d9cc 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_big5 +PGFILEDESC = "utf8 <-> big5 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile index 410037c3784..725281ec967 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_cyrillic +PGFILEDESC = "utf8 <-> cyrillic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile index 58c513a2246..c6c537cffc8 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc2004 +PGFILEDESC = "utf8 <-> euc2004 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile index 053162e245f..9d0e157a758 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_cn +PGFILEDESC = "utf8 <-> euc_cn text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile index 6a7678d0ec8..c5f55784363 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_jp +PGFILEDESC = "utf8 <-> euc_jp text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile index 13935abaf7b..a7eff9e9e17 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_kr +PGFILEDESC = "utf8 <-> euc_kr text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile index 7b9b833dc6e..59f42dc2b7d 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_tw +PGFILEDESC = "utf8 <-> euc_tw text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile index 1fb3e5a67a1..17bc18c373b 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_gb18030 +PGFILEDESC = "utf8 <-> gb18030 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile index 240fe1458dc..eb20638440f 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_gbk +PGFILEDESC = "utf8 <-> gbk text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile index c02323e8d82..6fd0dd27bf5 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_iso8859 +PGFILEDESC = "utf8 <-> iso8859 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile index c2fac2eda8f..02982847c5d 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_iso8859_1 +PGFILEDESC = "utf8 <-> iso8859_1 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile index bdd39fb5420..e48ef3e3ea7 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_johab +PGFILEDESC = "utf8 <-> johab text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile index 7f4dd0c67fd..448c5d4b64a 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_sjis +PGFILEDESC = "utf8 <-> sjis text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile index ed0bfde801d..f7072a4dc5f 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_sjis2004 +PGFILEDESC = "utf8 <-> sjis2004 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile index 5c09c7e6f64..cc6e0a9c971 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_uhc +PGFILEDESC = "utf8 <-> uhc text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile index 31c510bab78..d8b18fbf334 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_win +PGFILEDESC = "utf8 <-> win text conversions" include $(srcdir)/../proc.mk diff --git a/src/bin/pg_basebackup/Makefile b/src/bin/pg_basebackup/Makefile index c6322ec26d4..90d19e77f3f 100644 --- a/src/bin/pg_basebackup/Makefile +++ b/src/bin/pg_basebackup/Makefile @@ -9,7 +9,7 @@ # #------------------------------------------------------------------------- -PGFILEDESC = "pg_basebackup - takes a streaming base backup of a PostgreSQL instance" +PGFILEDESC = "pg_basebackup/pg_receivexlog/pg_recvlogical - streaming WAL and backup receivers" PGAPPICON=win32 subdir = src/bin/pg_basebackup diff --git a/src/interfaces/ecpg/compatlib/Makefile b/src/interfaces/ecpg/compatlib/Makefile index db704d7de19..1e2d6988706 100644 --- a/src/interfaces/ecpg/compatlib/Makefile +++ b/src/interfaces/ecpg/compatlib/Makefile @@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/compatlib top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "ECPG compat - compatibility library for ECPG" NAME= ecpg_compat SO_MAJOR_VERSION= 3 SO_MINOR_VERSION= 7 @@ -30,7 +31,7 @@ SHLIB_EXPORTS = exports.txt # Need to recompile any libpgport object files LIBS := $(filter-out -lpgport, $(LIBS)) -OBJS= informix.o $(filter snprintf.o, $(LIBOBJS)) +OBJS= informix.o $(filter snprintf.o, $(LIBOBJS)) $(WIN32RES) PKG_CONFIG_REQUIRES_PRIVATE = libecpg libpgtypes diff --git a/src/interfaces/ecpg/ecpglib/Makefile b/src/interfaces/ecpg/ecpglib/Makefile index 9f4582e2291..c99faac42e4 100644 --- a/src/interfaces/ecpg/ecpglib/Makefile +++ b/src/interfaces/ecpg/ecpglib/Makefile @@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/ecpglib top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "ECPG - embedded SQL in C" NAME= ecpg SO_MAJOR_VERSION= 6 SO_MINOR_VERSION= 7 @@ -26,7 +27,7 @@ LIBS := $(filter-out -lpgport, $(LIBS)) OBJS= execute.o typename.o descriptor.o sqlda.o data.o error.o prepare.o memory.o \ connect.o misc.o path.o pgstrcasecmp.o \ - $(filter snprintf.o strlcpy.o win32setlocale.o isinf.o, $(LIBOBJS)) + $(filter snprintf.o strlcpy.o win32setlocale.o isinf.o, $(LIBOBJS)) $(WIN32RES) # thread.c is needed only for non-WIN32 implementation of path.c ifneq ($(PORTNAME), win32) diff --git a/src/interfaces/ecpg/pgtypeslib/Makefile b/src/interfaces/ecpg/pgtypeslib/Makefile index d73c37efd29..436855e9843 100644 --- a/src/interfaces/ecpg/pgtypeslib/Makefile +++ b/src/interfaces/ecpg/pgtypeslib/Makefile @@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/pgtypeslib top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "pgtypes - library for data type mapping" NAME= pgtypes SO_MAJOR_VERSION= 3 SO_MINOR_VERSION= 6 @@ -30,7 +31,7 @@ SHLIB_EXPORTS = exports.txt OBJS= numeric.o datetime.o common.o dt_common.o timestamp.o interval.o \ pgstrcasecmp.o \ - $(filter rint.o snprintf.o, $(LIBOBJS)) + $(filter rint.o snprintf.o, $(LIBOBJS)) $(WIN32RES) all: all-lib diff --git a/src/interfaces/ecpg/test/Makefile b/src/interfaces/ecpg/test/Makefile index d359fce7b5c..56f6a17c34e 100644 --- a/src/interfaces/ecpg/test/Makefile +++ b/src/interfaces/ecpg/test/Makefile @@ -13,6 +13,8 @@ override CPPFLAGS := \ '-DDLSUFFIX="$(DLSUFFIX)"' \ $(CPPFLAGS) +PGFILEDESC = "ECPG Test - regression tests for ECPG" + # where to find psql for testing an existing installation PSQLDIR = $(bindir) @@ -41,13 +43,13 @@ clean distclean maintainer-clean: $(MAKE) -C compat_informix $@ $(MAKE) -C thread $@ rm -rf tmp_check results log - rm -f pg_regress regression.diffs regression.out pg_regress_ecpg.o + rm -f pg_regress regression.diffs regression.out pg_regress_ecpg.o $(WIN32RES) # Build regression test driver all: pg_regress$(X) -pg_regress$(X): pg_regress_ecpg.o $(top_builddir)/src/test/regress/pg_regress.o +pg_regress$(X): pg_regress_ecpg.o $(WIN32RES) $(top_builddir)/src/test/regress/pg_regress.o $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_EX) $^ $(LIBS) -o $@ $(top_builddir)/src/test/regress/pg_regress.o: diff --git a/src/makefiles/Makefile.win32 b/src/makefiles/Makefile.win32 index 9cb84f2502b..73f0767229e 100644 --- a/src/makefiles/Makefile.win32 +++ b/src/makefiles/Makefile.win32 @@ -75,5 +75,5 @@ win32ver.o: win32ver.rc $(WINDRES) -i $< -o $@ --include-dir=$(top_builddir)/src/include --include-dir=$(srcdir) # Rule for building a shared library from a single .o file -%.dll: %.o - $(CC) $(CFLAGS) -shared -o $@ $< -Wl,--export-all-symbols $(LDFLAGS) $(LDFLAGS_SL) $(BE_DLLLIBS) +%.dll: %.o $(WIN32RES) + $(CC) $(CFLAGS) -shared -o $@ $^ -Wl,--export-all-symbols $(LDFLAGS) $(LDFLAGS_SL) $(BE_DLLLIBS) diff --git a/src/makefiles/pgxs.mk b/src/makefiles/pgxs.mk index 8cf229e23cd..cc69c1be50f 100644 --- a/src/makefiles/pgxs.mk +++ b/src/makefiles/pgxs.mk @@ -224,7 +224,7 @@ endif # MODULE_big clean: ifdef MODULES - rm -f $(addsuffix $(DLSUFFIX), $(MODULES)) $(addsuffix .o, $(MODULES)) + rm -f $(addsuffix $(DLSUFFIX), $(MODULES)) $(addsuffix .o, $(MODULES)) $(WIN32RES) endif ifdef DATA_built rm -f $(DATA_built) diff --git a/src/pl/plperl/GNUmakefile b/src/pl/plperl/GNUmakefile index 1e800a344c8..a04a2d3456d 100644 --- a/src/pl/plperl/GNUmakefile +++ b/src/pl/plperl/GNUmakefile @@ -26,10 +26,11 @@ override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS) -I$(perl_archlibexp)/CORE rpathdir = $(perl_archlibexp)/CORE +PGFILEDESC = "PL/Perl - procedural language" NAME = plperl -OBJS = plperl.o SPI.o Util.o +OBJS = plperl.o SPI.o Util.o $(WIN32RES) DATA = plperl.control plperl--1.0.sql plperl--unpackaged--1.0.sql \ plperlu.control plperlu--1.0.sql plperlu--unpackaged--1.0.sql diff --git a/src/pl/plpgsql/src/Makefile b/src/pl/plpgsql/src/Makefile index 852b0c7ae49..e073b2abd0a 100644 --- a/src/pl/plpgsql/src/Makefile +++ b/src/pl/plpgsql/src/Makefile @@ -10,6 +10,8 @@ subdir = src/pl/plpgsql/src top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "PL/pgSQL - procedural language" + # Shared library parameters NAME= plpgsql @@ -17,7 +19,8 @@ override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS) SHLIB_LINK = $(filter -lintl, $(LIBS)) rpath = -OBJS = pl_gram.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o pl_scanner.o +OBJS = pl_gram.o pl_handler.o pl_comp.o pl_exec.o \ + pl_funcs.o pl_scanner.o $(WIN32RES) DATA = plpgsql.control plpgsql--1.0.sql plpgsql--unpackaged--1.0.sql diff --git a/src/pl/plpython/Makefile b/src/pl/plpython/Makefile index 020861a4f8b..9c0fc613f9a 100644 --- a/src/pl/plpython/Makefile +++ b/src/pl/plpython/Makefile @@ -38,6 +38,8 @@ override CPPFLAGS := -I. -I$(srcdir) $(python_includespec) $(CPPFLAGS) rpathdir = $(python_libdir) +PGFILEDESC = "PL/Python - procedural language" + NAME = plpython$(python_majorversion) OBJS = \ @@ -52,7 +54,8 @@ OBJS = \ plpy_spi.o \ plpy_subxactobject.o \ plpy_typeio.o \ - plpy_util.o + plpy_util.o \ + $(WIN32RES) DATA = $(NAME)u.control $(NAME)u--1.0.sql $(NAME)u--unpackaged--1.0.sql ifeq ($(python_majorversion),2) diff --git a/src/pl/tcl/Makefile b/src/pl/tcl/Makefile index 2ab2a2791bb..7ea00267c03 100644 --- a/src/pl/tcl/Makefile +++ b/src/pl/tcl/Makefile @@ -34,10 +34,11 @@ ifneq ($(PORTNAME), win32) SHLIB_LINK = $(TCL_LIB_SPEC) $(TCL_LIBS) -lc endif +PGFILEDESC = "PL/Tcl - procedural language" NAME = pltcl -OBJS = pltcl.o +OBJS = pltcl.o $(WIN32RES) DATA = pltcl.control pltcl--1.0.sql pltcl--unpackaged--1.0.sql \ pltclu.control pltclu--1.0.sql pltclu--unpackaged--1.0.sql diff --git a/src/tools/msvc/clean.bat b/src/tools/msvc/clean.bat index 4671f30e50c..b76eea99eda 100755 --- a/src/tools/msvc/clean.bat +++ b/src/tools/msvc/clean.bat @@ -19,6 +19,12 @@ if exist pgsql.suo del /q /a:H pgsql.suo del /s /q src\bin\win32ver.rc 2> NUL del /s /q src\interfaces\win32ver.rc 2> NUL if exist src\backend\win32ver.rc del /q src\backend\win32ver.rc +if exist src\backend\replication\libpqwalreceiver\win32ver.rc del /q src\backend\replication\libpqwalreceiver\win32ver.rc +if exist src\pl\plperl\win32ver.rc del /q src\pl\plperl\win32ver.rc +if exist src\pl\plpgsql\src\win32ver.rc del /q src\pl\plpgsql\src\win32ver.rc +if exist src\pl\plpython\win32ver.rc del /q src\pl\plpython\win32ver.rc +if exist src\pl\tcl\win32ver.rc del /q src\pl\tcl\win32ver.rc +for /d %%f in (src\interfaces\ecpg\*) do if exist %%f\win32ver.rc del /q %%f\win32ver.rc for /d %%f in (contrib\*) do if exist %%f\win32ver.rc del /q %%f\win32ver.rc for /d %%f in (src\backend\utils\mb\conversion_procs\*) do if exist %%f\win32ver.rc del /q %%f\win32ver.rc |