]> git.saurik.com Git - apple/icu.git/blob - icuSources/samples/ufortune/fortunedefs.mk
ICU-66108.tar.gz
[apple/icu.git] / icuSources / samples / ufortune / fortunedefs.mk
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 #
21 RESMODE=static
22
23 # Resource shortname
24 RESNAME=fortune_resources
25
26 RESLDFLAGS=
27 # Don't call udata_setAppData unless we are linked with the data
28 RESCPPFLAGS=-DUFORTUNE_NOSETAPPDATA
29 CHECK_VARS= ICU_DATA=$(RESDIR)
30
31 # DLL and static modes are identical here
32 ifeq ($(RESMODE),dll)
33 RESLDFLAGS= -L$(RESDIR) -l$(RESNAME)
34 RESCPPFLAGS=
35 CHECK_VARS=
36 endif
37
38 ifeq ($(RESMODE),static)
39 RESLDFLAGS= -L$(RESDIR) -l$(RESNAME)
40 RESCPPFLAGS=
41 CHECK_VARS=
42 endif
43