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#*************************************************************************
27
28PRJ = ..$/..$/..
29
30PRJNAME	= lingucomponent
31TARGET	= lnth
32ENABLE_EXCEPTIONS=TRUE
33USE_DEFFILE=TRUE
34
35.IF "$(MYTHESLIB)"==""
36.IF "$(GUI)"=="UNX"
37MYTHESLIB=-lmythes
38.ENDIF # unx
39.IF "$(GUI)"=="OS2"
40MYTHESLIB=$(SLB)\libmythes.lib
41.ENDIF # os2
42.IF "$(GUI)"=="WNT"
43MYTHESLIB=libmythes.lib
44.ENDIF # wnt
45.ENDIF
46
47#----- Settings ---------------------------------------------------------
48
49.INCLUDE : settings.mk
50
51# --- Files --------------------------------------------------------
52
53.IF "$(SYSTEM_MYTHES)" != "YES"
54CXXFLAGS += -I..$/mythes
55CFLAGSCXX += -I..$/mythes
56CFLAGSCC += -I..$/mythes
57.ENDIF
58CXXFLAGS += -I$(PRJ)$/source$/lingutil
59CFLAGSCXX += -I$(PRJ)$/source$/lingutil
60CFLAGSCC += -I$(PRJ)$/source$/lingutil
61
62EXCEPTIONSFILES=	\
63        $(SLO)$/nthesimp.obj \
64        $(SLO)$/nthesdta.obj
65
66SLOFILES=	\
67		$(SLO)$/nthesdta.obj\
68		$(SLO)$/ntreg.obj\
69		$(SLO)$/nthesimp.obj
70
71
72REALNAME:=$(TARGET).uno
73SHL1TARGET= $(REALNAME)$(DLLPOSTFIX)
74
75SHL1STDLIBS= \
76		$(CPPULIB) 	 \
77		$(CPPUHELPERLIB) 	 \
78		$(TOOLSLIB)		\
79        $(I18NISOLANGLIB)   \
80		$(SVLLIB)		\
81		$(SALLIB)		\
82		$(UNOTOOLSLIB)	\
83		$(LNGLIB) \
84                $(ULINGULIB) \
85		$(MYTHESLIB)
86
87# build DLL
88SHL1LIBS=       $(SLB)$/$(TARGET).lib $(SLB)$/libulingu.lib
89SHL1IMPLIB=		i$(REALNAME)
90SHL1DEPN=		$(SHL1LIBS)
91SHL1DEF=		$(MISC)$/$(SHL1TARGET).def
92
93SHL1VERSIONMAP=$(SOLARENV)/src/component.map
94
95# build DEF file
96DEF1NAME	 =$(SHL1TARGET)
97DEF1EXPORTFILE=	exports.dxp
98
99# --- Targets ------------------------------------------------------
100
101.INCLUDE : target.mk
102
103
104ALLTAR : $(MISC)/lnth.component
105
106$(MISC)/lnth.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
107        lnth.component
108    $(XSLTPROC) --nonet --stringparam uri \
109        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
110        $(SOLARENV)/bin/createcomponent.xslt lnth.component
111