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=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# Japanese dictionary
39SHL1TARGET=dict_ja
40SHL1IMPLIB=i$(SHL1TARGET)
41
42SHL1VERSIONMAP=$(TARGET).map
43SHL1DEF=$(MISC)$/$(SHL1TARGET).def
44DEF1NAME=$(SHL1TARGET)
45
46SHL1OBJS= \
47	$(SLO)$/dict_ja.obj
48
49LIB1TARGET=	$(SLB)$/$(SHL1TARGET).lib
50LIB1OBJFILES=$(SHL1OBJS)
51
52# Chinese dictionary
53SHL2TARGET=dict_zh
54SHL2IMPLIB=i$(SHL2TARGET)
55
56SHL2VERSIONMAP=$(TARGET).map
57SHL2DEF=$(MISC)$/$(SHL2TARGET).def
58DEF2NAME=$(SHL2TARGET)
59
60SHL2OBJS= \
61	$(SLO)$/dict_zh.obj
62
63LIB2TARGET=	$(SLB)$/$(SHL2TARGET).lib
64LIB2OBJFILES=$(SHL2OBJS)
65
66DEPOBJFILES= \
67	$(SLO1FILES) \
68	$(SLO2FILES)
69
70# --- Targets ------------------------------------------------------
71.INCLUDE :  target.mk
72
73$(MISC)$/dict_%.cxx : %.dic
74	$(AUGMENT_LIBRARY_PATH) $(BIN)$/gendict $< $@
75
76# ugly - is this dependency really required here?
77$(foreach,i,$(shell @$(FIND) . -name "*.dic") $(MISC)$/dict_$(i:b).cxx) : $(BIN)$/gendict$(EXECPOST)
78
79