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=dbase
28
29VISIBILITY_HIDDEN=TRUE
30
31# --- Settings ----------------------------------
32.IF "$(DBGUTIL_OJ)"!=""
33ENVCFLAGS+=/FR$(SLO)$/
34.ENDIF
35
36.INCLUDE : $(PRJ)$/makefile.pmk
37.INCLUDE :  $(PRJ)$/version.mk
38
39# --- Files -------------------------------------
40
41SLOFILES=\
42	$(SLO)$/DCode.obj				\
43	$(SLO)$/DResultSet.obj			\
44	$(SLO)$/DStatement.obj			\
45	$(SLO)$/DPreparedStatement.obj	\
46	$(SLO)$/dindexnode.obj			\
47	$(SLO)$/DIndexIter.obj			\
48	$(SLO)$/DDatabaseMetaData.obj	\
49	$(SLO)$/DCatalog.obj			\
50	$(SLO)$/DColumns.obj			\
51	$(SLO)$/DIndexColumns.obj		\
52	$(SLO)$/DIndex.obj				\
53	$(SLO)$/DIndexes.obj			\
54	$(SLO)$/DTable.obj				\
55	$(SLO)$/DTables.obj				\
56	$(SLO)$/DConnection.obj			\
57	$(SLO)$/Dservices.obj			\
58	$(SLO)$/DDriver.obj
59
60EXCEPTIONSFILES=\
61	$(SLO)$/DCode.obj				\
62	$(SLO)$/DResultSet.obj			\
63	$(SLO)$/DStatement.obj			\
64	$(SLO)$/DPreparedStatement.obj	\
65	$(SLO)$/dindexnode.obj			\
66	$(SLO)$/DIndexIter.obj			\
67	$(SLO)$/DDatabaseMetaData.obj	\
68	$(SLO)$/DCatalog.obj			\
69	$(SLO)$/DColumns.obj			\
70	$(SLO)$/DIndexColumns.obj		\
71	$(SLO)$/DIndex.obj				\
72	$(SLO)$/DIndexes.obj			\
73	$(SLO)$/DTables.obj				\
74	$(SLO)$/DConnection.obj			\
75	$(SLO)$/Dservices.obj			\
76	$(SLO)$/DDriver.obj
77
78# [kh] ppc linux gcc compiler problem
79.IF "$(OS)$(COM)$(CPUNAME)"=="LINUXGCCPOWERPC"
80EXCEPTIONSNOOPTFILES= \
81	$(SLO)$/DTable.obj
82.ELSE
83EXCEPTIONSFILES +=\
84            $(SLO)$/DTable.obj
85.ENDIF
86
87
88SHL1VERSIONMAP=$(SOLARENV)/src/component.map
89
90# --- Library -----------------------------------
91
92SHL1TARGET=$(TARGET)$(DLLPOSTFIX)
93SHL1OBJS=$(SLOFILES)
94SHL1STDLIBS=\
95	$(CPPULIB)					\
96	$(CPPUHELPERLIB)			\
97	$(VOSLIB)					\
98	$(SVLLIB)					\
99	$(TOOLSLIB)					\
100	$(UCBHELPERLIB)				\
101	$(SALLIB)					\
102	$(DBTOOLSLIB)				\
103	$(DBFILELIB)				\
104	$(UNOTOOLSLIB)				\
105	$(COMPHELPERLIB)
106
107.IF "$(DBFILELIB)" == ""
108SHL1STDLIBS+= ifile.lib
109.ENDIF
110
111SHL1DEPN=
112SHL1IMPLIB=	i$(DBASE_TARGET)
113
114
115SHL1DEF=	$(MISC)$/$(SHL1TARGET).def
116
117DEF1NAME=	$(SHL1TARGET)
118DEF1EXPORTFILE=	exports.dxp
119
120
121# --- Targets ----------------------------------
122
123.INCLUDE : $(PRJ)$/target.pmk
124
125
126
127ALLTAR : $(MISC)/dbase.component
128
129$(MISC)/dbase.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
130        dbase.component
131    $(XSLTPROC) --nonet --stringparam uri \
132        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
133        $(SOLARENV)/bin/createcomponent.xslt dbase.component
134