From: Bruno Haible Date: Mon, 31 Mar 2003 20:03:26 +0000 (+0000) Subject: Tweak Woe32 support. X-Git-Tag: v0.12~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bbeef9b837f37cc3d3344e7f733232ce932fd8d;p=thirdparty%2Fgettext.git Tweak Woe32 support. --- diff --git a/gettext-runtime/lib/Makefile.msvc b/gettext-runtime/lib/Makefile.msvc index bc7cb7eca..404ce0039 100644 --- a/gettext-runtime/lib/Makefile.msvc +++ b/gettext-runtime/lib/Makefile.msvc @@ -15,6 +15,10 @@ DEBUG=0 MFLAGS= !endif +# Directories used by "make install": +prefix = c:\usr +includedir = $(prefix)\include + # Programs used by "make": CC = cl @@ -32,7 +36,7 @@ OPTIMFLAGS = -D_NDEBUG -O1 CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) -DHAVE_CONFIG_H -INCLUDES = +INCLUDES = -I. -I.. -I..\intl -I..\..\gettext-tools\lib -I..\..\gettext-tools\windows -I$(includedir) AR = lib AR_FLAGS = /out: diff --git a/gettext-runtime/libasprintf/ChangeLog b/gettext-runtime/libasprintf/ChangeLog index a1643dfac..4a587fcb4 100644 --- a/gettext-runtime/libasprintf/ChangeLog +++ b/gettext-runtime/libasprintf/ChangeLog @@ -6,9 +6,11 @@ * README.woe32: New file. * windows/dllexport.h: New file. * windows/asprintf.rc: New file. - * Makefile.am (EXTRA_DIST): Add them and config.h.msvc. + * Makefile.am (EXTRA_DIST): Add them and config.h.msvc and + autosprintf.h.in. (autosprintf.h): New rule. (MOSTLYCLEANFILES): Add autosprintf.h. + (dist-hook): Don't distribute autosprintf.h. (config.h.msvc, autosprintf.h.msvc-shared): New rules. 2003-02-22 Bruno Haible diff --git a/gettext-runtime/libasprintf/Makefile.am b/gettext-runtime/libasprintf/Makefile.am index c49b0fe3e..40d21edc4 100644 --- a/gettext-runtime/libasprintf/Makefile.am +++ b/gettext-runtime/libasprintf/Makefile.am @@ -32,6 +32,10 @@ all-local $(libasprintf_la_OBJECTS): autosprintf.h autosprintf.h: autosprintf.h.in cp $(srcdir)/autosprintf.h.in autosprintf.h MOSTLYCLEANFILES += autosprintf.h +EXTRA_DIST += autosprintf.h.in + +dist-hook: + rm -f $(distdir)/autosprintf.h # Library code. @@ -189,6 +193,9 @@ config.h.msvc: config.h.in < $<; echo; echo '#define snprintf _snprintf') > $@ autosprintf.h.msvc-shared: autosprintf.h.in windows/dllexport.h - sed -e 's/extern \([^"]\)/extern LIBASPRINTF_DLL_EXPORTED \1/' -e '/#define _AUTOSPRINTF_H/r windows/dllexport.h' < $< > $@ + sed -e 's/extern \([^"]\)/extern LIBASPRINTF_DLL_EXPORTED \1/' \ + -e 's/class /class LIBASPRINTF_DLL_EXPORTED /' \ + -e 's/struct /struct LIBASPRINTF_DLL_EXPORTED /' \ + -e '/#define _AUTOSPRINTF_H/r windows/dllexport.h' < $< > $@ -EXTRA_DIST += README.woe32 Makefile.msvc config.h.msvc windows/dllexport.h windows/asprintf.rc +EXTRA_DIST += README.woe32 Makefile.msvc config.h.msvc autosprintf.h.msvc-shared windows/dllexport.h windows/asprintf.rc diff --git a/gettext-runtime/libasprintf/Makefile.msvc b/gettext-runtime/libasprintf/Makefile.msvc index ea8f30b49..6c0f511cb 100644 --- a/gettext-runtime/libasprintf/Makefile.msvc +++ b/gettext-runtime/libasprintf/Makefile.msvc @@ -62,7 +62,7 @@ OPTIMFLAGS = -D_NDEBUG -O1 # -DBUILDING_LIBASPRINTF: Change expansion of LIBASPRINTF_DLL_EXPORTED macro. CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) -DHAVE_CONFIG_H -DBUILDING_LIBASPRINTF -CXXFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) -DHAVE_CONFIG_H -DBUILDING_LIBASPRINTF +CXXFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) -DHAVE_CONFIG_H -DBUILDING_LIBASPRINTF -GX INCLUDES = -I. @@ -138,7 +138,7 @@ install : all force $(INSTALL_DATA) asprintf.lib $(libdir)\asprintf.lib -mkdir $(prefix)\doc -mkdir $(sub_docdir) - $(INSTALL_DATA) doc\autosprintf.html $(sub_docdir)\autosprintf.html + $(INSTALL_DATA) autosprintf.html $(sub_docdir)\autosprintf.html installdirs : force -mkdir $(prefix) diff --git a/gettext-runtime/po/Makefile.msvc.sh b/gettext-runtime/po/Makefile.msvc.sh index 6e43ffc65..b0abb5a57 100755 --- a/gettext-runtime/po/Makefile.msvc.sh +++ b/gettext-runtime/po/Makefile.msvc.sh @@ -39,9 +39,9 @@ for cat in $catalogs; do cat=`basename $cat` lang=`echo $cat | sed -e 's/\.gmo$//'` cat <