12e5b6d6dSopenharmony_ci#
22e5b6d6dSopenharmony_ci# Copyright (C) 2017 and later: Unicode, Inc. and others.
32e5b6d6dSopenharmony_ci# License & terms of use: http://www.unicode.org/copyright.html
42e5b6d6dSopenharmony_ci#
52e5b6d6dSopenharmony_ci# Copyright (C) 2008-2012 IBM Corporation and Others. All Rights Reserved.
62e5b6d6dSopenharmony_ciMULTICU_ROOT=../../
72e5b6d6dSopenharmony_ciinclude $(MULTICU_ROOT)/common/Makefile-multi.inc
82e5b6d6dSopenharmony_ci
92e5b6d6dSopenharmony_ciXML=./xml
102e5b6d6dSopenharmony_ciJXML=./jxml
112e5b6d6dSopenharmony_ciJVMXML=./jvmxml
122e5b6d6dSopenharmony_ci
132e5b6d6dSopenharmony_ciCOOKED=cooked
142e5b6d6dSopenharmony_ciINPUT=input
152e5b6d6dSopenharmony_ciINTROXMLS=$(wildcard $(INPUT)/*-introduction.xml)
162e5b6d6dSopenharmony_ciFEATXMLS=$(INTROXMLS:$(INPUT)/%-introduction.xml=$(COOKED)/%-cooked.xml) $(COOKED)/characters.xml
172e5b6d6dSopenharmony_ciALLCOOKED=cooked/features.xml
182e5b6d6dSopenharmony_ci
192e5b6d6dSopenharmony_ci# java stuff
202e5b6d6dSopenharmony_ciMergerName=Merger
212e5b6d6dSopenharmony_ciPropagateName=PropagateFeatures
222e5b6d6dSopenharmony_ciPropagateCharsName=PropagateCharacters
232e5b6d6dSopenharmony_ciMergerPackage=com.ibm.icu.dev.meta
242e5b6d6dSopenharmony_ciMergerPackageSlash=$(subst .,/,$(MergerPackage))
252e5b6d6dSopenharmony_ci## ICUMETA=/xsrl/E/data/meta  (in Makefile.local)
262e5b6d6dSopenharmony_ciMergerLib=$(ICUMETA)/lib
272e5b6d6dSopenharmony_ciMergerJar=$(ICUMETA)/icumeta.jar
282e5b6d6dSopenharmony_ci#was: $(ICUMETA)/classes
292e5b6d6dSopenharmony_ciMergerClassPath=$(shell ls $(MergerLib)/*.jar | tr '\n' ':')$(MergerJar):$(OTHERJARS)
302e5b6d6dSopenharmony_ciinclude Makefile.local
312e5b6d6dSopenharmony_ciMergerBuild=$(ICUMETA)/build.xml
322e5b6d6dSopenharmony_ci#MergerClass=$(ICUMETA)/classes/$(MergerPackageSlash)/$(MergerName).class
332e5b6d6dSopenharmony_ci#MergerJava=$(ICUMETA)/src/$(MergerPackageSlash)/$(MergerName).java
342e5b6d6dSopenharmony_ci#BASEXMLS=$(ICUMETA)/xml/icumeta.xml
352e5b6d6dSopenharmony_ciBASEXMLS=$(ICUMETA)/input/versions.xml
362e5b6d6dSopenharmony_ci
372e5b6d6dSopenharmony_ci
382e5b6d6dSopenharmony_ciAPRECIOUS=$(ICUVERS:%=$(BLD)/%/$(S_SRC)) $(ICUVERS:%=$(BLD)/%/$(S_BLD)) $(ICUVERS:%=$(INS)/%/$(S_INS))
392e5b6d6dSopenharmony_ci
402e5b6d6dSopenharmony_ciall: icucaps.xml
412e5b6d6dSopenharmony_ci
422e5b6d6dSopenharmony_ci.PRECIOUS: $(APRECIOUS)
432e5b6d6dSopenharmony_ci
442e5b6d6dSopenharmony_citehprecious:
452e5b6d6dSopenharmony_ci	echo $(APRECIOUS)
462e5b6d6dSopenharmony_ci
472e5b6d6dSopenharmony_ci$(MergerJar):
482e5b6d6dSopenharmony_ci	( cd $(ICUMETA)  ; ant jar )
492e5b6d6dSopenharmony_ci
502e5b6d6dSopenharmony_ci$(BLD):
512e5b6d6dSopenharmony_ci	-mkdir $(BLD)
522e5b6d6dSopenharmony_ci
532e5b6d6dSopenharmony_ci$(XML):
542e5b6d6dSopenharmony_ci	-mkdir $(XML)
552e5b6d6dSopenharmony_ci
562e5b6d6dSopenharmony_ci$(JXML):
572e5b6d6dSopenharmony_ci	-mkdir $(JXML)
582e5b6d6dSopenharmony_ci
592e5b6d6dSopenharmony_ci$(JVMXML):
602e5b6d6dSopenharmony_ci	-mkdir $(JXML)
612e5b6d6dSopenharmony_ci
622e5b6d6dSopenharmony_ciifeq ($(JVMSH),)
632e5b6d6dSopenharmony_ciJVMSH_WARN=warn-jvmsh
642e5b6d6dSopenharmony_ciwarn-jvmsh:
652e5b6d6dSopenharmony_ci	@echo "Note: No $(JVM)/*$(JVM_CFG) files found, see $(JVM)/readme.txt"
662e5b6d6dSopenharmony_ciendif
672e5b6d6dSopenharmony_ci
682e5b6d6dSopenharmony_ci
692e5b6d6dSopenharmony_ciDTDCACHE=$(shell pwd)/dtdcache
702e5b6d6dSopenharmony_ciDTDTMP=$(shell pwd)/dtdtmp
712e5b6d6dSopenharmony_ciDTDOVR=$(ICUMETA)/dtd
722e5b6d6dSopenharmony_ciJAVADEBUG=-DCLDR_DTD_CACHE_DEBUG=n -DCLDR_DTD_CACHE_ADEBUG=n 
732e5b6d6dSopenharmony_ciJAVAPROPS= -DCLDR_DTD_CACHE=$(DTDCACHE) -DCLDR_DTD_OVERRIDE=$(DTDOVR) -DICU_DTD_CACHE=$(DTDCACHE) -DICU_DTD_OVERRIDE=$DTDOVR 
742e5b6d6dSopenharmony_ci
752e5b6d6dSopenharmony_ci#//$(DTD)/Makefile: $(ICUMETA)/dtd/Makfile
762e5b6d6dSopenharmony_ci#//	ln -s $^ $@
772e5b6d6dSopenharmony_ci#//
782e5b6d6dSopenharmony_ci#//dtd/icucaps.dtd: $(DTD)/Makefile dtd/icucaps.rnc
792e5b6d6dSopenharmony_ci#//	make -C $(DTD)
802e5b6d6dSopenharmony_ci
812e5b6d6dSopenharmony_ciICUMETA_XML=$(ICUMETA)/xml/icumeta.xml
822e5b6d6dSopenharmony_ciBASE_VERSION=$(COOKED)/allversions.xml
832e5b6d6dSopenharmony_ciBASE_SOURCE=$(BASEXMLS) $(INPUT)/java.xml
842e5b6d6dSopenharmony_ci
852e5b6d6dSopenharmony_ci
862e5b6d6dSopenharmony_ci#$(ICUMETA)/xml/icumeta.xml: $(MergerBuild)
872e5b6d6dSopenharmony_ci#	( cd $(ICUMETA) ; ant xml )	
882e5b6d6dSopenharmony_ci
892e5b6d6dSopenharmony_ciALLXMLS=$(wildcard $(XML)/*.xml $(JXML)/*.xml $(JVMXML)/*.xml)
902e5b6d6dSopenharmony_ci
912e5b6d6dSopenharmony_ciallxmls: $(XML) $(JXML) $(JVMXML)
922e5b6d6dSopenharmony_ci	$(MAKE) -f Makefile_c outfiles
932e5b6d6dSopenharmony_ci	$(MAKE) -f Makefile_j outfiles
942e5b6d6dSopenharmony_ci
952e5b6d6dSopenharmony_ci
962e5b6d6dSopenharmony_cifeatxmls: $(FEATXMLS)
972e5b6d6dSopenharmony_ci
982e5b6d6dSopenharmony_ciallcooked: $(ALLCOOKED)
992e5b6d6dSopenharmony_ci
1002e5b6d6dSopenharmony_ci$(COOKED):
1012e5b6d6dSopenharmony_ci	-mkdir $(COOKED)
1022e5b6d6dSopenharmony_ci
1032e5b6d6dSopenharmony_ci$(BASE_VERSION): $(BASE_SOURCE) $(MergerJar) | $(COOKED)
1042e5b6d6dSopenharmony_ci	-rm -rf ./dtdcache
1052e5b6d6dSopenharmony_ci	mkdir dtdcache
1062e5b6d6dSopenharmony_ci	java $(JAVAPROPS) -classpath $(MergerClassPath) $(MergerPackage).$(MergerName) -v  -o:$@ $(BASE_SOURCE)
1072e5b6d6dSopenharmony_ci
1082e5b6d6dSopenharmony_ci$(ALLCOOKED): $(FEATXMLS) $(MergerJar)
1092e5b6d6dSopenharmony_ci	-rm -rf ./dtdcache
1102e5b6d6dSopenharmony_ci	mkdir dtdcache
1112e5b6d6dSopenharmony_ci	java $(JAVAPROPS) -classpath $(MergerClassPath) $(MergerPackage).$(MergerName) -v  -o:$@ $(FEATXMLS)
1122e5b6d6dSopenharmony_ci
1132e5b6d6dSopenharmony_ci$(COOKED)/%-cooked.xml: $(BASE_VERSION) $(INPUT)/%-introduction.xml $(MergerJar) | $(COOKED)
1142e5b6d6dSopenharmony_ci	-rm -rf ./dtdcache
1152e5b6d6dSopenharmony_ci	mkdir dtdcache
1162e5b6d6dSopenharmony_ci	java $(JAVAPROPS) -classpath $(MergerClassPath) $(MergerPackage).$(PropagateName) $(BASE_VERSION) $(INPUT)/$*-introduction.xml > $(COOKED)/$*-cooked.xml
1172e5b6d6dSopenharmony_ci
1182e5b6d6dSopenharmony_ci$(COOKED)/characters.xml: $(ALLXMLS) $(COOKED)/junicode-cooked.xml $(MergerJar)
1192e5b6d6dSopenharmony_ci	java $(JAVAPROPS) -classpath $(MergerClassPath) $(MergerPackage).$(PropagateCharsName) > $@ $(ALLXMLS)  $(COOKED)/junicode-cooked.xml  || (rm ./$@ ; false)
1202e5b6d6dSopenharmony_ci
1212e5b6d6dSopenharmony_ci 
1222e5b6d6dSopenharmony_ciicucaps.xml: allxmls $(BASE_VERSION)  $(ALLXMLS) $(MergerJar) $(ALLCOOKED)
1232e5b6d6dSopenharmony_ci	-rm -rf ./dtdcache
1242e5b6d6dSopenharmony_ci	mkdir dtdcache
1252e5b6d6dSopenharmony_ci#	-rm -rf ./dtdtmp
1262e5b6d6dSopenharmony_ci#	mkdir dtdtmp
1272e5b6d6dSopenharmony_ci#	ln -s $(ICUMETA)/dtd/*.dtd ./dtdtmp/
1282e5b6d6dSopenharmony_ci#	ln -s ./dtd/*.dtd ./dtdtmp/
1292e5b6d6dSopenharmony_ci	java $(JAVAPROPS) -classpath $(MergerClassPath) $(MergerPackage).$(MergerName) -v  -o:$@ $(BASE_VERSION)  $(ALLXMLS) $(ALLJXMLS) $(ALLCOOKED)
1302e5b6d6dSopenharmony_ci
131