blob: 5d39b7c7eaee938bee668c23c1f4dc295594fead [file] [log] [blame]
# 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
$( $^ $(LOADLIBES) $(LDLIBS) -o $@ $(XTRALIBS)
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)
# Make check: simply runs the sample, logged to a file
check: $(TARGET)
## resources
%.res: %.txt
@echo "generating $@"
$(RESNAME)/%.res: %.txt
@echo "generating $@"
## Some platforms don't have .cpp as a default suffix, so add the rule here
%.o: %.cpp