13eeae035SAndrew Rist#**************************************************************
23eeae035SAndrew Rist#
33eeae035SAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
43eeae035SAndrew Rist#  or more contributor license agreements.  See the NOTICE file
53eeae035SAndrew Rist#  distributed with this work for additional information
63eeae035SAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
73eeae035SAndrew Rist#  to you under the Apache License, Version 2.0 (the
83eeae035SAndrew Rist#  "License"); you may not use this file except in compliance
93eeae035SAndrew Rist#  with the License.  You may obtain a copy of the License at
103eeae035SAndrew Rist#
113eeae035SAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
123eeae035SAndrew Rist#
133eeae035SAndrew Rist#  Unless required by applicable law or agreed to in writing,
143eeae035SAndrew Rist#  software distributed under the License is distributed on an
153eeae035SAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
163eeae035SAndrew Rist#  KIND, either express or implied.  See the License for the
173eeae035SAndrew Rist#  specific language governing permissions and limitations
183eeae035SAndrew Rist#  under the License.
193eeae035SAndrew Rist#
203eeae035SAndrew Rist#**************************************************************
213eeae035SAndrew Rist
223eeae035SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=..$/..
25cdf0e10cSrcweir
26cdf0e10cSrcweirPRJNAME=i18npool
27cdf0e10cSrcweirTARGET=collator
28cdf0e10cSrcweir
29cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE
30cdf0e10cSrcweir
31cdf0e10cSrcweir# --- Settings -----------------------------------------------------
32cdf0e10cSrcweir
33cdf0e10cSrcweir.INCLUDE :	settings.mk
34cdf0e10cSrcweir
35cdf0e10cSrcweir# --- Files --------------------------------------------------------
36cdf0e10cSrcweir
37*03c97e34SYuri Dario.IF "$(GUI)" == "OS2"
38*03c97e34SYuri Dariotxtlist:=$(shell @cd data > $(NULLDEV) && ls *.txt)
39*03c97e34SYuri Dario.ELSE
40cdf0e10cSrcweirtxtlist:=$(shell @cd data >& $(NULLDEV) && ls *.txt)
41*03c97e34SYuri Dario.ENDIF
42cdf0e10cSrcweirLOCAL_RULE_LANGS:=$(uniq $(foreach,i,$(txtlist) $(i:s/-/_/:s/_/ /:1)))
43cdf0e10cSrcweirrules_dependencies:=$(foreach,i,$(txtlist) data$/$i) $(INCCOM)$/lrl_include.hxx
44cdf0e10cSrcweir
45cdf0e10cSrcweirrules_obj = $(SLO)$/collator_unicode.obj
46cdf0e10cSrcweir
47cdf0e10cSrcweirSLOFILES=   \
48cdf0e10cSrcweir		$(SLO)$/collatorImpl.obj \
49cdf0e10cSrcweir		$(SLO)$/chaptercollator.obj \
50cdf0e10cSrcweir		$(rules_obj)
51cdf0e10cSrcweir
52cdf0e10cSrcweirAPP1TARGET = gencoll_rule
53cdf0e10cSrcweirAPP1RPATH = NONE
54cdf0e10cSrcweir
55cdf0e10cSrcweirAPP1OBJS   = $(OBJ)$/gencoll_rule.obj
56cdf0e10cSrcweir
57cdf0e10cSrcweirDEPOBJFILES = $(APP1OBJS)
58cdf0e10cSrcweir
59cdf0e10cSrcweirAPP1STDLIBS = $(SALLIB) \
60cdf0e10cSrcweir		$(ICUINLIB) \
61cdf0e10cSrcweir		$(ICUUCLIB) \
62cdf0e10cSrcweir		$(ICUDATALIB)
63cdf0e10cSrcweir
64cdf0e10cSrcweir# --- Targets ------------------------------------------------------
65cdf0e10cSrcweir
66cdf0e10cSrcweir.INCLUDE :	target.mk
67cdf0e10cSrcweir
68cdf0e10cSrcweir$(rules_obj) : $(rules_dependencies)
69cdf0e10cSrcweir
70cdf0e10cSrcweir$(INCCOM)$/lrl_include.hxx: $(foreach,i,$(txtlist) data$/$i)
71cdf0e10cSrcweir	@@$(RM) $@
72*03c97e34SYuri Dario.IF "$(GUI)" == "OS2"
73*03c97e34SYuri Dario	@echo $(EMQ)#define LOCAL_RULE_LANGS $(EMQ)"$(LOCAL_RULE_LANGS)$(EMQ)" > $@
74*03c97e34SYuri Dario.ELSE
75cdf0e10cSrcweir	@echo $(EMQ)#define LOCAL_RULE_LANGS $(EMQ)"$(LOCAL_RULE_LANGS)$(EMQ)" >& $@
76*03c97e34SYuri Dario.ENDIF
77cdf0e10cSrcweir
78