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#**************************************************************
21
22
23
24PRJ = ..$/..$/..
25
26PRJNAME	= lingucomponent
27TARGET	= MacOSXSpell
28ENABLE_EXCEPTIONS=TRUE
29USE_DEFFILE=TRUE
30
31.IF "$(GUIBASE)"=="aqua"
32
33#----- Settings ---------------------------------------------------------
34
35.INCLUDE : settings.mk
36
37
38# --- Files --------------------------------------------------------
39
40
41CFLAGSCXX+=$(OBJCXXFLAGS)
42CFLAGSCXX+=-I..$/..$/lingutil
43
44EXCEPTIONSFILES=	\
45		$(SLO)$/macspellimp.obj
46
47
48SLOFILES=	\
49		$(SLO)$/macreg.obj\
50		$(SLO)$/macspellimp.obj
51
52
53SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
54
55SHL1STDLIBS= \
56		$(CPPULIB) 	 \
57		$(CPPUHELPERLIB) 	 \
58		$(VOSLIB)		\
59		$(TOOLSLIB)		\
60		$(SVLLIB)		\
61		$(SALLIB)		\
62		$(UCBHELPERLIB)	\
63		$(UNOTOOLSLIB)	\
64		$(LNGLIB)
65
66SHL1STDLIBS+= -framework Cocoa
67
68# build DLL
69SHL1LIBS=		$(SLB)$/$(TARGET).lib
70SHL1IMPLIB=		i$(TARGET)
71SHL1DEPN=		$(SHL1LIBS)
72SHL1DEF=		$(MISC)$/$(SHL1TARGET).def
73
74SHL1VERSIONMAP=$(SOLARENV)/src/component.map
75
76# --- Targets ------------------------------------------------------
77
78.INCLUDE : target.mk
79
80
81.ELSE
82dummy:
83	@echo " Nothing to build for GUIBASE=$(GUIBASE)"
84.ENDIF
85
86ALLTAR : $(MISC)/MacOSXSpell.component
87
88$(MISC)/MacOSXSpell.component .ERRREMOVE : \
89        $(SOLARENV)/bin/createcomponent.xslt MacOSXSpell.component
90    $(XSLTPROC) --nonet --stringparam uri \
91        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
92        $(SOLARENV)/bin/createcomponent.xslt MacOSXSpell.component
93