1 # Copyright (C) 2016 and later: Unicode, Inc. and others.
2 # License & terms of use: http://www.unicode.org/copyright.html#License
4 # Copyright (c) 2001-2011 IBM, Inc. and others
5 # common makefile between ufortune and ufortune/resources
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)
13 # static - will statically link data into ufortune
15 # common - will create fortune_resources.dat in the resources subdir
16 # (must be locatable by ICU_PATH - use 'make check')
18 # files - will use separate files, such as es.res, fi.res, etc.
24 RESNAME=fortune_resources
27 # Don't call udata_setAppData unless we are linked with the data
28 RESCPPFLAGS=-DUFORTUNE_NOSETAPPDATA
29 CHECK_VARS= ICU_DATA=$(RESDIR)
31 # DLL and static modes are identical here
33 RESLDFLAGS= -L$(RESDIR) -l$(RESNAME)
38 ifeq ($(RESMODE),static)
39 RESLDFLAGS= -L$(RESDIR) -l$(RESNAME)