summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu/icu-50.1/samples/ufortune/resources/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/icu/icu-50.1/samples/ufortune/resources/Makefile')
-rw-r--r--Build/source/libs/icu/icu-50.1/samples/ufortune/resources/Makefile60
1 files changed, 60 insertions, 0 deletions
diff --git a/Build/source/libs/icu/icu-50.1/samples/ufortune/resources/Makefile b/Build/source/libs/icu/icu-50.1/samples/ufortune/resources/Makefile
new file mode 100644
index 00000000000..ef38d8a572b
--- /dev/null
+++ b/Build/source/libs/icu/icu-50.1/samples/ufortune/resources/Makefile
@@ -0,0 +1,60 @@
+# Copyright (c) 2001-2011 IBM, Inc. and others
+#
+# File
+# icu/source/samples/ufortune/resources/Makefile
+#
+# Usage:
+# See the instructions in the parent Makefile,
+# icu/source/samples/ufortune/Makefile.
+# This subproject builds the ICU resource files for ufortune.
+# It is normally invoked from the parent directory,
+# although the resources can be built from here.
+#
+# Two ICU tools are run from this makefile:
+# genrb compiles a resource source file (.txt) into
+# a binary .res file.
+# pkgdata combines all of the .res files into a single
+# shared library that can then be linked with the
+# main application.
+#
+# pkgdata will recursively generate and run yet
+# another makefile, which in turn runs two more
+# icu tools. gencmn combines the individual .res
+# files, and genccode emits the data as C source
+# code that can then be built into a .so
+#
+
+include ../../defs.mk
+
+# No conventional target - this dir is resources only.
+TARGET=
+CLEANFILES += *.[co] *.lst $(RESNAME)_*.mak $(RESNAME).dat $(RESFILES) *.ao README*resources.txt $(RESNAME)_dat*
+
+include ../fortunedefs.mk
+
+# target file for resource bundle - this must be set, or 'make all' won't
+# build any resources.
+ifeq ($(RESMODE),dll)
+RESTARGET=lib$(RESNAME)*.$(SO)*
+endif
+ifeq ($(RESMODE),static)
+RESTARGET=lib$(RESNAME).a
+endif
+
+# Resource files. Add new ones for additional locales here.
+# keep in sync with the file RESLIST
+RESFILES=root.res es.res
+
+# list of resource bundles - keep in sync with RESFILES
+RESLIST=res-file-list.txt
+
+## Include standard rules
+include ../../rules.mk
+
+# for installing the library
+install: res-install
+
+es.res: es.txt
+ @echo "generating $@"
+ $(GENRB) $(GENRBOPT) $^
+