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# common makefile between ufortune and ufortune/resources
6
7# mode of resource bundle -
8# you can change this to:
9#   dll    -  will create a dynamically linked library 
10#                 (may require 'make install' in resources subdir for
11#                  proper library installation)
12#
13#   static - will statically link data into ufortune
14#
15#   common - will create fortune_resources.dat in the resources subdir
16#                (must be locatable by ICU_PATH - use 'make check')
17#
18#   files  - will use separate files, such as es.res, fi.res, etc.
19#                (use 'make check')
20#
21RESMODE=static
22
23# Resource shortname
24RESNAME=fortune_resources
25
26RESLDFLAGS=
27# Don't call udata_setAppData unless we are linked with the data
28RESCPPFLAGS=-DUFORTUNE_NOSETAPPDATA
29CHECK_VARS= ICU_DATA=$(RESDIR)
30
31# DLL and static modes are identical here
32ifeq ($(RESMODE),dll)
33RESLDFLAGS= -L$(RESDIR) -l$(RESNAME)
34RESCPPFLAGS=
35CHECK_VARS=
36endif
37
38ifeq ($(RESMODE),static)
39RESLDFLAGS= -L$(RESDIR) -l$(RESNAME)
40RESCPPFLAGS=
41CHECK_VARS=
42endif
43
44