summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu/icu-xetex/samples/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/icu/icu-xetex/samples/rules.mk')
-rw-r--r--Build/source/libs/icu/icu-xetex/samples/rules.mk38
1 files changed, 38 insertions, 0 deletions
diff --git a/Build/source/libs/icu/icu-xetex/samples/rules.mk b/Build/source/libs/icu/icu-xetex/samples/rules.mk
new file mode 100644
index 00000000000..5d39b7c7eae
--- /dev/null
+++ b/Build/source/libs/icu/icu-xetex/samples/rules.mk
@@ -0,0 +1,38 @@
+# Copyright (c) 2002-2006 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)
+
+$(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: $(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)