1 # Copyright (c) 2001-2011 IBM, Inc. and others 2 # 3 # File 4 # icu/source/samples/ufortune/resources/Makefile 5 # 6 # Usage: 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. 12 # 13 # Two ICU tools are run from this makefile: 14 # genrb compiles a resource source file (.txt) into 15 # a binary .res file. 16 # pkgdata combines all of the .res files into a single 17 # shared library that can then be linked with the 18 # main application. 19 # 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 25 # 26 27 include ../../defs.mk 28 29 # No conventional target - this dir is resources only. 30 TARGET= 31 CLEANFILES += *.[co] *.lst $(RESNAME)_*.mak $(RESNAME).dat $(RESFILES) *.ao README*resources.txt $(RESNAME)_dat* 32 33 include ../fortunedefs.mk 34 35 # target file for resource bundle - this must be set, or 'make all' won't 36 # build any resources. 37 ifeq ($(RESMODE),dll) 38 RESTARGET=lib$(RESNAME)*.$(SO)* 39 endif 40 ifeq ($(RESMODE),static) 41 RESTARGET=lib$(RESNAME).a 42 endif 43 44 # Resource files. Add new ones for additional locales here. 45 # keep in sync with the file RESLIST 46 RESFILES=root.res es.res 47 48 # list of resource bundles - keep in sync with RESFILES 49 RESLIST=res-file-list.txt 50 51 ## Include standard rules 52 include ../../rules.mk 53 54 # for installing the library 55 install: res-install 56 57 es.res: es.txt 58 @echo "generating $@" 59 $(GENRB) $(GENRBOPT) $^ 60 61