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