1#*************************************************************************
2#*
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#************************************************************************
27PRJ=..$/..$/..
28
29PRJNAME=i18npool
30TARGET=dict
31LIBTARGET=NO
32
33# --- Settings -----------------------------------------------------
34.INCLUDE :  settings.mk
35
36# Fix heap limit problem on MSC
37.IF "$(OS)" == "WNT"
38.IF  "$(COMEX)" != "8"
39CDEFS+=-Zm300
40.ENDIF
41.ENDIF
42
43# --- Files --------------------------------------------------------
44# Japanese dictionary
45SHL1TARGET=dict_ja
46SHL1IMPLIB=i$(SHL1TARGET)
47
48SHL1VERSIONMAP=$(TARGET).map
49SHL1DEF=$(MISC)$/$(SHL1TARGET).def
50DEF1NAME=$(SHL1TARGET)
51
52SHL1OBJS= \
53	$(SLO)$/dict_ja.obj
54
55LIB1TARGET=	$(SLB)$/$(SHL1TARGET).lib
56LIB1OBJFILES=$(SHL1OBJS)
57
58# Chinese dictionary
59SHL2TARGET=dict_zh
60SHL2IMPLIB=i$(SHL2TARGET)
61
62SHL2VERSIONMAP=$(TARGET).map
63SHL2DEF=$(MISC)$/$(SHL2TARGET).def
64DEF2NAME=$(SHL2TARGET)
65
66SHL2OBJS= \
67	$(SLO)$/dict_zh.obj
68
69LIB2TARGET=	$(SLB)$/$(SHL2TARGET).lib
70LIB2OBJFILES=$(SHL2OBJS)
71
72DEPOBJFILES= \
73	$(SLO1FILES) \
74	$(SLO2FILES)
75
76# --- Targets ------------------------------------------------------
77.INCLUDE :  target.mk
78
79$(MISC)$/dict_%.cxx : %.dic
80	$(AUGMENT_LIBRARY_PATH) $(BIN)$/gendict $< $@
81
82# ugly - is this dependency really required here?
83$(foreach,i,$(shell @$(FIND) . -name "*.dic") $(MISC)$/dict_$(i:b).cxx) : $(BIN)$/gendict$(EXECPOST)
84
85