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