]> git.saurik.com Git - apple/icu.git/blame_incremental - icuSources/samples/ufortune/resources/fortune_resources.mak
ICU-6.2.22.tar.gz
[apple/icu.git] / icuSources / samples / ufortune / resources / fortune_resources.mak
... / ...
CommitLineData
1# Copyright (c) 2001 IBM, Inc. and others
2#
3# fortune_resources.mak
4#
5# Windows nmake makefile for compiling and packaging the resources
6# for for the ICU sample program "ufortune".
7#
8# This makefile is normally invoked by the pre-link step in the
9# MSVC project file for ufortune
10
11#
12# List of resource files to be built.
13# When adding a resource source (.txt) file for a new locale, the corresponding
14# .res file must be added to this list, AND to the file res-file-list.txt
15#
16RESFILES= root.res es.res
17
18#
19# ICUDIR the location of ICU, used to locate the tools for
20# compiling and packaging resources.
21#
22ICUDIR=..\..\..\..
23
24#
25# File name extensions for inference rule matching.
26# clear out the built-in ones (for .c and the like), and add
27# the definition for .txt to .res.
28#
29.SUFFIXES :
30.SUFFIXES : .txt
31
32#
33# Inference rule, for compiling a .txt file into a .res file.
34# -t fools make into thinking there are files such as es.res, etc
35#
36.txt.res:
37 $(ICUDIR)\bin\genrb -t --package-name fortune_resources -d . $*.txt
38
39#
40# all - nmake starts here by default
41#
42all: fortune_resources.dll
43
44fortune_resources.dll: $(RESFILES)
45 $(ICUDIR)\bin\pkgdata --name fortune_resources -v --mode dll -d . res-file-list.txt
46