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
23PRJ=..$/..
24PRJINC=..$/inc
25
26PRJNAME=extensions
27TARGET=abp
28USE_DEFFILE=TRUE
29VISIBILITY_HIDDEN=TRUE
30
31# --- Settings -----------------------------------------------------
32
33.INCLUDE :	$(PRJ)$/util$/makefile.pmk
34
35# --- defines ------------------------------------------------------
36
37CDEFS+=-DCOMPMOD_NAMESPACE=abp
38CDEFS+=-DCOMPMOD_RESPREFIX=abp
39
40# --- Files --------------------------------------------------------
41
42EXCEPTIONSFILES=	\
43		$(SLO)$/fieldmappingimpl.obj	\
44		$(SLO)$/datasourcehandling.obj	\
45		$(SLO)$/admininvokationimpl.obj	\
46		$(SLO)$/unodialogabp.obj	\
47		$(SLO)$/moduleabp.obj	\
48		$(SLO)$/abpservices.obj \
49		$(SLO)$/typeselectionpage.obj	\
50
51SLOFILES=	\
52		$(SLO)$/fieldmappingpage.obj	\
53		$(SLO)$/abpfinalpage.obj	\
54		$(SLO)$/tableselectionpage.obj	\
55		$(SLO)$/admininvokationpage.obj	\
56		$(SLO)$/abspage.obj	\
57		$(SLO)$/abspilot.obj \
58		$(EXCEPTIONSFILES)
59
60
61.IF "$(WITH_MOZILLA)" != "NO"
62.IF "$(SYSTEM_MOZILLA)" != "YES"
63CDEFS+=-DWITH_MOZILLA
64.ENDIF
65.ENDIF
66
67SRS1NAME=$(TARGET)
68SRC1FILES=			abspilot.src
69
70RESLIB1NAME=abp
71RESLIB1IMAGES=$(PRJ)$/res
72RESLIB1SRSFILES= $(SRS)$/abp.srs
73
74SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
75SHL1VERSIONMAP=$(SOLARENV)/src/component.map
76
77SHL1STDLIBS= \
78		$(VCLLIB)			\
79		$(SALLIB)			\
80		$(TOOLSLIB)			\
81		$(CPPULIB) 			\
82		$(SVTOOLLIB)		\
83		$(SVLLIB)			\
84		$(SFXLIB)			\
85		$(CPPUHELPERLIB)	\
86		$(COMPHELPERLIB)	\
87		$(TKLIB)			\
88		$(UNOTOOLSLIB)		\
89		$(SVXCORELIB)		\
90		$(SVXLIB)
91
92SHL1LIBS=		$(SLB)$/$(TARGET).lib
93SHL1IMPLIB=		i$(TARGET)
94SHL1DEPN=		$(SHL1LIBS)
95SHL1DEF=		$(MISC)$/$(SHL1TARGET).def
96
97DEF1NAME=		$(SHL1TARGET)
98DEF1EXPORTFILE=	exports.dxp
99
100# --- Targets ------------------------------------------------------
101
102.INCLUDE :	target.mk
103
104ALLTAR : $(MISC)/abp.component
105
106$(MISC)/abp.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
107        abp.component
108    $(XSLTPROC) --nonet --stringparam uri \
109        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
110        $(SOLARENV)/bin/createcomponent.xslt abp.component
111