• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2016 and later: Unicode, Inc. and others.
2# License & terms of use: http://www.unicode.org/copyright.html#License
3#
4# Copyright (c) 2001-2011 IBM, Inc. and others
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
30include ../../defs.mk
31
32# No conventional target - this dir is resources only.
33TARGET=
34CLEANFILES += *.[co] *.lst $(RESNAME)_*.mak $(RESNAME).dat $(RESFILES) *.ao README*resources.txt $(RESNAME)_dat*
35
36include ../fortunedefs.mk
37
38# target file for resource bundle - this must be set, or 'make all' won't
39# build any resources.
40ifeq ($(RESMODE),dll)
41RESTARGET=lib$(RESNAME)*.$(SO)*
42endif
43ifeq ($(RESMODE),static)
44RESTARGET=lib$(RESNAME).a
45endif
46
47# Resource files.  Add new ones for additional locales here.
48# keep in sync with the file RESLIST
49RESFILES=root.res es.res
50
51# list of resource bundles  - keep in sync with RESFILES
52RESLIST=res-file-list.txt
53
54## Include standard rules
55include ../../rules.mk
56
57# for installing the library
58install: res-install
59
60es.res: es.txt
61	@echo "generating $@"
62	$(GENRB) $(GENRBOPT) $^
63
64