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=..$/..$/..
29PRJINC=..$/..
30PRJNAME=connectivity
31TARGET=evoab2
32ENABLE_EXCEPTIONS=TRUE
33VISIBILITY_HIDDEN=TRUE
34
35.IF "$(ENABLE_EVOAB2)"!="TRUE"
36dummy:
37	@echo "Evolution 2.x Addressbook build disabled"
38.ELSE
39
40# --- Settings ----------------------------------
41
42.INCLUDE : $(PRJ)$/makefile.pmk
43.INCLUDE :  $(PRJ)$/version.mk
44
45PKGCONFIG_MODULES=gtk+-2.0
46.INCLUDE : pkg_config.mk
47
48CFLAGS+=$(GOBJECT_CFLAGS)
49
50# --- Files -------------------------------------
51
52SLOFILES=\
53	$(SLO)$/NDriver.obj \
54	$(SLO)$/NTable.obj \
55	$(SLO)$/NColumns.obj \
56	$(SLO)$/NTables.obj \
57	$(SLO)$/NCatalog.obj \
58	$(SLO)$/NConnection.obj \
59	$(SLO)$/NDatabaseMetaData.obj \
60	$(SLO)$/NStatement.obj \
61	$(SLO)$/NPreparedStatement.obj \
62	$(SLO)$/NServices.obj \
63	$(SLO)$/NResultSet.obj  \
64	$(SLO)$/NResultSetMetaData.obj \
65	$(SLO)$/EApi.obj \
66	$(SLO)$/NDebug.obj
67
68SHL1VERSIONMAP=$(SOLARENV)/src/component.map
69
70
71# --- Library -----------------------------------
72#SHL1TARGET=$(TARGET)$(DLLPOSTFIX)
73SHL1TARGET=	$(EVOAB_TARGET)$(DLLPOSTFIX)
74SHL1OBJS=$(SLOFILES)
75SHL1STDLIBS=\
76	$(CPPULIB)					\
77	$(CPPUHELPERLIB)			\
78	$(VOSLIB)					\
79	$(SVLLIB)					\
80	$(TOOLSLIB)					\
81	$(UNOTOOLSLIB)				\
82	$(UCBHELPERLIB)				\
83	$(SALLIB)					\
84	$(DBTOOLSLIB)				\
85	$(DBFILELIB)				\
86	$(COMPHELPERLIB)
87
88.IF "$(DBFILELIB)" == ""
89SHL1STDLIBS+= ifile.lib
90.ENDIF
91SHL1STDLIBS+=$(GOBJECT_LIBS)
92
93
94SHL1STDLIBS+=$(PKGCONFIG_LIBS:s/ -lpangoxft-1.0//)
95# hack for faked SO environment
96.IF "$(PKGCONFIG_ROOT)"!=""
97SHL1SONAME+=-z nodefs
98SHL1NOCHECK=TRUE
99.ENDIF          # "$(PKGCONFIG_ROOT)"!=""
100
101
102SHL1DEPN=
103SHL1IMPLIB=	i$(TARGET)
104
105SHL1DEF=	$(MISC)$/$(SHL1TARGET).def
106
107DEF1NAME=	$(SHL1TARGET)
108
109.ENDIF
110# --- Targets ----------------------------------
111
112.INCLUDE : $(PRJ)$/target.pmk
113
114ALLTAR : $(MISC)/evoab.component
115
116$(MISC)/evoab.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
117        evoab.component
118    $(XSLTPROC) --nonet --stringparam uri \
119        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
120        $(SOLARENV)/bin/createcomponent.xslt evoab.component
121