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	= MacOSXSpell
32ENABLE_EXCEPTIONS=TRUE
33USE_DEFFILE=TRUE
34
35.IF "$(GUIBASE)"=="aqua"
36
37#----- Settings ---------------------------------------------------------
38
39.INCLUDE : settings.mk
40
41.IF "$(SYSTEM_HUNSPELL)" != "YES"
42HUNSPELL_CFLAGS += -I$(SOLARINCDIR)$/hunspell
43.ENDIF
44
45CXXFLAGS += $(HUNSPELL_CFLAGS)
46CFLAGSCXX += $(HUNSPELL_CFLAGS)
47CFLAGSCC += $(HUNSPELL_CFLAGS)
48
49# --- Files --------------------------------------------------------
50
51.IF "$(DISABLE_HUNSPELL)" == ""
52
53CFLAGSCXX+=$(OBJCXXFLAGS)
54CFLAGSCXX+=-I..$/..$/lingutil
55
56EXCEPTIONSFILES=	\
57		$(SLO)$/macspellimp.obj
58
59
60SLOFILES=	\
61		$(SLO)$/macreg.obj\
62		$(SLO)$/macspellimp.obj
63
64
65SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
66
67SHL1STDLIBS= \
68		$(CPPULIB) 	 \
69		$(CPPUHELPERLIB) 	 \
70		$(VOSLIB)		\
71		$(TOOLSLIB)		\
72		$(SVLLIB)		\
73		$(SALLIB)		\
74		$(UCBHELPERLIB)	\
75		$(UNOTOOLSLIB)	\
76		$(LNGLIB)
77
78SHL1STDLIBS+= -framework Cocoa
79
80# build DLL
81SHL1LIBS=		$(SLB)$/$(TARGET).lib
82SHL1IMPLIB=		i$(TARGET)
83SHL1DEPN=		$(SHL1LIBS)
84SHL1DEF=		$(MISC)$/$(SHL1TARGET).def
85
86SHL1VERSIONMAP=$(SOLARENV)/src/component.map
87
88# --- Targets ------------------------------------------------------
89
90.INCLUDE : target.mk
91
92.ELSE
93all:
94	@echo "hunspell disabled"
95.ENDIF
96
97.ELSE
98dummy:
99	@echo " Nothing to build for GUIBASE=$(GUIBASE)"
100.ENDIF
101
102ALLTAR : $(MISC)/MacOSXSpell.component
103
104$(MISC)/MacOSXSpell.component .ERRREMOVE : \
105        $(SOLARENV)/bin/createcomponent.xslt MacOSXSpell.component
106    $(XSLTPROC) --nonet --stringparam uri \
107        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
108        $(SOLARENV)/bin/createcomponent.xslt MacOSXSpell.component
109