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