]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/samples/udata/Makefile
ICU-66108.tar.gz
[apple/icu.git] / icuSources / samples / udata / Makefile
index 7de59c3b9445e2361bc7a7da9e56fe12e41e2200..9467631395d6359a3d2abbf1cec4a17e6dcf94eb 100644 (file)
@@ -1,5 +1,8 @@
-# Copyright (c) 2000 IBM, Inc. and others
-# udata sample code $Revision: 1.1.1.1 $
+# Copyright (C) 2016 and later: Unicode, Inc. and others.
+# License & terms of use: http://www.unicode.org/copyright.html#License
+#
+# 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) 
@@ -28,7 +31,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 +59,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)