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