]> git.saurik.com Git - apple/icu.git/blob - icuSources/samples/ufortune/resources/fortune_resources.mak
ICU-400.42.tar.gz
[apple/icu.git] / icuSources / samples / ufortune / resources / fortune_resources.mak
1 # Copyright (c) 2001-2006 IBM, Inc. and others
2 #
3 # fortune_resources.mak
4 #
5 # Windows nmake makefile for compiling and packaging the resources
6 # for for the ICU sample program "ufortune".
7 #
8 # This makefile is normally invoked by the pre-link step in the
9 # MSVC project file for ufortune
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 #
16 RESFILES= root.res es.res
17
18 #
19 # ICUDIR the location of ICU, used to locate the tools for
20 # compiling and packaging resources.
21 #
22 ICUDIR=..\..\..\..
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 : .txt
30
31 #
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
34 #
35 .txt.res:
36 $(ICUDIR)\bin\genrb -d . $*.txt
37
38 #
39 # all - nmake starts here by default
40 #
41 all: fortune_resources.dll
42
43 fortune_resources.dll: $(RESFILES)
44 $(ICUDIR)\bin\pkgdata --name fortune_resources -v --mode dll -d . res-file-list.txt
45