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=jdbc
32
33ENABLE_EXCEPTIONS=TRUE
34VISIBILITY_HIDDEN=TRUE
35
36# --- Settings ----------------------------------
37.IF "$(DBGUTIL_OJ)"!=""
38ENVCFLAGS+=/FR$(SLO)$/
39.ENDIF
40
41.INCLUDE : $(PRJ)$/makefile.pmk
42.INCLUDE :  $(PRJ)$/version.mk
43
44
45.IF "$(SOLAR_JAVA)" != ""
46
47# --- Files -------------------------------------
48
49SLOFILES=\
50		$(SLO)$/Array.obj							\
51		$(SLO)$/Blob.obj							\
52		$(SLO)$/Boolean.obj							\
53		$(SLO)$/CallableStatement.obj				\
54		$(SLO)$/Class.obj							\
55		$(SLO)$/Clob.obj							\
56		$(SLO)$/ConnectionLog.obj                   \
57		$(SLO)$/DatabaseMetaData.obj				\
58		$(SLO)$/Date.obj							\
59		$(SLO)$/DriverPropertyInfo.obj				\
60		$(SLO)$/Exception.obj						\
61		$(SLO)$/InputStream.obj						\
62        $(SLO)$/JConnection.obj                     \
63		$(SLO)$/JDriver.obj							\
64        $(SLO)$/JStatement.obj                      \
65		$(SLO)$/Object.obj							\
66		$(SLO)$/PreparedStatement.obj				\
67		$(SLO)$/Reader.obj							\
68		$(SLO)$/Ref.obj								\
69		$(SLO)$/ResultSet.obj						\
70		$(SLO)$/ResultSetMetaData.obj				\
71		$(SLO)$/SQLException.obj					\
72		$(SLO)$/SQLWarning.obj						\
73		$(SLO)$/String.obj							\
74		$(SLO)$/Throwable.obj						\
75		$(SLO)$/Timestamp.obj						\
76		$(SLO)$/jservices.obj						\
77		$(SLO)$/JBigDecimal.obj						\
78		$(SLO)$/tools.obj                           \
79		$(SLO)$/ContextClassLoader.obj
80
81SHL1VERSIONMAP=$(SOLARENV)/src/component.map
82
83# --- Library -----------------------------------
84
85SHL1TARGET=	$(JDBC_TARGET)$(DLLPOSTFIX)
86SHL1OBJS=$(SLOFILES)
87SHL1STDLIBS=\
88	$(CPPULIB)					\
89	$(CPPUHELPERLIB)			\
90	$(VOSLIB)					\
91	$(SALLIB)					\
92	$(JVMACCESSLIB)				\
93	$(DBTOOLSLIB)				\
94	$(UNOTOOLSLIB)				\
95	$(JVMFWKLIB)				\
96	$(COMPHELPERLIB)
97
98SHL1DEPN=
99SHL1IMPLIB=	i$(JDBC_TARGET)
100
101SHL1DEF=	$(MISC)$/$(SHL1TARGET).def
102
103DEF1NAME=	$(SHL1TARGET)
104DEF1EXPORTFILE=	exports.dxp
105
106.ENDIF # SOLAR_JAVA
107
108# --- Targets ----------------------------------
109
110.INCLUDE : $(PRJ)$/target.pmk
111
112
113
114ALLTAR : $(MISC)/jdbc.component
115
116$(MISC)/jdbc.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
117        jdbc.component
118    $(XSLTPROC) --nonet --stringparam uri \
119        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
120        $(SOLARENV)/bin/createcomponent.xslt jdbc.component
121