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=ado
28VISIBILITY_HIDDEN=TRUE
29
30#	ENABLE_EXCEPTIONS=TRUE
31
32# --- Settings ----------------------------------
33.IF "$(DBGUTIL_OJ)"!=""
34ENVCFLAGS+=/FR$(SLO)$/
35.ENDIF
36
37.INCLUDE :  $(PRJ)$/version.mk
38.INCLUDE : $(PRJ)$/makefile.pmk
39
40.IF "$(GUI)"=="WNT"
41# --- Files -------------------------------------
42
43EXCEPTIONSFILES= \
44		$(SLO)$/ADatabaseMetaDataImpl.obj				\
45		$(SLO)$/Aolevariant.obj							\
46		$(SLO)$/ADatabaseMetaData.obj					\
47		$(SLO)$/AColumn.obj								\
48		$(SLO)$/AColumns.obj							\
49		$(SLO)$/AIndex.obj								\
50		$(SLO)$/AIndexes.obj							\
51		$(SLO)$/AKey.obj								\
52		$(SLO)$/AKeys.obj								\
53		$(SLO)$/AUser.obj								\
54		$(SLO)$/AUsers.obj								\
55		$(SLO)$/AGroup.obj								\
56		$(SLO)$/AGroups.obj								\
57		$(SLO)$/ACatalog.obj							\
58		$(SLO)$/AView.obj								\
59		$(SLO)$/AViews.obj								\
60		$(SLO)$/ATable.obj								\
61		$(SLO)$/ATables.obj								\
62		$(SLO)$/ACallableStatement.obj					\
63		$(SLO)$/ADatabaseMetaDataResultSetMetaData.obj	\
64		$(SLO)$/ADatabaseMetaDataResultSet.obj			\
65		$(SLO)$/AResultSet.obj							\
66		$(SLO)$/AConnection.obj							\
67		$(SLO)$/AStatement.obj							\
68		$(SLO)$/APreparedStatement.obj					\
69		$(SLO)$/AResultSetMetaData.obj					\
70		$(SLO)$/ADriver.obj								\
71		$(SLO)$/Aservices.obj
72
73SLOFILES=\
74		$(EXCEPTIONSFILES)								\
75		$(SLO)$/Awrapado.obj							\
76		$(SLO)$/adoimp.obj
77# --- Library -----------------------------------
78
79SHL1TARGET=	$(ADO_TARGET)$(DLLPOSTFIX)
80SHL1OBJS=$(SLOFILES)
81SHL1STDLIBS=\
82	$(CPPULIB)					\
83	$(CPPUHELPERLIB)			\
84	$(VOSLIB)					\
85	$(SALLIB)					\
86	$(OLE32LIB)					\
87	$(OLEAUT32LIB)				\
88	$(UUIDLIB)					\
89	$(DBTOOLSLIB)				\
90	$(COMPHELPERLIB)
91
92.IF "$(COMPHELPERLIB)" == ""
93SHL1STDLIBS+= icomphelp2.lib
94.ENDIF
95
96#SHL1DEPN=
97SHL1IMPLIB=	i$(SHL1TARGET)
98
99SHL1DEF=	$(MISC)$/$(SHL1TARGET).def
100
101DEF1NAME=	$(SHL1TARGET)
102DEF1EXPORTFILE=	exports.dxp
103
104.ELSE
105dummy:
106	@echo "Nothing to build for GUI $(GUI)"
107.ENDIF # "$(GUI)"=="WNT"
108# --- Targets ----------------------------------
109.INCLUDE : $(PRJ)$/target.pmk
110
111
112ALLTAR : $(MISC)/ado.component
113
114$(MISC)/ado.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
115        ado.component
116    $(XSLTPROC) --nonet --stringparam uri \
117        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
118        $(SOLARENV)/bin/createcomponent.xslt ado.component
119