17871dc3eSAndrew Rist#************************************************************** 27871dc3eSAndrew Rist# 37871dc3eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 47871dc3eSAndrew Rist# or more contributor license agreements. See the NOTICE file 57871dc3eSAndrew Rist# distributed with this work for additional information 67871dc3eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 77871dc3eSAndrew Rist# to you under the Apache License, Version 2.0 (the 87871dc3eSAndrew Rist# "License"); you may not use this file except in compliance 97871dc3eSAndrew Rist# with the License. You may obtain a copy of the License at 107871dc3eSAndrew Rist# 117871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 127871dc3eSAndrew Rist# 137871dc3eSAndrew Rist# Unless required by applicable law or agreed to in writing, 147871dc3eSAndrew Rist# software distributed under the License is distributed on an 157871dc3eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 167871dc3eSAndrew Rist# KIND, either express or implied. See the License for the 177871dc3eSAndrew Rist# specific language governing permissions and limitations 187871dc3eSAndrew Rist# under the License. 197871dc3eSAndrew Rist# 207871dc3eSAndrew Rist#************************************************************** 217871dc3eSAndrew Rist 227871dc3eSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweirPRJ=..$/..$/.. 25cdf0e10cSrcweirPRJINC=..$/.. 26cdf0e10cSrcweirPRJNAME=connectivity 27cdf0e10cSrcweirTARGET=hsqldb 28cdf0e10cSrcweir 29cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE 30cdf0e10cSrcweirVISIBILITY_HIDDEN=TRUE 31cdf0e10cSrcweirUSE_DEFFILE=TRUE 32cdf0e10cSrcweir 33cdf0e10cSrcweir# --- Settings ---------------------------------- 34cdf0e10cSrcweir.INCLUDE : $(PRJ)$/makefile.pmk 35cdf0e10cSrcweir.INCLUDE : $(PRJ)$/version.mk 36cdf0e10cSrcweir 37cdf0e10cSrcweir.IF "$(SOLAR_JAVA)"=="" 38cdf0e10cSrcweirnojava: 391d6e128bSPedro Giffuni @echo "Not building hsqldb because Java is disabled" 40cdf0e10cSrcweir.ENDIF 41cdf0e10cSrcweir 42cdf0e10cSrcweir.IF "$(SYSTEM_HSQLDB)" == "YES" 43cdf0e10cSrcweirCDEFS+=-DSYSTEM_HSQLDB -DHSQLDB_JAR=\""file://$(HSQLDB_JAR)"\" 44cdf0e10cSrcweir.ENDIF 45cdf0e10cSrcweir# --- Resources --------------------------------- 46cdf0e10cSrcweir 47cdf0e10cSrcweirSRS1NAME=$(TARGET) 48cdf0e10cSrcweirSRC1FILES = \ 49cdf0e10cSrcweir hsqlui.src 50cdf0e10cSrcweir 51cdf0e10cSrcweirRES1FILELIST=\ 52cdf0e10cSrcweir $(SRS)$/$(TARGET).srs 53cdf0e10cSrcweir 54cdf0e10cSrcweirRESLIB1NAME=$(TARGET) 55cdf0e10cSrcweirRESLIB1IMAGES=$(SOLARSRC)$/$(RSCDEFIMG)$/database 56cdf0e10cSrcweirRESLIB1SRSFILES=$(RES1FILELIST) 57cdf0e10cSrcweir 58cdf0e10cSrcweir# Note that the resource file built here is currently *not* included 59cdf0e10cSrcweir# in installation sets. See hsqlui.src for an explanation 60cdf0e10cSrcweir 61cdf0e10cSrcweir# --- Files ------------------------------------- 62cdf0e10cSrcweir 63cdf0e10cSrcweirSLOFILES=\ 64cdf0e10cSrcweir $(SLO)$/HStorageMap.obj \ 65cdf0e10cSrcweir $(SLO)$/HStorageAccess.obj \ 66cdf0e10cSrcweir $(SLO)$/HDriver.obj \ 67cdf0e10cSrcweir $(SLO)$/HConnection.obj \ 68cdf0e10cSrcweir $(SLO)$/HTerminateListener.obj \ 69cdf0e10cSrcweir $(SLO)$/StorageNativeOutputStream.obj \ 70cdf0e10cSrcweir $(SLO)$/StorageNativeInputStream.obj \ 71cdf0e10cSrcweir $(SLO)$/StorageFileAccess.obj \ 72cdf0e10cSrcweir $(SLO)$/HTables.obj \ 73cdf0e10cSrcweir $(SLO)$/HTable.obj \ 74cdf0e10cSrcweir $(SLO)$/HView.obj \ 75cdf0e10cSrcweir $(SLO)$/HViews.obj \ 76cdf0e10cSrcweir $(SLO)$/HCatalog.obj \ 77cdf0e10cSrcweir $(SLO)$/HColumns.obj \ 78cdf0e10cSrcweir $(SLO)$/HUser.obj \ 79cdf0e10cSrcweir $(SLO)$/HUsers.obj \ 80cdf0e10cSrcweir $(SLO)$/Hservices.obj \ 81cdf0e10cSrcweir $(SLO)$/HTools.obj \ 82cdf0e10cSrcweir $(SLO)$/accesslog.obj 83cdf0e10cSrcweir 845e7a3e64SPedro Giffuni.IF "$(GUI)" != "OS2" 85cdf0e10cSrcweirSHL1VERSIONMAP=$(HSQLDB_TARGET).map 865e7a3e64SPedro Giffuni.ENDIF 87cdf0e10cSrcweir 88cdf0e10cSrcweir# --- Library ----------------------------------- 89*6d53c851Smseidel# NO $(DLLPOSTFIX) otherwise we have to find on which platform we are for the java files 90cdf0e10cSrcweirSHL1TARGET= $(HSQLDB_TARGET) 91cdf0e10cSrcweirSHL1OBJS=$(SLOFILES) 92cdf0e10cSrcweirSHL1STDLIBS=\ 93cdf0e10cSrcweir $(CPPULIB) \ 94cdf0e10cSrcweir $(CPPUHELPERLIB) \ 95cdf0e10cSrcweir $(SALLIB) \ 96cdf0e10cSrcweir $(DBTOOLSLIB) \ 97cdf0e10cSrcweir $(JVMFWKLIB) \ 98cdf0e10cSrcweir $(COMPHELPERLIB) \ 99cdf0e10cSrcweir $(TOOLSLIB) \ 100cdf0e10cSrcweir $(UNOTOOLSLIB) 101cdf0e10cSrcweir 102cdf0e10cSrcweir 103cdf0e10cSrcweirSHL1DEPN= 104cdf0e10cSrcweirSHL1CREATEJNILIB=TRUE 105cdf0e10cSrcweirSHL1IMPLIB= i$(HSQLDB_TARGET) 106cdf0e10cSrcweir 107cdf0e10cSrcweirSHL1DEF= $(MISC)$/$(SHL1TARGET).def 108cdf0e10cSrcweir 109cdf0e10cSrcweirDEF1NAME= $(SHL1TARGET) 1105e7a3e64SPedro Giffuni.IF "$(GUI)" != "OS2" 111cdf0e10cSrcweirDEF1EXPORTFILE= exports.dxp 1125e7a3e64SPedro Giffuni.ENDIF 113cdf0e10cSrcweir 114cdf0e10cSrcweir# --- Targets ---------------------------------- 115cdf0e10cSrcweir 116cdf0e10cSrcweir.INCLUDE : $(PRJ)$/target.pmk 117cdf0e10cSrcweir 118cdf0e10cSrcweir 119cdf0e10cSrcweir 120cdf0e10cSrcweirALLTAR : $(MISC)/hsqldb.component 121cdf0e10cSrcweir 122cdf0e10cSrcweir$(MISC)/hsqldb.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \ 123cdf0e10cSrcweir hsqldb.component 124cdf0e10cSrcweir $(XSLTPROC) --nonet --stringparam uri \ 125cdf0e10cSrcweir '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \ 126cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt hsqldb.component 127