1 # Copyright (C) 2016 and later: Unicode, Inc. and others.
2 # License & terms of use: http://www.unicode.org/copyright.html#License
4 # Copyright (c) 2001-2009 IBM, Inc. and others
6 # fortune_resources.mak
8 # Windows nmake makefile for compiling and packaging the resources
9 # for the ICU sample program "ufortune".
11 # This makefile is normally invoked by the pre-link step in the
12 # MSVC project file for ufortune
15 # List of resource files to be built.
16 # When adding a resource source (.txt) file for a new locale, the corresponding
17 # .res file must be added to this list, AND to the file res-file-list.txt
19 RESFILES= root.res es.res
22 # ICUDIR the location of ICU, used to locate the tools for
23 # compiling and packaging resources.
28 # The directory that contains the tools.
30 !IF "$(CFG)" == "x64\Release" || "$(CFG)" == "x64\Debug"
37 # File name extensions for inference rule matching.
38 # clear out the built-in ones (for .c and the like), and add
39 # the definition for .txt to .res.
44 # Inference rule, for compiling a .txt file into a .res file.
45 # -t fools make into thinking there are files such as es.res, etc
48 $(ICUDIR)\$(BIN)\genrb -d . $*.txt
51 # all - nmake starts here by default
53 all: fortune_resources.dll
55 fortune_resources.dll: $(RESFILES)
56 $(ICUDIR)\$(BIN)\pkgdata --name fortune_resources -v --mode dll -d . res-file-list.txt