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