1 # Copyright (c) 2001-2011 IBM, Inc. and others
4 # icu/source/samples/ufortune/resources/Makefile
7 # See the instructions in the parent Makefile,
8 # icu/source/samples/ufortune/Makefile.
9 # This subproject builds the ICU resource files for ufortune.
10 # It is normally invoked from the parent directory,
11 # although the resources can be built from here.
13 # Two ICU tools are run from this makefile:
14 # genrb compiles a resource source file (.txt) into
16 # pkgdata combines all of the .res files into a single
17 # shared library that can then be linked with the
20 # pkgdata will recursively generate and run yet
21 # another makefile, which in turn runs two more
22 # icu tools. gencmn combines the individual .res
23 # files, and genccode emits the data as C source
24 # code that can then be built into a .so
29 # No conventional target - this dir is resources only.
31 CLEANFILES += *.[co] *.lst $(RESNAME)_*.mak $(RESNAME).dat $(RESFILES) *.ao README*resources.txt $(RESNAME)_dat*
33 include ../fortunedefs.mk
35 # target file for resource bundle - this must be set, or 'make all' won't
36 # build any resources.
38 RESTARGET=lib$(RESNAME)*.$(SO)*
40 ifeq ($(RESMODE),static)
41 RESTARGET=lib$(RESNAME).a
44 # Resource files. Add new ones for additional locales here.
45 # keep in sync with the file RESLIST
46 RESFILES=root.res es.res
48 # list of resource bundles - keep in sync with RESFILES
49 RESLIST=res-file-list.txt
51 ## Include standard rules
52 include ../../rules.mk
54 # for installing the library
59 $(GENRB) $(GENRBOPT) $^