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