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