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