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.IF "$(GUI)" == "OS2"
40SHL1STDLIBS+= $(SALLIB) $(CPPULIB)
41.ENDIF
42
43# collator data library
44SHL1TARGET=$(TARGET)
45SHL1IMPLIB=i$(SHL1TARGET)
46
47SHL1VERSIONMAP=$(SHL1TARGET).map
48SHL1DEF=$(MISC)$/$(SHL1TARGET).def
49DEF1NAME=$(SHL1TARGET)
50
51DATA_FILES:=$(shell @ls ./*.dic)
52SHL1OBJS=$(subst,./,$(SLO)$/ $(DATA_FILES:s/.dic/.obj/))
53
54LIB1TARGET=	$(SLB)$/$(SHL1TARGET).lib
55LIB1OBJFILES=$(SHL1OBJS)
56
57# --- Targets ------------------------------------------------------
58.INCLUDE :  target.mk
59
60APP1TARGET = genconv_dict
61$(MISC)$/%.cxx : %.dic
62	$(AUGMENT_LIBRARY_PATH) $(BIN)$/genconv_dict $* $< $@
63
64# ugly - is this dependency really required here?
65.IF "$(GUI)" != "OS2"
66$(foreach,i,$(shell @$(FIND) . -name "*.dic") $(MISC)$/dict_$(i:b).cxx) : $(BIN)$/genconv_dict$(EXECPOST)
67.ENDIF
68
69