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