xref: /aoo41x/main/linguistic/source/makefile.mk (revision cdf0e10c)
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=linguistic
31TARGET=lng
32ENABLE_EXCEPTIONS=sal_True
33
34#----- Settings ---------------------------------------------------------
35
36.INCLUDE : settings.mk
37
38# --- Files --------------------------------------------------------
39
40SLOFILES = \
41        $(SLO)$/convdiclist.obj\
42        $(SLO)$/convdic.obj\
43        $(SLO)$/convdicxml.obj\
44		$(SLO)$/dicimp.obj\
45		$(SLO)$/dlistimp.obj\
46        $(SLO)$/hhconvdic.obj\
47		$(SLO)$/hyphdsp.obj\
48		$(SLO)$/hyphdta.obj\
49		$(SLO)$/iprcache.obj\
50		$(SLO)$/lngopt.obj\
51        $(SLO)$/lngprophelp.obj\
52		$(SLO)$/lngreg.obj\
53		$(SLO)$/lngsvcmgr.obj\
54		$(SLO)$/misc.obj\
55        $(SLO)$/misc2.obj\
56		$(SLO)$/spelldsp.obj\
57		$(SLO)$/spelldta.obj\
58		$(SLO)$/thesdsp.obj\
59        $(SLO)$/thesdta.obj\
60        $(SLO)$/gciterator.obj
61
62SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
63
64SHL1STDLIBS= \
65		$(CPPULIB) 	 \
66		$(CPPUHELPERLIB) 	 \
67		$(COMPHELPERLIB)   \
68		$(VOSLIB)		\
69		$(TOOLSLIB)		\
70		$(I18NISOLANGLIB) \
71		$(SVLLIB)	\
72		$(SALLIB)		\
73        $(XMLOFFLIB)    \
74		$(UCBHELPERLIB)	\
75        $(UNOTOOLSLIB)  \
76        $(ICUUCLIB)
77
78# build DLL
79SHL1LIBS=		$(SLB)$/$(TARGET).lib
80SHL1DEPN=		$(SLB)$/$(TARGET).lib
81SHL1DEF=		$(MISC)$/$(SHL1TARGET).def
82#SHL1VERSIONMAP= $(TARGET).map
83SHL1IMPLIB= ilng
84
85# build DEF file
86DEF1NAME	=$(SHL1TARGET)
87DEF1DEPN    =$(MISC)$/$(SHL1TARGET).flt
88DEFLIB1NAME =$(TARGET)
89DEF1DES     =Linguistic main DLL
90#DEF1EXPORTFILE=	exports.dxp
91
92
93.IF "$(GUI)"=="WNT"
94DEF1EXPORT1 = component_getFactory
95DEF1EXPORT2 = component_getImplementationEnvironment
96.ENDIF
97
98# --- Targets ------------------------------------------------------
99
100
101.INCLUDE : target.mk
102
103
104$(MISC)$/$(SHL1TARGET).flt: makefile.mk
105    @echo ------------------------------
106    @echo Making: $@
107    @echo lcl > $@
108    @echo component >> $@
109    @echo __CT >> $@
110
111
112ALLTAR : $(MISC)/lng.component
113
114$(MISC)/lng.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
115        lng.component
116    $(XSLTPROC) --nonet --stringparam uri \
117        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
118        $(SOLARENV)/bin/createcomponent.xslt lng.component
119