12e5b6d6dSopenharmony_ci# -*- makefile -*- 22e5b6d6dSopenharmony_ci# 32e5b6d6dSopenharmony_ci# Copyright (C) 2017 and later: Unicode, Inc. and others. 42e5b6d6dSopenharmony_ci# License & terms of use: http://www.unicode.org/copyright.html 52e5b6d6dSopenharmony_ci# 62e5b6d6dSopenharmony_ci# Copyright (C) 2008-2013 IBM Corporation and Others. All Rights Reserved. 72e5b6d6dSopenharmony_ciCPPFLAGS+=-DU_DISABLE_RENAMING=1 -I. -I/xsrl/IIE/include -I/xsrl/E/icu/source/tools/toolutil 82e5b6d6dSopenharmony_ci# TODO - where to get uoptions.h? 92e5b6d6dSopenharmony_ciOBJECTS=testxml.o xmlout.o 102e5b6d6dSopenharmony_ciCXX_SOURCES:=$(OBJECTS:%.o=%.cpp) 112e5b6d6dSopenharmony_ciC_SOURCES= 122e5b6d6dSopenharmony_ciHEADERS=xmlout.h 132e5b6d6dSopenharmony_ciTARGET=testxml 142e5b6d6dSopenharmony_ci 152e5b6d6dSopenharmony_ciall: 162e5b6d6dSopenharmony_ci @echo To build and list "'" $(OUTFILES) "'" in "'" $(C_GOOD) "'" use "$(MAKE) check" 172e5b6d6dSopenharmony_ci 182e5b6d6dSopenharmony_ciMULTICU_ROOT=../../ 192e5b6d6dSopenharmony_ciinclude $(MULTICU_ROOT)/c/Makefile-c.inc 202e5b6d6dSopenharmony_ci 212e5b6d6dSopenharmony_ciOUT=./xml 222e5b6d6dSopenharmony_ci$(OUT): 232e5b6d6dSopenharmony_ci mkdir $(OUT) 242e5b6d6dSopenharmony_ci 252e5b6d6dSopenharmony_ciOUTFILES=$(C_GOOD:%=$(OUT)/%.xml) 262e5b6d6dSopenharmony_ci 272e5b6d6dSopenharmony_ci 282e5b6d6dSopenharmony_ci.PRECIOUS: $(C_CLEAN_TARGET) 292e5b6d6dSopenharmony_ci 302e5b6d6dSopenharmony_ci## Generate a file 312e5b6d6dSopenharmony_ci$(OUT)/%.xml: $(OUT) $(C_INS)/%/bin/$(TARGET) 322e5b6d6dSopenharmony_ci $(shell $(C_INS)/$*/bin/icu-config --invoke) $(C_INS)/$*/bin/$(TARGET) > $@ 332e5b6d6dSopenharmony_ci 342e5b6d6dSopenharmony_ci## clean 352e5b6d6dSopenharmony_ciclean: 362e5b6d6dSopenharmony_ci -rm -f $(C_CLEAN_TARGET) 372e5b6d6dSopenharmony_ci -rm -f ./$(OUT)/* 382e5b6d6dSopenharmony_ci -rmdir $(OUT) 392e5b6d6dSopenharmony_ci 402e5b6d6dSopenharmony_ci## Just generate 412e5b6d6dSopenharmony_cioutfiles: $(OUTFILES) 422e5b6d6dSopenharmony_ci 432e5b6d6dSopenharmony_ci## Test: generate out files, and print them. 442e5b6d6dSopenharmony_cicheck: $(OUTFILES) 452e5b6d6dSopenharmony_ci @for file in $(OUTFILES); \ 462e5b6d6dSopenharmony_ci do \ 472e5b6d6dSopenharmony_ci echo; \ 482e5b6d6dSopenharmony_ci sed -e "s%^%$$file: %g" < $$file; \ 492e5b6d6dSopenharmony_ci done 502e5b6d6dSopenharmony_ci 512e5b6d6dSopenharmony_ci 52