]>
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 | # | |
4388f060 | 4 | # Copyright (c) 2001-2011 IBM, Inc. and others |
b75a7d8f A |
5 | # |
6 | # File | |
7 | # icu/source/samples/ufortune/resources/Makefile | |
8 | # | |
9 | # Usage: | |
10 | # See the instructions in the parent Makefile, | |
11 | # icu/source/samples/ufortune/Makefile. | |
12 | # This subproject builds the ICU resource files for ufortune. | |
13 | # It is normally invoked from the parent directory, | |
14 | # although the resources can be built from here. | |
15 | # | |
16 | # Two ICU tools are run from this makefile: | |
17 | # genrb compiles a resource source file (.txt) into | |
18 | # a binary .res file. | |
19 | # pkgdata combines all of the .res files into a single | |
20 | # shared library that can then be linked with the | |
21 | # main application. | |
22 | # | |
23 | # pkgdata will recursively generate and run yet | |
24 | # another makefile, which in turn runs two more | |
25 | # icu tools. gencmn combines the individual .res | |
26 | # files, and genccode emits the data as C source | |
27 | # code that can then be built into a .so | |
28 | # | |
29 | ||
30 | include ../../defs.mk | |
31 | ||
32 | # No conventional target - this dir is resources only. | |
33 | TARGET= | |
729e4ab9 | 34 | CLEANFILES += *.[co] *.lst $(RESNAME)_*.mak $(RESNAME).dat $(RESFILES) *.ao README*resources.txt $(RESNAME)_dat* |
b75a7d8f A |
35 | |
36 | include ../fortunedefs.mk | |
37 | ||
38 | # target file for resource bundle - this must be set, or 'make all' won't | |
39 | # build any resources. | |
73c04bcf | 40 | ifeq ($(RESMODE),dll) |
4388f060 | 41 | RESTARGET=lib$(RESNAME)*.$(SO)* |
73c04bcf A |
42 | endif |
43 | ifeq ($(RESMODE),static) | |
44 | RESTARGET=lib$(RESNAME).a | |
45 | endif | |
b75a7d8f A |
46 | |
47 | # Resource files. Add new ones for additional locales here. | |
48 | # keep in sync with the file RESLIST | |
73c04bcf | 49 | RESFILES=root.res es.res |
b75a7d8f A |
50 | |
51 | # list of resource bundles - keep in sync with RESFILES | |
52 | RESLIST=res-file-list.txt | |
53 | ||
54 | ## Include standard rules | |
55 | include ../../rules.mk | |
56 | ||
57 | # for installing the library | |
58 | install: res-install | |
59 | ||
73c04bcf | 60 | es.res: es.txt |
b75a7d8f | 61 | @echo "generating $@" |
73c04bcf A |
62 | $(GENRB) $(GENRBOPT) $^ |
63 |