X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/73c04bcfe1096173b00431f0cdc742894b15eef0..51004dcb01e06fef634b61be77ed73dd61cb6db9:/icuSources/samples/rules.mk diff --git a/icuSources/samples/rules.mk b/icuSources/samples/rules.mk index f7eea2a6..ac0e27e4 100644 --- a/icuSources/samples/rules.mk +++ b/icuSources/samples/rules.mk @@ -1,4 +1,4 @@ -# Copyright (c) 2002-2005 IBM, Inc. and others +# Copyright (c) 2002-2012 IBM, Inc. and others # sample code rules for a single-target simple sample # list of targets that aren't actually created @@ -7,7 +7,7 @@ all: $(ALL_SUBDIR) $(RESTARGET) $(TARGET) $(TARGET): $(OBJECTS) - $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ $(XTRALIBS) + $(LINK.cc) $(LOADLIBES) $(LDLIBS) -o $@ $(XTRALIBS) -licui18n -licuuc $(RESTARGET): $(RESFILES) $(PKGDATA) --name $(RESNAME) --mode $(RESMODE) $(PKGDATAOPTS) $(RESLIST) @@ -21,7 +21,7 @@ distclean clean: $(CLEAN_SUBDIR) -rm -rf $(OBJECTS) $(TARGET) $(RESTARGET) $(RESFILES) # Make check: simply runs the sample, logged to a file -check: $(TARGET) +check: $(ALL_SUBDIR) $(RESTARGET) $(TARGET) $(INVOKE) $(CHECK_VARS) ./$(TARGET) $(CHECK_ARGS) | tee $(TARGET).out ## resources @@ -32,3 +32,7 @@ check: $(TARGET) $(RESNAME)/%.res: %.txt @echo "generating $@" $(GENRB) $(GENRBOPT) $^ + +## Some platforms don't have .cpp as a default suffix, so add the rule here +%.o: %.cpp + $(COMPILE.cc) $< $(OUTPUT_OPTION)