]> git.saurik.com Git - apple/icu.git/blame - icuSources/samples/ufortune/resources/Makefile
ICU-461.12.tar.gz
[apple/icu.git] / icuSources / samples / ufortune / resources / Makefile
CommitLineData
729e4ab9 1# Copyright (c) 2001-2010 IBM, Inc. and others
b75a7d8f
A
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
27include ../../defs.mk
28
29# No conventional target - this dir is resources only.
30TARGET=
729e4ab9 31CLEANFILES += *.[co] *.lst $(RESNAME)_*.mak $(RESNAME).dat $(RESFILES) *.ao README*resources.txt $(RESNAME)_dat*
b75a7d8f
A
32
33include ../fortunedefs.mk
34
35# target file for resource bundle - this must be set, or 'make all' won't
36# build any resources.
73c04bcf 37ifeq ($(RESMODE),dll)
b75a7d8f 38RESTARGET=lib$(RESNAME).$(SO)
73c04bcf
A
39endif
40ifeq ($(RESMODE),static)
41RESTARGET=lib$(RESNAME).a
42endif
b75a7d8f
A
43
44# Resource files. Add new ones for additional locales here.
45# keep in sync with the file RESLIST
73c04bcf 46RESFILES=root.res es.res
b75a7d8f
A
47
48# list of resource bundles - keep in sync with RESFILES
49RESLIST=res-file-list.txt
50
51## Include standard rules
52include ../../rules.mk
53
54# for installing the library
55install: res-install
56
73c04bcf 57es.res: es.txt
b75a7d8f 58 @echo "generating $@"
73c04bcf
A
59 $(GENRB) $(GENRBOPT) $^
60