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