1 # Copyright (c) 2002-2010 IBM, Inc. and others
2 # sample code rules for a single-target simple sample
4 # list of targets that aren't actually created
5 .PHONY: all clean distclean check report
7 all: $(ALL_SUBDIR) $(RESTARGET) $(TARGET)
10 $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ $(XTRALIBS)
12 $(RESTARGET): $(RESFILES)
13 $(PKGDATA) --name $(RESNAME) --mode $(RESMODE) $(PKGDATAOPTS) $(RESLIST)
15 res-install: $(RESTARGET)
16 $(PKGDATA) --name $(RESNAME) --mode $(RESMODE) $(PKGDATAOPTS) $(RESLIST) --install $(shell icu-config --libdir)
19 distclean clean: $(CLEAN_SUBDIR)
20 -test -z "$(CLEANFILES)" || rm -rf $(CLEANFILES)
21 -rm -rf $(OBJECTS) $(TARGET) $(RESTARGET) $(RESFILES)
23 # Make check: simply runs the sample, logged to a file
24 check: $(ALL_SUBDIR) $(RESTARGET) $(TARGET)
25 $(INVOKE) $(CHECK_VARS) ./$(TARGET) $(CHECK_ARGS) | tee $(TARGET).out
30 $(GENRB) $(GENRBOPT) $^
32 $(RESNAME)/%.res: %.txt
34 $(GENRB) $(GENRBOPT) $^
36 ## Some platforms don't have .cpp as a default suffix, so add the rule here
38 $(COMPILE.cc) $< $(OUTPUT_OPTION)