1# Copyright (c) 2003 IBM, Inc. and others 2# 3# genldml_resources.mak 4# 5# Windows nmake makefile for compiling and packaging the resources 6# for for the ICU sample program "genldml". 7# 8# This makefile is normally invoked by the pre-link step in the 9# MSVC project file for genldml 10 11# 12# List of resource files to be built. 13# When adding a resource source (.txt) file for a new locale, the corresponding 14# .res file must be added to this list, AND to the file res-file-list.txt 15# 16RESFILES= root.res 17 18# 19# ICUDIR the location of ICU, used to locate the tools for 20# compiling and packaging resources. 21# 22ICUDIR=$(ICU_ROOT) 23 24# 25# File name extensions for inference rule matching. 26# clear out the built-in ones (for .c and the like), and add 27# the definition for .txt to .res. 28# 29.SUFFIXES : 30.SUFFIXES : .txt 31 32# 33# Inference rule, for compiling a .txt file into a .res file. 34# -t fools make into thinking there are files such as es.res, etc 35# 36.txt.res: 37 $(ICUDIR)\bin\genrb -t --package-name genldml_resources -d . $*.txt 38 39 40# 41# all - nmake starts here by default 42# 43all: genldml_resources.dll 44 45genldml_resources.dll: $(RESFILES) 46 $(ICUDIR)\bin\pkgdata --name genldml_resources -v -O R:$(ICUDIR) --mode dll -d . res-files-list.txt 47