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=..$/.. 25PRJNAME=connectivity 26TARGET=dbt 27USE_LDUMP2=TRUE 28 29TARGETTYPE=CUI 30USE_DEFFILE=TRUE 31 32# --- Settings ---------------------------------- 33 34.INCLUDE : settings.mk 35.INCLUDE : $(PRJ)$/dbtools.pmk 36.INCLUDE : $(PRJ)$/version.mk 37 38LDUMP=ldump2.exe 39 40# --- Library ----------------------------------- 41 42LIB1TARGET=$(SLB)$/$(TARGET).lib 43LIB1FILES=\ 44 $(SLB)$/sdbcx.lib \ 45 $(SLB)$/commontools.lib \ 46 $(SLB)$/sql.lib \ 47 $(SLB)$/simpledbt.lib \ 48 $(SLB)$/cnr.lib 49 50# --- dynamic library --------------------------- 51 52SHL1TARGET= $(DBTOOLS_TARGET)$(DLLPOSTFIX) 53SHL1STDLIBS=\ 54 $(CPPULIB) \ 55 $(CPPUHELPERLIB) \ 56 $(VOSLIB) \ 57 $(SALLIB) \ 58 $(JVMACCESSLIB) \ 59 $(UNOTOOLSLIB) \ 60 $(TOOLSLIB) \ 61 $(COMPHELPERLIB) \ 62 $(I18NISOLANGLIB) 63 64# NETBSD: somewhere we have to instantiate the static data members. 65# NETBSD-1.2.1 doesn't know about weak symbols so the default mechanism for GCC won't work. 66# SCO and MACOSX: the linker does know about weak symbols, but we can't ignore multiple defined symbols 67.IF "$(OS)"=="NETBSD" || "$(OS)"=="SCO" || "$(OS)$(COM)"=="OS2GCC" || "$(OS)"=="MACOSX" 68SHL1STDLIBS+=$(UCBHELPERLIB) 69.ENDIF 70 71#SHL1DEPN= 72SHL1IMPLIB= idbtools 73 74SHL1LIBS= $(LIB1TARGET) 75SHL1DEF= $(MISC)$/$(SHL1TARGET).def 76DEF1NAME= $(SHL1TARGET) 77DEF1DEPN= $(MISC)$/$(SHL1TARGET).flt \ 78 $(LIB1TARGET) 79 80DEFLIB1NAME=$(TARGET) 81DEF1EXPORTFILE= exports.dxp 82 83# --- Targets ---------------------------------- 84 85.INCLUDE : target.mk 86 87# --- filter file ------------------------------ 88 89$(MISC)$/$(SHL1TARGET).flt: makefile.mk 90 @echo ------------------------------ 91 @echo _TI >$@ 92 @echo _real >>$@ 93 94 95ALLTAR : $(MISC)/dbtools.component 96 97$(MISC)/dbtools.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \ 98 dbtools.component 99 $(XSLTPROC) --nonet --stringparam uri \ 100 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \ 101 $(SOLARENV)/bin/createcomponent.xslt dbtools.component 102