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=adabas
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.IF "$(SYSTEM_ODBC_HEADERS)" == "YES"
45CFLAGS+=-DSYSTEM_ODBC_HEADERS
46.ENDIF
47
48# --- Files -------------------------------------
49
50SLOFILES=\
51		$(SLO)$/BFunctions.obj					\
52		$(SLO)$/BConnection.obj					\
53		$(SLO)$/BDriver.obj						\
54		$(SLO)$/BCatalog.obj					\
55		$(SLO)$/BGroups.obj						\
56		$(SLO)$/BGroup.obj						\
57		$(SLO)$/BUser.obj						\
58		$(SLO)$/BUsers.obj						\
59		$(SLO)$/BKeys.obj						\
60		$(SLO)$/BColumns.obj					\
61		$(SLO)$/BIndex.obj						\
62		$(SLO)$/BIndexColumns.obj				\
63		$(SLO)$/BIndexes.obj					\
64		$(SLO)$/BTable.obj						\
65		$(SLO)$/BTables.obj						\
66		$(SLO)$/BViews.obj						\
67		$(SLO)$/Bservices.obj					\
68		$(SLO)$/BDatabaseMetaData.obj			\
69        $(SLO)$/BPreparedStatement.obj          \
70        $(SLO)$/BStatement.obj                  \
71		$(SLO)$/BResultSetMetaData.obj			\
72        $(SLO)$/BResultSet.obj
73
74SHL1VERSIONMAP=$(SOLARENV)/src/component.map
75
76# --- Library -----------------------------------
77
78SHL1TARGET=	$(TARGET)$(DLLPOSTFIX)
79SHL1OBJS=$(SLOFILES)
80SHL1STDLIBS=\
81	$(CPPULIB)					\
82	$(CPPUHELPERLIB)			\
83	$(VOSLIB)					\
84	$(SALLIB)					\
85	$(DBTOOLSLIB)				\
86	$(TOOLSLIB)					\
87	$(ODBCBASELIB)				\
88	$(UNOTOOLSLIB)				\
89	$(COMPHELPERLIB)
90
91.IF "$(ODBCBASELIB)" == ""
92SHL1STDLIBS+=$(ODBCBASELIB)
93.ENDIF
94
95SHL1DEPN=
96SHL1IMPLIB=	i$(SHL1TARGET)
97
98SHL1DEF=	$(MISC)$/$(SHL1TARGET).def
99
100DEF1NAME=	$(SHL1TARGET)
101DEF1EXPORTFILE=	exports.dxp
102
103# --- Targets ----------------------------------
104
105
106.INCLUDE : $(PRJ)$/target.pmk
107
108ALLTAR : $(MISC)/adabas.component
109
110$(MISC)/adabas.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
111        adabas.component
112    $(XSLTPROC) --nonet --stringparam uri \
113        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
114        $(SOLARENV)/bin/createcomponent.xslt adabas.component
115