]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/samples/udata/Makefile
ICU-511.25.tar.gz
[apple/icu.git] / icuSources / samples / udata / Makefile
index 30927fc9860ad117027e9031885f9c90bfd4f9b0..450e7ded4c0a7fc3b310dc4053b8997f8ec9441f 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2000-2004 IBM, Inc. and others
+# Copyright (c) 2000-2012 IBM, Inc. and others
 # udata sample code
 # Usage:
 #  - configure, build, install ICU
@@ -28,7 +28,7 @@ OBJECTS1=reader.o
 OBJECTS2=writer.o
 OBJECTS=$(OBJECTS1) $(OBJECTS2)
 
-CLEANFILES=*~ $(TARGET).out
+CLEANFILES=*~ $(TARGET).out $(TARGET1).out $(TARGET2).out
 
 all: $(TARGET1) $(TARGET2)
 
@@ -56,10 +56,10 @@ distclean clean:
 # 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)