]>
Commit | Line | Data |
---|---|---|
f3c0d7a5 A |
1 | # Copyright (C) 2016 and later: Unicode, Inc. and others. |
2 | # License & terms of use: http://www.unicode.org/copyright.html#License | |
3 | # | |
729e4ab9 | 4 | # Copyright (c) 2001-2009 IBM, Inc. and others |
b75a7d8f A |
5 | # |
6 | # fortune_resources.mak | |
7 | # | |
8 | # Windows nmake makefile for compiling and packaging the resources | |
0f5d89e8 | 9 | # for the ICU sample program "ufortune". |
b75a7d8f A |
10 | # |
11 | # This makefile is normally invoked by the pre-link step in the | |
12 | # MSVC project file for ufortune | |
13 | ||
14 | # | |
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 | |
18 | # | |
19 | RESFILES= root.res es.res | |
20 | ||
b75a7d8f A |
21 | # |
22 | # ICUDIR the location of ICU, used to locate the tools for | |
23 | # compiling and packaging resources. | |
24 | # | |
25 | ICUDIR=..\..\..\.. | |
26 | ||
729e4ab9 A |
27 | # |
28 | # The directory that contains the tools. | |
29 | # | |
30 | !IF "$(CFG)" == "x64\Release" || "$(CFG)" == "x64\Debug" | |
31 | BIN=bin64 | |
32 | !ELSE | |
33 | BIN=bin | |
34 | !ENDIF | |
35 | ||
b75a7d8f A |
36 | # |
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. | |
40 | # | |
b75a7d8f A |
41 | .SUFFIXES : .txt |
42 | ||
43 | # | |
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 | |
46 | # | |
47 | .txt.res: | |
0f5d89e8 | 48 | $(ICUDIR)\$(BIN)\genrb -d . $*.txt |
b75a7d8f | 49 | |
b75a7d8f A |
50 | # |
51 | # all - nmake starts here by default | |
52 | # | |
53 | all: fortune_resources.dll | |
54 | ||
55 | fortune_resources.dll: $(RESFILES) | |
0f5d89e8 | 56 | $(ICUDIR)\$(BIN)\pkgdata --name fortune_resources -v --mode dll -d . res-file-list.txt |
b75a7d8f | 57 |