2003-12-19 22:18:26 +00:00
|
|
|
# Copyright (c) 2001-2003 IBM, Inc. and others
|
2001-11-10 01:27:58 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# File
|
|
|
|
# icu/source/samples/ufortune/Makefile
|
|
|
|
#
|
|
|
|
# Usage:
|
|
|
|
# - configure and build ICU [see the docs] .. use "--prefix=" something
|
|
|
|
#
|
|
|
|
# - do 'make install' of icu
|
|
|
|
#
|
2002-05-10 20:32:34 +00:00
|
|
|
# - make sure the script 'icu-config' is executable in your PATH
|
2001-11-10 01:27:58 +00:00
|
|
|
#
|
|
|
|
# - do 'gmake' in this directory
|
|
|
|
# - do 'gmake check' to run the sample.
|
|
|
|
|
|
|
|
|
2002-05-10 20:32:34 +00:00
|
|
|
# Load ICU information
|
|
|
|
include ../defs.mk
|
2001-11-10 01:27:58 +00:00
|
|
|
|
2002-05-10 20:32:34 +00:00
|
|
|
include fortunedefs.mk
|
2001-11-10 01:27:58 +00:00
|
|
|
|
|
|
|
# Name of your target
|
|
|
|
TARGET=ufortune
|
|
|
|
|
|
|
|
# All object files (C or C++)
|
|
|
|
OBJECTS=ufortune.o
|
|
|
|
|
2002-05-10 20:32:34 +00:00
|
|
|
# dir containing resources
|
|
|
|
RESDIR=resources
|
2001-11-10 01:27:58 +00:00
|
|
|
|
2002-05-10 20:32:34 +00:00
|
|
|
# hook variables to tell rules.mk we want subdirectory processing
|
|
|
|
ALL_SUBDIR= all-$(RESDIR)
|
|
|
|
CLEAN_SUBDIR= clean-$(RESDIR)
|
2001-11-10 01:27:58 +00:00
|
|
|
|
2002-05-10 20:32:34 +00:00
|
|
|
# Need: ustdio, and to link with ufortune
|
2002-08-07 23:45:13 +00:00
|
|
|
XTRALIBS=$(RESLDFLAGS)
|
|
|
|
LDFLAGS += $(LDFLAGS_USTDIO)
|
2002-05-10 20:32:34 +00:00
|
|
|
CPPFLAGS += $(RESCPPFLAGS)
|
2001-11-10 01:27:58 +00:00
|
|
|
|
2002-05-10 20:32:34 +00:00
|
|
|
### Include standard rules
|
|
|
|
include ../rules.mk
|
2001-11-10 01:27:58 +00:00
|
|
|
|
2002-05-10 20:32:34 +00:00
|
|
|
# subdirectory processing
|
|
|
|
all-$(RESDIR):
|
|
|
|
$(MAKE) -C $(RESDIR)
|
2001-11-10 01:27:58 +00:00
|
|
|
|
2002-05-10 20:32:34 +00:00
|
|
|
clean-$(RESDIR):
|
|
|
|
-$(MAKE) -C $(RESDIR) clean
|
2001-11-10 01:27:58 +00:00
|
|
|
|
|
|
|
|
2002-05-10 20:32:34 +00:00
|
|
|
install-$(RESDIR):
|
|
|
|
$(MAKE) -C $(RESDIR) install
|
2003-06-19 22:25:24 +00:00
|
|
|
|
|
|
|
install: install-$(RESDIR)
|