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=textconv_dict
25LIBTARGET=NO
26
27# --- Settings -----------------------------------------------------
28.INCLUDE :  settings.mk
29
30# Fix heap limit problem on MSC
31.IF "$(OS)" == "WNT"
32.IF  "$(COMEX)" != "8"
33CDEFS+=-Zm300
34.ENDIF
35.ENDIF
36
37# --- Files --------------------------------------------------------
38
39# collator data library
40SHL1TARGET=$(TARGET)
41SHL1IMPLIB=i$(SHL1TARGET)
42
43SHL1VERSIONMAP=$(SHL1TARGET).map
44SHL1DEF=$(MISC)$/$(SHL1TARGET).def
45DEF1NAME=$(SHL1TARGET)
46
47DATA_FILES:=$(shell @ls ./*.dic)
48SHL1OBJS=$(subst,./,$(SLO)$/ $(DATA_FILES:s/.dic/.obj/))
49
50LIB1TARGET=	$(SLB)$/$(SHL1TARGET).lib
51LIB1OBJFILES=$(SHL1OBJS)
52
53# --- Targets ------------------------------------------------------
54.INCLUDE :  target.mk
55
56APP1TARGET = genconv_dict
57$(MISC)$/%.cxx : %.dic
58	$(AUGMENT_LIBRARY_PATH) $(BIN)$/genconv_dict $* $< $@
59
60# ugly - is this dependency really required here?
61.IF "$(GUI)" != "OS2"
62$(foreach,i,$(shell @$(FIND) . -name "*.dic") $(MISC)$/dict_$(i:b).cxx) : $(BIN)$/genconv_dict$(EXECPOST)
63.ENDIF
64
65