1*8809db7aSAndrew Rist#**************************************************************
2*8809db7aSAndrew Rist#
3*8809db7aSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*8809db7aSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*8809db7aSAndrew Rist#  distributed with this work for additional information
6*8809db7aSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*8809db7aSAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*8809db7aSAndrew Rist#  "License"); you may not use this file except in compliance
9*8809db7aSAndrew Rist#  with the License.  You may obtain a copy of the License at
10*8809db7aSAndrew Rist#
11*8809db7aSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*8809db7aSAndrew Rist#
13*8809db7aSAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*8809db7aSAndrew Rist#  software distributed under the License is distributed on an
15*8809db7aSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*8809db7aSAndrew Rist#  KIND, either express or implied.  See the License for the
17*8809db7aSAndrew Rist#  specific language governing permissions and limitations
18*8809db7aSAndrew Rist#  under the License.
19*8809db7aSAndrew Rist#
20*8809db7aSAndrew Rist#**************************************************************
21cdf0e10cSrcweirPRJ=..$/..$/..
22cdf0e10cSrcweir
23cdf0e10cSrcweirPRJNAME=i18npool
24cdf0e10cSrcweirTARGET=collator_data
25cdf0e10cSrcweir
26cdf0e10cSrcweir# --- Settings -----------------------------------------------------
27cdf0e10cSrcweir.INCLUDE :  settings.mk
28cdf0e10cSrcweir
29cdf0e10cSrcweir# Fix heap limit problem on MSC
30cdf0e10cSrcweir.IF "$(OS)" == "WNT"
31cdf0e10cSrcweir.IF  "$(COMEX)" != "8"
32cdf0e10cSrcweirCDEFS+=-Zm300
33cdf0e10cSrcweir.ENDIF
34cdf0e10cSrcweir.ENDIF
35cdf0e10cSrcweir
36cdf0e10cSrcweir# --- Files --------------------------------------------------------
37cdf0e10cSrcweir
38cdf0e10cSrcweir# collator data library
39cdf0e10cSrcweirSHL1TARGET=$(TARGET)
40cdf0e10cSrcweirSHL1IMPLIB=i$(SHL1TARGET)
41cdf0e10cSrcweir
42cdf0e10cSrcweirSHL1VERSIONMAP=$(SHL1TARGET).map
43cdf0e10cSrcweirSHL1DEF=$(MISC)$/$(SHL1TARGET).def
44cdf0e10cSrcweirDEF1NAME=$(SHL1TARGET)
45cdf0e10cSrcweir
46cdf0e10cSrcweirDATA_TXTFILES:=$(shell @ls ./*.txt)
47cdf0e10cSrcweirSLOFILES=$(subst,./,$(SLO)$/collator_ $(DATA_TXTFILES:s/.txt/.obj/))
48cdf0e10cSrcweirSHL1OBJS=$(SLOFILES)
49cdf0e10cSrcweir
50cdf0e10cSrcweir# --- Targets ------------------------------------------------------
51cdf0e10cSrcweir.INCLUDE :  target.mk
52cdf0e10cSrcweir
53cdf0e10cSrcweir$(MISC)$/collator_%.cxx : %.txt
54cdf0e10cSrcweir    $(AUGMENT_LIBRARY_PATH) $(BIN)$/gencoll_rule $< $@ $*
55cdf0e10cSrcweir
56cdf0e10cSrcweir# ugly - is this dependency really required here?
57cdf0e10cSrcweir$(foreach,i,$(shell @$(FIND) . -name "*.txt") $(MISC)$/dict_$(i:b).cxx) : $(BIN)$/gencoll_rule$(EXECPOST)
58cdf0e10cSrcweir
59