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=kab
28TARGET2=$(TARGET)drv
29
30ENABLE_EXCEPTIONS=TRUE
31VISIBILITY_HIDDEN=TRUE
32
33# --- Settings ----------------------------------
34
35.INCLUDE : $(PRJ)$/makefile.pmk
36.INCLUDE :  $(PRJ)$/version.mk
37
38.IF "$(GUI)" == "UNX"
39.IF "$(ENABLE_KAB)" == "TRUE"
40
41CFLAGS+=$(KDE_CFLAGS)
42
43.IF "$(KDE_ROOT)"!=""
44EXTRALIBPATHS+=-L$(KDE_ROOT)$/lib
45.IF "$(OS)$(CPU)" == "LINUXX"
46EXTRALIBPATHS+=-L$(KDE_ROOT)$/lib64
47.ENDIF
48.ENDIF
49
50# === KAB base library ==========================
51
52# --- Files -------------------------------------
53
54SLOFILES= \
55    $(SLO)$/KDriver.obj     \
56    $(SLO)$/KServices.obj
57
58DEPOBJFILES= \
59	$(SLO2FILES)
60
61# --- Library -----------------------------------
62
63SHL1VERSIONMAP=$(SOLARENV)/src/component.map
64
65SHL1TARGET= $(TARGET)$(KAB_MAJOR)
66SHL1OBJS=$(SLOFILES)
67SHL1STDLIBS=\
68    $(CPPULIB)                  \
69    $(CPPUHELPERLIB)            \
70    $(DBTOOLSLIB)               \
71    $(SALLIB)
72
73SHL1DEPN=
74SHL1IMPLIB= i$(TARGET)
75
76SHL1DEF=    $(MISC)$/$(SHL1TARGET).def
77
78DEF1NAME=   $(SHL1TARGET)
79
80# === KAB impl library ==========================
81
82# --- Files -------------------------------------
83
84SLO2FILES=\
85    $(SLO)$/KColumns.obj            \
86    $(SLO)$/KTable.obj              \
87    $(SLO)$/KTables.obj             \
88    $(SLO)$/KCatalog.obj            \
89    $(SLO)$/KResultSet.obj          \
90    $(SLO)$/KStatement.obj          \
91    $(SLO)$/KPreparedStatement.obj  \
92    $(SLO)$/KDatabaseMetaData.obj   \
93    $(SLO)$/KConnection.obj         \
94    $(SLO)$/KResultSetMetaData.obj  \
95    $(SLO)$/kcondition.obj          \
96    $(SLO)$/korder.obj              \
97    $(SLO)$/kfields.obj             \
98    $(SLO)$/KDEInit.obj
99
100KAB_LIB=$(KDE_LIBS) -lkabc
101
102# --- Library -----------------------------------
103
104SHL2VERSIONMAP=$(TARGET2).map
105
106SHL2TARGET= $(TARGET2)$(KAB_MAJOR)
107SHL2OBJS=$(SLO2FILES)
108SHL2STDLIBS=\
109    $(CPPULIB)                  \
110    $(CPPUHELPERLIB)            \
111    $(VOSLIB)                   \
112    $(SALLIB)                   \
113    $(DBTOOLSLIB)               \
114    $(COMPHELPERLIB)            \
115    $(KAB_LIB)
116
117SHL2DEPN=
118SHL2IMPLIB= i$(TARGET2)
119
120SHL2DEF=    $(MISC)$/$(SHL2TARGET).def
121
122DEF2NAME=   $(SHL2TARGET)
123
124# --- Targets -----------------------------------
125.ELSE		# "$(ENABLE_KAB)" == "TRUE"
126dummy:
127	@echo KDE Addressbook disabled - nothing to build
128.ENDIF
129
130.ELSE		# "$(GUI)" == "UNX"
131dummy:
132	@echo "Nothing to build for GUI $(GUI)"
133.ENDIF
134
135.INCLUDE : $(PRJ)$/target.pmk
136
137
138ALLTAR : $(MISC)/kab1.component
139
140$(MISC)/kab1.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
141        kab1.component
142    $(XSLTPROC) --nonet --stringparam uri \
143        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
144        $(SOLARENV)/bin/createcomponent.xslt kab1.component
145