1 # Copyright (c) 2001-2006 IBM, Inc. and others
3 # fortune_resources.mak
5 # Windows nmake makefile for compiling and packaging the resources
6 # for for the ICU sample program "ufortune".
8 # This makefile is normally invoked by the pre-link step in the
9 # MSVC project file for ufortune
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
16 RESFILES= root.res es.res
19 # ICUDIR the location of ICU, used to locate the tools for
20 # compiling and packaging resources.
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.
32 # Inference rule, for compiling a .txt file into a .res file.
33 # -t fools make into thinking there are files such as es.res, etc
36 $(ICUDIR)\bin\genrb -d . $*.txt
39 # all - nmake starts here by default
41 all: fortune_resources.dll
43 fortune_resources.dll: $(RESFILES)
44 $(ICUDIR)\bin\pkgdata --name fortune_resources -v --mode dll -d . res-file-list.txt