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=hsqldb
32
33ENABLE_EXCEPTIONS=TRUE
34VISIBILITY_HIDDEN=TRUE
35USE_DEFFILE=TRUE
36
37# --- Settings ----------------------------------
38.INCLUDE : $(PRJ)$/makefile.pmk
39.INCLUDE :  $(PRJ)$/version.mk
40
41.IF "$(SOLAR_JAVA)"==""
42nojava:
43	@echo "Not building jurt because Java is disabled"
44.ENDIF
45
46.IF "$(SYSTEM_HSQLDB)" == "YES"
47CDEFS+=-DSYSTEM_HSQLDB -DHSQLDB_JAR=\""file://$(HSQLDB_JAR)"\"
48.ENDIF
49# --- Resources ---------------------------------
50
51SRS1NAME=$(TARGET)
52SRC1FILES =	\
53		hsqlui.src
54
55RES1FILELIST=\
56	$(SRS)$/$(TARGET).srs
57
58RESLIB1NAME=$(TARGET)
59RESLIB1IMAGES=$(SOLARSRC)$/$(RSCDEFIMG)$/database
60RESLIB1SRSFILES=$(RES1FILELIST)
61
62# Note that the resource file built here is currently *not* included
63# in installation sets. See hsqlui.src for an explanation
64
65# --- Files -------------------------------------
66
67SLOFILES=\
68		$(SLO)$/HStorageMap.obj					\
69		$(SLO)$/HStorageAccess.obj				\
70		$(SLO)$/HDriver.obj						\
71		$(SLO)$/HConnection.obj					\
72		$(SLO)$/HTerminateListener.obj			\
73		$(SLO)$/StorageNativeOutputStream.obj	\
74		$(SLO)$/StorageNativeInputStream.obj	\
75		$(SLO)$/StorageFileAccess.obj			\
76        $(SLO)$/HTables.obj                     \
77        $(SLO)$/HTable.obj                      \
78        $(SLO)$/HView.obj                       \
79        $(SLO)$/HViews.obj                      \
80        $(SLO)$/HCatalog.obj                    \
81        $(SLO)$/HColumns.obj                    \
82        $(SLO)$/HUser.obj                       \
83        $(SLO)$/HUsers.obj                      \
84		$(SLO)$/Hservices.obj                   \
85		$(SLO)$/HTools.obj                      \
86		$(SLO)$/accesslog.obj
87
88.IF "$(GUI)" != "OS2"
89SHL1VERSIONMAP=$(HSQLDB_TARGET).map
90.ENDIF
91
92# --- Library -----------------------------------
93# NO $(DLLPOSTFIX) otherwise we have to find on which plattform we are for the java files
94SHL1TARGET=	$(HSQLDB_TARGET)
95SHL1OBJS=$(SLOFILES)
96SHL1STDLIBS=\
97	$(CPPULIB)					\
98	$(CPPUHELPERLIB)			\
99	$(SALLIB)					\
100	$(DBTOOLSLIB)				\
101	$(JVMFWKLIB)				\
102	$(COMPHELPERLIB)            \
103	$(TOOLSLIB)            		\
104	$(UNOTOOLSLIB)
105
106
107SHL1DEPN=
108SHL1CREATEJNILIB=TRUE
109SHL1IMPLIB=	i$(HSQLDB_TARGET)
110
111SHL1DEF=	$(MISC)$/$(SHL1TARGET).def
112
113DEF1NAME=	$(SHL1TARGET)
114.IF "$(GUI)" != "OS2"
115DEF1EXPORTFILE=	exports.dxp
116.ENDIF
117
118# --- Targets ----------------------------------
119
120.INCLUDE : $(PRJ)$/target.pmk
121
122
123
124ALLTAR : $(MISC)/hsqldb.component
125
126$(MISC)/hsqldb.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
127        hsqldb.component
128    $(XSLTPROC) --nonet --stringparam uri \
129        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
130        $(SOLARENV)/bin/createcomponent.xslt hsqldb.component
131