1*7871dc3eSAndrew Rist#************************************************************** 2*7871dc3eSAndrew Rist# 3*7871dc3eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 4*7871dc3eSAndrew Rist# or more contributor license agreements. See the NOTICE file 5*7871dc3eSAndrew Rist# distributed with this work for additional information 6*7871dc3eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 7*7871dc3eSAndrew Rist# to you under the Apache License, Version 2.0 (the 8*7871dc3eSAndrew Rist# "License"); you may not use this file except in compliance 9*7871dc3eSAndrew Rist# with the License. You may obtain a copy of the License at 10*7871dc3eSAndrew Rist# 11*7871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 12*7871dc3eSAndrew Rist# 13*7871dc3eSAndrew Rist# Unless required by applicable law or agreed to in writing, 14*7871dc3eSAndrew Rist# software distributed under the License is distributed on an 15*7871dc3eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*7871dc3eSAndrew Rist# KIND, either express or implied. See the License for the 17*7871dc3eSAndrew Rist# specific language governing permissions and limitations 18*7871dc3eSAndrew Rist# under the License. 19*7871dc3eSAndrew Rist# 20*7871dc3eSAndrew Rist#************************************************************** 21*7871dc3eSAndrew Rist 22*7871dc3eSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweirPRJ=.. 25cdf0e10cSrcweirPRJNAME=dbaccess 26cdf0e10cSrcweirTARGET=dba 27cdf0e10cSrcweirTARGET2=dbu 28cdf0e10cSrcweirTARGET3=sdbt 29cdf0e10cSrcweirUSE_DEFFILE=TRUE 30cdf0e10cSrcweirGEN_HID=TRUE 31cdf0e10cSrcweirGEN_HID_OTHER=TRUE 32cdf0e10cSrcweir 33cdf0e10cSrcweir# --- Settings ---------------------------------- 34cdf0e10cSrcweir 35cdf0e10cSrcweir.INCLUDE : settings.mk 36cdf0e10cSrcweir 37cdf0e10cSrcweirLDUMP=ldump2.exe 38cdf0e10cSrcweir 39cdf0e10cSrcweir# --- database core (dba) ----------------------------------- 40cdf0e10cSrcweir.IF "$(L10N_framework)"=="" 41cdf0e10cSrcweirLIB1TARGET=$(SLB)$/$(TARGET).lib 42cdf0e10cSrcweirLIB1FILES=\ 43cdf0e10cSrcweir $(SLB)$/api.lib \ 44cdf0e10cSrcweir $(SLB)$/dataaccess.lib \ 45cdf0e10cSrcweir $(SLB)$/recovery.lib \ 46cdf0e10cSrcweir $(SLB)$/misc.lib \ 47cdf0e10cSrcweir $(SLB)$/core_resource.lib 48cdf0e10cSrcweir 49cdf0e10cSrcweirSHL1TARGET=$(TARGET)$(DLLPOSTFIX) 50cdf0e10cSrcweir 51cdf0e10cSrcweirSHL1STDLIBS= \ 52cdf0e10cSrcweir $(SVTOOLLIB) \ 53cdf0e10cSrcweir $(VCLLIB) \ 54cdf0e10cSrcweir $(UNOTOOLSLIB) \ 55cdf0e10cSrcweir $(TOOLSLIB) \ 56cdf0e10cSrcweir $(I18NISOLANGLIB) \ 57cdf0e10cSrcweir $(DBTOOLSLIB) \ 58cdf0e10cSrcweir $(COMPHELPERLIB) \ 59cdf0e10cSrcweir $(CPPUHELPERLIB) \ 60cdf0e10cSrcweir $(UCBHELPERLIB) \ 61cdf0e10cSrcweir $(SVLLIB) \ 62cdf0e10cSrcweir $(CPPULIB) \ 63cdf0e10cSrcweir $(SALLIB) \ 64cdf0e10cSrcweir $(SFXLIB) \ 65cdf0e10cSrcweir $(BASICLIB) \ 66cdf0e10cSrcweir $(FWELIB) \ 67cdf0e10cSrcweir $(SALHELPERLIB) \ 68cdf0e10cSrcweir $(XMLOFFLIB) 69cdf0e10cSrcweir 70cdf0e10cSrcweirSHL1DEPN= 71cdf0e10cSrcweirSHL1IMPLIB=i$(TARGET) 72cdf0e10cSrcweirSHL1LIBS=$(LIB1TARGET) 73cdf0e10cSrcweirSHL1DEF=$(MISC)$/$(SHL1TARGET).def 74cdf0e10cSrcweirDEF1NAME=$(SHL1TARGET) 75cdf0e10cSrcweirDEFLIB1NAME=$(TARGET) 76cdf0e10cSrcweirDEF1DEPN= $(MISC)$/$(SHL1TARGET).flt \ 77cdf0e10cSrcweir $(SLB)$/$(TARGET).lib 78cdf0e10cSrcweirSHL1USE_EXPORTS=name 79cdf0e10cSrcweir 80cdf0e10cSrcweir.ENDIF 81cdf0e10cSrcweir# --- .res file ---------------------------------------------------------- 82cdf0e10cSrcweir 83cdf0e10cSrcweirRES1FILELIST=\ 84cdf0e10cSrcweir $(SRS)$/core_strings.srs 85cdf0e10cSrcweir 86cdf0e10cSrcweirRESLIB1NAME=$(TARGET) 87cdf0e10cSrcweirRESLIB1IMAGES=$(PRJ)$/res 88cdf0e10cSrcweirRESLIB1SRSFILES=$(RES1FILELIST) 89cdf0e10cSrcweir 90cdf0e10cSrcweir# --- database ui (dbu) ----------------------------------- 91cdf0e10cSrcweir.IF "$(L10N_framework)"=="" 92cdf0e10cSrcweir 93cdf0e10cSrcweirLIB2TARGET=$(SLB)$/$(TARGET2).lib 94cdf0e10cSrcweirLIB2FILES=\ 95cdf0e10cSrcweir $(SLB)$/relationdesign.lib \ 96cdf0e10cSrcweir $(SLB)$/tabledesign.lib \ 97cdf0e10cSrcweir $(SLB)$/querydesign.lib \ 98cdf0e10cSrcweir $(SLB)$/uimisc.lib \ 99cdf0e10cSrcweir $(SLB)$/uidlg.lib \ 100cdf0e10cSrcweir $(SLB)$/dbushared.lib \ 101cdf0e10cSrcweir $(SLB)$/browser.lib \ 102cdf0e10cSrcweir $(SLB)$/uiuno.lib \ 103cdf0e10cSrcweir $(SLB)$/app.lib \ 104cdf0e10cSrcweir $(SLB)$/uicontrols.lib 105cdf0e10cSrcweir 106cdf0e10cSrcweirSHL2TARGET=$(TARGET2)$(DLLPOSTFIX) 107cdf0e10cSrcweir 108cdf0e10cSrcweirSHL2STDLIBS= \ 109cdf0e10cSrcweir $(SVXCORELIB) \ 110cdf0e10cSrcweir $(SVXLIB) \ 111cdf0e10cSrcweir $(SFXLIB) \ 112cdf0e10cSrcweir $(SVTOOLLIB) \ 113cdf0e10cSrcweir $(FWELIB) \ 114cdf0e10cSrcweir $(TKLIB) \ 115cdf0e10cSrcweir $(VCLLIB) \ 116cdf0e10cSrcweir $(SVLLIB) \ 117cdf0e10cSrcweir $(SOTLIB) \ 118cdf0e10cSrcweir $(UNOTOOLSLIB) \ 119cdf0e10cSrcweir $(TOOLSLIB) \ 120cdf0e10cSrcweir $(UCBHELPERLIB) \ 121cdf0e10cSrcweir $(DBTOOLSLIB) \ 122cdf0e10cSrcweir $(COMPHELPERLIB) \ 123cdf0e10cSrcweir $(CPPUHELPERLIB) \ 124cdf0e10cSrcweir $(CPPULIB) \ 125cdf0e10cSrcweir $(SO2LIB) \ 126cdf0e10cSrcweir $(VOSLIB) \ 127cdf0e10cSrcweir $(SALLIB) 128cdf0e10cSrcweir 129cdf0e10cSrcweir.IF "$(GUI)"=="OS2" 130cdf0e10cSrcweirSHL2STDLIBS+= $(LB)$/i$(TARGET).lib 131cdf0e10cSrcweirSHL2DEPN=$(LB)$/i$(TARGET).lib 132cdf0e10cSrcweir.ELIF "$(GUI)"!="WNT" || "$(COM)"=="GCC" 133cdf0e10cSrcweirSHL2STDLIBS+= \ 134cdf0e10cSrcweir -l$(TARGET)$(DLLPOSTFIX) 135cdf0e10cSrcweirSHL2DEPN=$(SHL1TARGETN) 136cdf0e10cSrcweir.ELSE 137cdf0e10cSrcweirSHL2STDLIBS+= \ 138cdf0e10cSrcweir $(LB)$/i$(TARGET).lib 139cdf0e10cSrcweirSHL2DEPN=$(LB)$/i$(TARGET).lib 140cdf0e10cSrcweir.ENDIF 141cdf0e10cSrcweir 142cdf0e10cSrcweirSHL2IMPLIB=i$(TARGET2) 143cdf0e10cSrcweirSHL2LIBS=$(LIB2TARGET) 144cdf0e10cSrcweirSHL2DEF=$(MISC)$/$(SHL2TARGET).def 145cdf0e10cSrcweirDEF2NAME=$(SHL2TARGET) 146cdf0e10cSrcweirDEFLIB2NAME=$(TARGET2) 147cdf0e10cSrcweirDEF2DEPN= $(MISC)$/$(SHL2TARGET).flt \ 148cdf0e10cSrcweir $(SLB)$/$(TARGET2).lib 149cdf0e10cSrcweirSHL2USE_EXPORTS=name 150cdf0e10cSrcweir 151cdf0e10cSrcweirALL: \ 152cdf0e10cSrcweir $(LIB1TARGET) \ 153cdf0e10cSrcweir $(LIB2TARGET) \ 154cdf0e10cSrcweir ALLTAR 155cdf0e10cSrcweir 156cdf0e10cSrcweir.ENDIF 157cdf0e10cSrcweir# --- .res file ---------------------------------------------------------- 158cdf0e10cSrcweir 159cdf0e10cSrcweirRES2FILELIST=\ 160cdf0e10cSrcweir $(SRS)$/uidlg.srs \ 161cdf0e10cSrcweir $(SRS)$/app.srs \ 162cdf0e10cSrcweir $(SRS)$/uicontrols.srs \ 163cdf0e10cSrcweir $(SRS)$/browser.srs \ 164cdf0e10cSrcweir $(SRS)$/uiuno.srs \ 165cdf0e10cSrcweir $(SRS)$/querydesign.srs \ 166cdf0e10cSrcweir $(SRS)$/tabledesign.srs \ 167cdf0e10cSrcweir $(SRS)$/relationdesign.srs \ 168cdf0e10cSrcweir $(SRS)$/uiimglst.srs \ 169cdf0e10cSrcweir $(SRS)$/uimisc.srs 170cdf0e10cSrcweir 171cdf0e10cSrcweir.IF "$(GUI)"=="WNT" 172cdf0e10cSrcweir#needed by $(SLO)$/adodatalinks.obj 173cdf0e10cSrcweirSHL2STDLIBS+= $(OLE32LIB) \ 174cdf0e10cSrcweir $(OLEAUT32LIB) \ 175cdf0e10cSrcweir $(UUIDLIB) 176cdf0e10cSrcweir.ENDIF 177cdf0e10cSrcweir 178cdf0e10cSrcweirRESLIB2NAME=$(TARGET2) 179cdf0e10cSrcweirRESLIB2IMAGES=$(PRJ)$/res 180cdf0e10cSrcweirRESLIB2SRSFILES=$(RES2FILELIST) 181cdf0e10cSrcweir 182cdf0e10cSrcweir# --- database tools (sdbt) ----------------------------------- 183cdf0e10cSrcweir.IF "$(L10N_framework)"=="" 184cdf0e10cSrcweirLIB3TARGET=$(SLB)$/$(TARGET3).lib 185cdf0e10cSrcweirLIB3FILES=\ 186cdf0e10cSrcweir $(SLB)$/conntools.lib \ 187cdf0e10cSrcweir $(SLB)$/sdbtmisc.lib \ 188cdf0e10cSrcweir $(SLB)$/sdbtshared.lib 189cdf0e10cSrcweir 190cdf0e10cSrcweirSHL3TARGET=$(TARGET3)$(DLLPOSTFIX) 191cdf0e10cSrcweir 192cdf0e10cSrcweirSHL3STDLIBS= \ 193cdf0e10cSrcweir $(CPPULIB) \ 194cdf0e10cSrcweir $(CPPUHELPERLIB) \ 195cdf0e10cSrcweir $(UNOTOOLSLIB) \ 196cdf0e10cSrcweir $(COMPHELPERLIB) \ 197cdf0e10cSrcweir $(TOOLSLIB) \ 198cdf0e10cSrcweir $(DBTOOLSLIB) \ 199cdf0e10cSrcweir $(SALLIB) 200cdf0e10cSrcweir 201cdf0e10cSrcweirSHL3LIBS=$(LIB3TARGET) 202cdf0e10cSrcweirSHL3DEF=$(MISC)$/$(SHL3TARGET).def 203cdf0e10cSrcweirDEF3NAME=$(SHL3TARGET) 204cdf0e10cSrcweirSHL3VERSIONMAP=$(SOLARENV)/src/component.map 205cdf0e10cSrcweir 206cdf0e10cSrcweir.END 207cdf0e10cSrcweir 208cdf0e10cSrcweir# --- .res file ---------------------------------------------------------- 209cdf0e10cSrcweir 210cdf0e10cSrcweirRES3FILELIST=\ 211cdf0e10cSrcweir $(SRS)$/sdbt_strings.srs 212cdf0e10cSrcweir 213cdf0e10cSrcweirRESLIB3NAME=$(TARGET3) 214cdf0e10cSrcweirRESLIB3IMAGES=$(PRJ)$/res 215cdf0e10cSrcweirRESLIB3SRSFILES=$(RES3FILELIST) 216cdf0e10cSrcweir 217cdf0e10cSrcweir# --- Targets ---------------------------------- 218cdf0e10cSrcweir 219cdf0e10cSrcweir.INCLUDE : target.mk 220cdf0e10cSrcweir.IF "$(depend)"=="" 221cdf0e10cSrcweir 222cdf0e10cSrcweir.IF "$(L10N_framework)"=="" 223cdf0e10cSrcweir 224cdf0e10cSrcweir$(MISC)$/$(SHL2TARGET).flt: makefile.mk 225cdf0e10cSrcweir @echo ------------------------------ 226cdf0e10cSrcweir @echo CLEAR_THE_FILE > $@ 227cdf0e10cSrcweir @echo _TI >>$@ 228cdf0e10cSrcweir @echo _real >>$@ 229cdf0e10cSrcweir 230cdf0e10cSrcweir$(MISC)$/$(SHL1TARGET).flt: makefile.mk 231cdf0e10cSrcweir @echo ------------------------------ 232cdf0e10cSrcweir @echo CLEAR_THE_FILE > $@ 233cdf0e10cSrcweir @echo _TI >>$@ 234cdf0e10cSrcweir @echo _real >>$@ 235cdf0e10cSrcweir.ENDIF 236cdf0e10cSrcweir 237cdf0e10cSrcweir.ENDIF 238cdf0e10cSrcweir 239cdf0e10cSrcweirALLTAR : $(MISC)/dba.component $(MISC)/dbu.component $(MISC)/sdbt.component 240cdf0e10cSrcweir 241cdf0e10cSrcweir$(MISC)/dba.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \ 242cdf0e10cSrcweir dba.component 243cdf0e10cSrcweir $(XSLTPROC) --nonet --stringparam uri \ 244cdf0e10cSrcweir '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \ 245cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt dba.component 246cdf0e10cSrcweir 247cdf0e10cSrcweir$(MISC)/dbu.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \ 248cdf0e10cSrcweir dbu.component 249cdf0e10cSrcweir $(XSLTPROC) --nonet --stringparam uri \ 250cdf0e10cSrcweir '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \ 251cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt dbu.component 252cdf0e10cSrcweir 253cdf0e10cSrcweir$(MISC)/sdbt.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \ 254cdf0e10cSrcweir sdbt.component 255cdf0e10cSrcweir $(XSLTPROC) --nonet --stringparam uri \ 256cdf0e10cSrcweir '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL3TARGETN:f)' -o $@ \ 257cdf0e10cSrcweir $(SOLARENV)/bin/createcomponent.xslt sdbt.component 258