Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(756)

Unified Diff: icu52/source/samples/rules.mk

Issue 245383002: Add the original mk (make) files for ICU 52 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « icu52/source/samples/defs.mk ('k') | icu52/source/samples/ufortune/fortunedefs.mk » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: icu52/source/samples/rules.mk
===================================================================
--- icu52/source/samples/rules.mk (revision 0)
+++ icu52/source/samples/rules.mk (revision 0)
@@ -0,0 +1,38 @@
+# 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
+.PHONY: all clean distclean check report
+
+all: $(ALL_SUBDIR) $(RESTARGET) $(TARGET)
+
+$(TARGET): $(OBJECTS)
+ $(LINK.cc) $(LOADLIBES) $(LDLIBS) -o $@ $(XTRALIBS) -licui18n -licuuc
+
+$(RESTARGET): $(RESFILES)
+ $(PKGDATA) --name $(RESNAME) --mode $(RESMODE) $(PKGDATAOPTS) $(RESLIST)
+
+res-install: $(RESTARGET)
+ $(PKGDATA) --name $(RESNAME) --mode $(RESMODE) $(PKGDATAOPTS) $(RESLIST) --install $(shell icu-config --libdir)
+
+# clean out files
+distclean clean: $(CLEAN_SUBDIR)
+ -test -z "$(CLEANFILES)" || rm -rf $(CLEANFILES)
+ -rm -rf $(OBJECTS) $(TARGET) $(RESTARGET) $(RESFILES)
+
+# Make check: simply runs the sample, logged to a file
+check: $(ALL_SUBDIR) $(RESTARGET) $(TARGET)
+ $(INVOKE) $(CHECK_VARS) ./$(TARGET) $(CHECK_ARGS) | tee $(TARGET).out
+
+## resources
+%.res: %.txt
+ @echo "generating $@"
+ $(GENRB) $(GENRBOPT) $^
+
+$(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)
Property changes on: icu52/source/samples/rules.mk
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « icu52/source/samples/defs.mk ('k') | icu52/source/samples/ufortune/fortunedefs.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698