-# Copyright (c) 2000 IBM, Inc. and others
-# udata sample code $Revision: 1.1.1.1 $
+# Copyright (c) 2000-2012 IBM, Inc. and others
+# udata sample code
# Usage:
# - configure, build, install ICU
# - ensure that 'icu-config' is in the PATH (PREFIX/bin/icu-config)
OBJECTS2=writer.o
OBJECTS=$(OBJECTS1) $(OBJECTS2)
-CLEANFILES=*~ $(TARGET).out
+CLEANFILES=*~ $(TARGET).out $(TARGET1).out $(TARGET2).out
all: $(TARGET1) $(TARGET2)
# Can change this to LINK.c if it is a C only program
# Can add more libraries here.
$(TARGET1): $(OBJECTS1)
- $(CC) -o $@ $^ $(LDFLAGS)
+ $(CXX) -o $@ $(LDFLAGS)
$(TARGET2): $(OBJECTS2)
- $(CC) -o $@ $^ $(LDFLAGS)
+ $(CXX) -o $@ $(LDFLAGS) -licui18n -licuuc
# Make check: simply runs the sample, logged to a file
check: $(TARGET1) $(TARGET2)