• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# -*- makefile -*-
2#
3# Copyright (C) 2017 and later: Unicode, Inc. and others.
4# License & terms of use: http://www.unicode.org/copyright.html
5#
6# Copyright (C) 2008-2013 IBM Corporation and Others. All Rights Reserved.
7CPPFLAGS+=-DU_DISABLE_RENAMING=1 -I. -I/xsrl/IIE/include -I/xsrl/E/icu/source/tools/toolutil
8# TODO - where to get uoptions.h?
9OBJECTS=testxml.o xmlout.o
10CXX_SOURCES:=$(OBJECTS:%.o=%.cpp)
11C_SOURCES=
12HEADERS=xmlout.h
13TARGET=testxml
14
15all:
16	@echo To build and list "'" $(OUTFILES) "'"  in "'" $(C_GOOD) "'" use "$(MAKE) check"
17
18MULTICU_ROOT=../../
19include $(MULTICU_ROOT)/c/Makefile-c.inc
20
21OUT=./xml
22$(OUT):
23	mkdir $(OUT)
24
25OUTFILES=$(C_GOOD:%=$(OUT)/%.xml)
26
27
28.PRECIOUS: $(C_CLEAN_TARGET)
29
30## Generate a file
31$(OUT)/%.xml: $(OUT) $(C_INS)/%/bin/$(TARGET)
32	$(shell $(C_INS)/$*/bin/icu-config --invoke) $(C_INS)/$*/bin/$(TARGET)  > $@
33
34## clean
35clean:
36	-rm -f $(C_CLEAN_TARGET)
37	-rm -f ./$(OUT)/*
38	-rmdir $(OUT)
39
40## Just generate
41outfiles: $(OUTFILES)
42
43## Test: generate out files, and print them.
44check: $(OUTFILES)
45	@for file in $(OUTFILES); \
46	do \
47		echo; \
48		sed -e "s%^%$$file: %g" < $$file; \
49	done
50
51
52