1#************************************************************************* 2# 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# Copyright 2000, 2010 Oracle and/or its affiliates. 6# 7# OpenOffice.org - a multi-platform office productivity suite 8# 9# This file is part of OpenOffice.org. 10# 11# OpenOffice.org is free software: you can redistribute it and/or modify 12# it under the terms of the GNU Lesser General Public License version 3 13# only, as published by the Free Software Foundation. 14# 15# OpenOffice.org is distributed in the hope that it will be useful, 16# but WITHOUT ANY WARRANTY; without even the implied warranty of 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18# GNU Lesser General Public License version 3 for more details 19# (a copy is included in the LICENSE file that accompanied this code). 20# 21# You should have received a copy of the GNU Lesser General Public License 22# version 3 along with OpenOffice.org. If not, see 23# <http://www.openoffice.org/license.html> 24# for a copy of the LGPLv3 License. 25# 26#************************************************************************* 27PRJ=..$/.. 28 29# ----------------------------------------------------------------- 30 31PRJNAME=extensions 32TARGET=oleautobridge.uno 33TARGET2=oleautobridge2.uno 34 35ENABLE_EXCEPTIONS=TRUE 36 37.INCLUDE : $(PRJ)$/util$/makefile.pmk 38 39LIBTARGET=NO 40USE_DEFFILE=YES 41 42USE_DEFFILE=TRUE 43 44INCPRE+= $(foreach,i,$(ATL_INCLUDE) -I$(i)) 45 46# --- Settings ----------------------------------------------------- 47 48.IF "$(GUI)" == "WNT" && "$(DISABLE_ATL)"=="" 49 50.IF "$(USE_STLP_DEBUG)"!="" 51CDEFS+=-D_DEBUG 52.ENDIF # "$(USE_STLP_DEBUG)"!="" 53 54SLOFILES= \ 55 $(SLO)$/servreg.obj \ 56 $(SLO)$/servprov.obj \ 57 $(SLO)$/unoobjw.obj \ 58 $(SLO)$/oleobjw.obj \ 59 $(SLO)$/olethread.obj \ 60 $(SLO)$/oledll.obj \ 61 $(SLO)$/jscriptclasses.obj \ 62 $(SLO)$/ole2uno.obj \ 63 $(SLO)$/windata.obj \ 64 $(SLO)$/unotypewrapper.obj 65 66SECOND_BUILD=OWNGUID 67OWNGUID_SLOFILES=$(SLOFILES) 68OWNGUIDCDEFS+= -DOWNGUID 69 70# the original library 71SHL1TARGET=$(TARGET) 72SHL1STDLIBS=\ 73 $(SALLIB) \ 74 $(VOSLIB) \ 75 $(CPPULIB) \ 76 $(CPPUHELPERLIB) \ 77 $(OLE32LIB) \ 78 $(UUIDLIB) \ 79 $(ADVAPI32LIB) \ 80 $(OLEAUT32LIB) 81 82.IF "$(COM)"=="MSC" 83.IF "$(WINDOWS_VISTA_PSDK)"!="" || "$(CCNUMVER)"<="001399999999" 84.IF "$(USE_STLP_DEBUG)" != "" 85 SHL1STDLIBS+= $(ATL_LIB)$/atlsd.lib 86.ELSE 87 SHL1STDLIBS+= $(ATL_LIB)$/atls.lib 88.ENDIF 89.ENDIF # "$(WINDOWS_VISTA_PSDK)"!="" || "$(CCNUMVER)"<="001399999999" 90.ENDIF # "$(COM)"=="MSC" 91 92SHL1LIBS= 93SHL1OBJS=$(SLOFILES) 94 95DEF1NAME=$(SHL1TARGET) 96DEF1EXPORTFILE=$(SHL1TARGET).dxp 97 98# the second library 99SHL2TARGET=$(TARGET2) 100SHL2STDLIBS=\ 101 $(SALLIB) \ 102 $(VOSLIB) \ 103 $(CPPULIB) \ 104 $(CPPUHELPERLIB) \ 105 $(OLE32LIB) \ 106 $(UUIDLIB) \ 107 $(ADVAPI32LIB) \ 108 $(OLEAUT32LIB) 109 110.IF "$(COM)"=="MSC" 111.IF "$(WINDOWS_VISTA_PSDK)"!="" || "$(CCNUMVER)"<="001399999999" 112.IF "$(USE_STLP_DEBUG)" != "" 113 SHL2STDLIBS+= $(ATL_LIB)$/atlsd.lib 114.ELSE 115 SHL2STDLIBS+= $(ATL_LIB)$/atls.lib 116.ENDIF 117.ENDIF # "$(WINDOWS_VISTA_PSDK)"!="" || "$(CCNUMVER)"<="001399999999" 118.ENDIF # "$(COM)"=="MSC" 119 120SHL2LIBS= 121SHL2OBJS=$(REAL_OWNGUID_SLOFILES) 122 123DEF2NAME=$(SHL2TARGET) 124DEF2EXPORTFILE=$(TARGET).dxp 125 126.ENDIF 127 128#---------------------------------------------------------------- 129 130.INCLUDE : target.mk 131 132ALLTAR : $(MISC)/oleautobridge.component 133 134$(MISC)/oleautobridge.component .ERRREMOVE : \ 135 $(SOLARENV)/bin/createcomponent.xslt oleautobridge.component 136 $(XSLTPROC) --nonet --stringparam uri \ 137 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \ 138 $(SOLARENV)/bin/createcomponent.xslt oleautobridge.component 139