summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu/icu-4.4/samples/ufortune/fortunedefs.mk
blob: 2d52788b17fb030dc38cf9bc28e0d4a6060ca81d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright (c) 2001-2002 IBM, Inc. and others
# common makefile between ufortune and ufortune/resources

# mode of resource bundle -
# you can change this to:
#   dll    -  will create a dynamically linked library 
#                 (may require 'make install' in resources subdir for
#                  proper library installation)
#
#   static - will statically link data into ufortune
#
#   common - will create fortune_resources.dat in the resources subdir
#                (must be locatable by ICU_PATH - use 'make check')
#
#   files  - will use separate files, such as es.res, fi.res, etc.
#                (use 'make check')
#
RESMODE=static

# Resource shortname
RESNAME=fortune_resources

RESLDFLAGS=
# Don't call udata_setAppData unless we are linked with the data
RESCPPFLAGS=-DUFORTUNE_NOSETAPPDATA
CHECK_VARS= ICU_DATA=$(RESDIR)

# DLL and static modes are identical here
ifeq ($(RESMODE),dll)
RESLDFLAGS= -L$(RESDIR) -l$(RESNAME)
RESCPPFLAGS=
CHECK_VARS=
endif

ifeq ($(RESMODE),static)
RESLDFLAGS= -L$(RESDIR) -l$(RESNAME)
RESCPPFLAGS=
CHECK_VARS=
endif