12e5b6d6dSopenharmony_ci# Copyright (C) 2016 and later: Unicode, Inc. and others. 22e5b6d6dSopenharmony_ci# License & terms of use: http://www.unicode.org/copyright.html 32e5b6d6dSopenharmony_ci# 42e5b6d6dSopenharmony_ci# Copyright (c) 2001-2011 IBM, Inc. and others 52e5b6d6dSopenharmony_ci# 62e5b6d6dSopenharmony_ci# File 72e5b6d6dSopenharmony_ci# icu/source/samples/ufortune/resources/Makefile 82e5b6d6dSopenharmony_ci# 92e5b6d6dSopenharmony_ci# Usage: 102e5b6d6dSopenharmony_ci# See the instructions in the parent Makefile, 112e5b6d6dSopenharmony_ci# icu/source/samples/ufortune/Makefile. 122e5b6d6dSopenharmony_ci# This subproject builds the ICU resource files for ufortune. 132e5b6d6dSopenharmony_ci# It is normally invoked from the parent directory, 142e5b6d6dSopenharmony_ci# although the resources can be built from here. 152e5b6d6dSopenharmony_ci# 162e5b6d6dSopenharmony_ci# Two ICU tools are run from this makefile: 172e5b6d6dSopenharmony_ci# genrb compiles a resource source file (.txt) into 182e5b6d6dSopenharmony_ci# a binary .res file. 192e5b6d6dSopenharmony_ci# pkgdata combines all of the .res files into a single 202e5b6d6dSopenharmony_ci# shared library that can then be linked with the 212e5b6d6dSopenharmony_ci# main application. 222e5b6d6dSopenharmony_ci# 232e5b6d6dSopenharmony_ci# pkgdata will recursively generate and run yet 242e5b6d6dSopenharmony_ci# another makefile, which in turn runs two more 252e5b6d6dSopenharmony_ci# icu tools. gencmn combines the individual .res 262e5b6d6dSopenharmony_ci# files, and genccode emits the data as C source 272e5b6d6dSopenharmony_ci# code that can then be built into a .so 282e5b6d6dSopenharmony_ci# 292e5b6d6dSopenharmony_ci 302e5b6d6dSopenharmony_ciinclude ../../defs.mk 312e5b6d6dSopenharmony_ci 322e5b6d6dSopenharmony_ci# No conventional target - this dir is resources only. 332e5b6d6dSopenharmony_ciTARGET= 342e5b6d6dSopenharmony_ciCLEANFILES += *.[co] *.lst $(RESNAME)_*.mak $(RESNAME).dat $(RESFILES) *.ao README*resources.txt $(RESNAME)_dat* 352e5b6d6dSopenharmony_ci 362e5b6d6dSopenharmony_ciinclude ../fortunedefs.mk 372e5b6d6dSopenharmony_ci 382e5b6d6dSopenharmony_ci# target file for resource bundle - this must be set, or 'make all' won't 392e5b6d6dSopenharmony_ci# build any resources. 402e5b6d6dSopenharmony_ciifeq ($(RESMODE),dll) 412e5b6d6dSopenharmony_ciRESTARGET=lib$(RESNAME)*.$(SO)* 422e5b6d6dSopenharmony_ciendif 432e5b6d6dSopenharmony_ciifeq ($(RESMODE),static) 442e5b6d6dSopenharmony_ciRESTARGET=lib$(RESNAME).a 452e5b6d6dSopenharmony_ciendif 462e5b6d6dSopenharmony_ci 472e5b6d6dSopenharmony_ci# Resource files. Add new ones for additional locales here. 482e5b6d6dSopenharmony_ci# keep in sync with the file RESLIST 492e5b6d6dSopenharmony_ciRESFILES=root.res es.res 502e5b6d6dSopenharmony_ci 512e5b6d6dSopenharmony_ci# list of resource bundles - keep in sync with RESFILES 522e5b6d6dSopenharmony_ciRESLIST=res-file-list.txt 532e5b6d6dSopenharmony_ci 542e5b6d6dSopenharmony_ci## Include standard rules 552e5b6d6dSopenharmony_ciinclude ../../rules.mk 562e5b6d6dSopenharmony_ci 572e5b6d6dSopenharmony_ci# for installing the library 582e5b6d6dSopenharmony_ciinstall: res-install 592e5b6d6dSopenharmony_ci 602e5b6d6dSopenharmony_cies.res: es.txt 612e5b6d6dSopenharmony_ci @echo "generating $@" 622e5b6d6dSopenharmony_ci $(GENRB) $(GENRBOPT) $^ 632e5b6d6dSopenharmony_ci 64