1# Copyright (c) 2001-2003 IBM, Inc. and others
2
3#
4# File
5#    icu/source/samples/ufortune/Makefile
6#
7# Usage:
8#  - configure and build ICU [see the docs] .. use "--prefix=" something
9#
10#  - do 'make install' of icu
11#
12#  - make sure the script 'icu-config' is executable in your PATH
13#
14#  - do 'gmake' in this directory
15#  - do 'gmake check' to run the sample.
16
17
18# Load ICU information
19include ../defs.mk
20
21include fortunedefs.mk
22
23# Name of your target
24TARGET=ufortune
25
26# All object files (C or C++)
27OBJECTS=ufortune.o
28
29# dir containing resources
30RESDIR=resources
31
32# hook variables to tell rules.mk we want subdirectory processing
33ALL_SUBDIR=   all-$(RESDIR)
34CLEAN_SUBDIR= clean-$(RESDIR)
35
36# Need: ustdio, and to link with ufortune
37XTRALIBS=$(RESLDFLAGS)
38LDFLAGS += $(LDFLAGS_USTDIO)
39CPPFLAGS += $(RESCPPFLAGS)
40
41### Include standard rules
42include ../rules.mk
43
44# subdirectory processing
45all-$(RESDIR):
46	$(MAKE) -C $(RESDIR)
47
48clean-$(RESDIR):
49	-$(MAKE) -C $(RESDIR) clean
50
51
52install-$(RESDIR):
53	$(MAKE) -C $(RESDIR) install
54
55install: install-$(RESDIR)