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-2011 IBM, Inc. and others
7 # icu/source/samples/ufortune/resources/Makefile
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.
16 # Two ICU tools are run from this makefile:
17 # genrb compiles a resource source file (.txt) into
19 # pkgdata combines all of the .res files into a single
20 # shared library that can then be linked with the
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
32 # No conventional target - this dir is resources only.
34 CLEANFILES += *.[co] *.lst $(RESNAME)_*.mak $(RESNAME).dat $(RESFILES) *.ao README*resources.txt $(RESNAME)_dat*
36 include ../fortunedefs.mk
38 # target file for resource bundle - this must be set, or 'make all' won't
39 # build any resources.
41 RESTARGET=lib$(RESNAME)*.$(SO)*
43 ifeq ($(RESMODE),static)
44 RESTARGET=lib$(RESNAME).a
47 # Resource files. Add new ones for additional locales here.
48 # keep in sync with the file RESLIST
49 RESFILES=root.res es.res
51 # list of resource bundles - keep in sync with RESFILES
52 RESLIST=res-file-list.txt
54 ## Include standard rules
55 include ../../rules.mk
57 # for installing the library
62 $(GENRB) $(GENRBOPT) $^