1
# Copyright (c) 2000 IBM, Inc. and others
2
# conversion sample code $Revision: 1.4 $
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)/lib/icu/Makefile.inc )
14
# set the variable ICU_PREFIX to point at $(prefix)
16
# - do 'make' in this directory
18
ICU_DEFAULT_PREFIX=/home/srl/II
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++)
33
OBJECTS=convsamp.o flagcb.o
35
CLEANFILES=*~ $(TARGET).out
39
# turn on super warnings
45
.PHONY: all clean distclean check report
48
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
49
-$(RMV) $(OBJECTS) $(TARGET)
52
# Can change this to LINK.c if it is a C only program
53
# Can add more libraries here.
55
$(LINK.cc) -o $@ $^ $(ICULIBS)
57
# Make check: simply runs the sample, logged to a file
59
$(TARGET) | tee $(TARGET).out
61
# Make report: creates a 'report file' with both source and sample run
62
report: $(TARGET).report
64
$(TARGET).report: check $(TARGET).cpp
65
more $(TARGET).cpp $(TARGET).out > $@
68
@echo "Please read the directions at the top of this file (Makefile)"
69
@echo "Can't open $(ICU_INC)"
72
ifneq ($(MAKECMDGOALS),distclean)