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