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