+2007-05-28 Bruno Haible <bruno@clisp.org>
+
+ * libgettextpo.rc: New file.
+ * Makefile.am (LDADD, WOE32_LDADD): New variables.
+ (libgettextpo.res): New rule.
+ (MOSTLYCLEANFILES): Add libgettextpo.res.
+
2007-05-13 Bruno Haible <bruno@clisp.org>
* gettext-po.c: Don't include vasprintf.h.
## Makefile for the gettext-tools/libgettextpo subdirectory of GNU gettext
-## Copyright (C) 1995-1998, 2000-2006 Free Software Foundation, Inc.
+## Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc.
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
-I.. -I$(top_srcdir) \
-I../src -I$(top_srcdir)/src \
-I../intl -I$(top_srcdir)/../gettext-runtime/intl
+LDADD = $(WOE32_LDADD)
# libgettextpo contains the public API for PO files.
libgettextpo_la_SOURCES = \
libgettextpo_la_LDFLAGS += -Wl,--export-all-symbols
endif
+# Version information according to Woe32 conventions.
+if WOE32
+WOE32_LDADD = libgettextpo.res
+libgettextpo.res : $(srcdir)/libgettextpo.rc
+ $(WINDRES) `$(SHELL) $(top_srcdir)/../windows/windres-options --escape $(VERSION)` -i $(srcdir)/libgettextpo.rc -o libgettextpo.res --output-format=coff
+MOSTLYCLEANFILES += libgettextpo.res
+else
+WOE32_LDADD =
+endif
+
# Hide symbols that are defined by libgettextpo_la_AUXSOURCES or libgnu.la
# from the global namespace, by prefixing them with "libgettextpo_".
all check install: config.h