You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2003/02/20 19:08:25 UTC
cvs commit: xml-xerces/c/src/xercesc/util/MsgLoaders/ICU/resources resources.mak
peiyongz 2003/02/20 10:08:25
Modified: c/src/xercesc/util/MsgLoaders/ICU/resources resources.mak
Log:
Bug#7077: build error message shared library for ICUMsgLoader
Revision Changes Path
1.7 +25 -12 xml-xerces/c/src/xercesc/util/MsgLoaders/ICU/resources/resources.mak
Index: resources.mak
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/MsgLoaders/ICU/resources/resources.mak,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- resources.mak 12 Dec 2002 16:53:06 -0000 1.6
+++ resources.mak 20 Feb 2003 18:08:25 -0000 1.7
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2002 IBM, Inc.
+# Copyright (c) 2003 IBM, Inc.
#
# File: resources.mak
# Location: <xercesc_root>\src\xercesc\util\MsgLoaders\ICU\resources
@@ -11,23 +11,36 @@
#
# . When adding a resource source (.txt) file for a new locale,
# the corresponding .res file must be added to this list,
-# . AND to the file res-file-list.txt if *dll is to be built
-#
+# . AND to the file res-file-list.txt
#
+RESFILES= en_US.res
+
PKGNAME = XercesMessages
-TARGETS = $(PKGNAME)_en_US.res
+TARGET = $(PKGNAME).dll
GENRB = $(ICUROOT)\bin\genrb.exe
-GENRBOPT = -s. -d. --package-name $(PKGNAME)
+PKGDATA = $(ICUROOT)\bin\pkgdata
-all : $(TARGETS)
- @echo All targets are up to date
+#
+# File name extensions for inference rule matching.
+# clear out the built-in ones (for .c and the like), and add
+# the definition for .txt to .res.
+#
+.SUFFIXES :
+.SUFFIXES : .txt
-clean :
- -erase $(TARGETS)
+#
+# Inference rule, for compiling a .txt file into a .res file.
+# -t fools make into thinking there are files such as es.res, etc
+#
+.txt.res:
+ $(GENRB) -t --package-name $(PKGNAME) -d . $*.txt
-$(PKGNAME)_en_US.res : en_US.txt
- $(GENRB) $(GENRBOPT) $?
#
-# Note: $(GENRB) $(GENRBOPT) --encoding cp1251 $?
+# all - nmake starts here by default
#
+all: $(TARGET)
+
+$(TARGET): $(RESFILES)
+ $(PKGDATA) --name $(PKGNAME) -v -O R:$(ICUROOT) --mode dll -d . res-file-list.txt
+
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org