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