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
88SHL1VERSIONMAP=$(HSQLDB_TARGET).map
89
90# --- Library -----------------------------------
91# NO $(DLLPOSTFIX) otherwise we have to find on which plattform we are for the java files
92SHL1TARGET=	$(HSQLDB_TARGET)
93SHL1OBJS=$(SLOFILES)
94SHL1STDLIBS=\
95	$(CPPULIB)					\
96	$(CPPUHELPERLIB)			\
97	$(SALLIB)					\
98	$(DBTOOLSLIB)				\
99	$(JVMFWKLIB)				\
100	$(COMPHELPERLIB)            \
101	$(TOOLSLIB)            		\
102	$(UNOTOOLSLIB)
103
104
105SHL1DEPN=
106SHL1CREATEJNILIB=TRUE
107SHL1IMPLIB=	i$(HSQLDB_TARGET)
108
109SHL1DEF=	$(MISC)$/$(SHL1TARGET).def
110
111DEF1NAME=	$(SHL1TARGET)
112DEF1EXPORTFILE=	exports.dxp
113
114# --- Targets ----------------------------------
115
116.INCLUDE : $(PRJ)$/target.pmk
117
118
119
120ALLTAR : $(MISC)/hsqldb.component
121
122$(MISC)/hsqldb.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
123        hsqldb.component
124    $(XSLTPROC) --nonet --stringparam uri \
125        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
126        $(SOLARENV)/bin/createcomponent.xslt hsqldb.component
127