1# Copyright (c) 2001-2009 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#
16RESFILES= root.res es.res 
17
18#
19#  ICUDIR   the location of ICU, used to locate the tools for
20#           compiling and packaging resources.
21#
22ICUDIR=..\..\..\..
23
24#
25#  The directory that contains the tools.
26#
27!IF "$(CFG)" == "x64\Release" || "$(CFG)" == "x64\Debug"
28BIN=bin64
29!ELSE
30BIN=bin
31!ENDIF
32
33#
34#  File name extensions for inference rule matching.
35#    clear out the built-in ones (for .c and the like), and add
36#    the definition for .txt to .res.
37#
38.SUFFIXES : .txt
39
40#
41#  Inference rule, for compiling a .txt file into a .res file.
42#  -t fools make into thinking there are files such as es.res, etc
43#
44.txt.res:
45	$(ICUDIR)\$(BIN)\genrb -d . $*.txt
46
47#
48#  all - nmake starts here by default
49#
50all: fortune_resources.dll
51
52fortune_resources.dll: $(RESFILES)
53	$(ICUDIR)\$(BIN)\pkgdata --name fortune_resources -v --mode dll -d . res-file-list.txt
54
55