1
# Copyright (c) 2000 IBM, Inc. and others
2
# conversion sample code $Revision: 1.3 $
6
# - configure and build ICU [see the docs] .. use "--prefix=" something
7
# (I used --prefix=/home/srl/III )
9
# - do 'make install' of icu
11
# - change the following line to point to the $(prefix) that
12
# was used (will look for $(prefix)/share/icu/Makefile.inc )
14
# set the variable ICU_PREFIX to point at $(prefix)
16
# - do 'make' in this directory
18
ICU_DEFAULT_PREFIX=~/icu
20
ifeq ($(strip $(ICU_PREFIX)),)
21
ICU_INC=$(ICU_DEFAULT_PREFIX)/lib/icu/Makefile.inc
23
ICU_INC=$(ICU_PREFIX)/lib/icu/Makefile.inc
32
# All object files (C or C++)
35
CLEANFILES=*~ $(TARGET).out
41
.PHONY: all clean distclean check report
44
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
45
-$(RMV) $(OBJECTS) $(TARGET)
48
# Can change this to LINK.c if it is a C only program
49
# Can add more libraries here.
51
$(LINK.cc) -o $@ $^ $(ICULIBS)
53
# Make check: simply runs the sample, logged to a file
55
$(INVOKE) ./$(TARGET) | tee $(TARGET).out
57
# Make report: creates a 'report file' with both source and sample run
58
report: $(TARGET).report
60
$(TARGET).report: check $(TARGET).cpp
61
more $(TARGET).cpp $(TARGET).out > $@
64
@echo "Please read the directions at the top of this file (Makefile)"
65
@echo "Can't open $(ICU_INC)"
68
ifneq ($(MAKECMDGOALS),distclean)