-# Copyright (c) 2001-2002 IBM, Inc. and others
+# Copyright (C) 2016 and later: Unicode, Inc. and others.
+# License & terms of use: http://www.unicode.org/copyright.html#License
+#
+# Copyright (c) 2001-2011 IBM, Inc. and others
#
# File
# icu/source/samples/ufortune/resources/Makefile
# No conventional target - this dir is resources only.
TARGET=
-CLEANFILES += *.mak *.[co] *.lst *.a *.$(SO) $(RESFILES) *.ao README*resources.txt
+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.
-RESTARGET=lib$(RESNAME).$(SO)
+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=$(RESNAME)_root.res $(RESNAME)_es.res
+RESFILES=root.res es.res
# list of resource bundles - keep in sync with RESFILES
RESLIST=res-file-list.txt
# for installing the library
install: res-install
-$(RESNAME)_es.res: es.txt
+es.res: es.txt
@echo "generating $@"
- $(GENRB) $(GENRBOPT) -e latin-1 $^
+ $(GENRB) $(GENRBOPT) $^
+