merged tag ooo/OOO330_m14
[LibreOffice.git] / extensions / source / ole / makefile.mk
blobad4ecee72c822ad4d90999ab6e07ad0d3af719a6
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
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.
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).
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.
26 #*************************************************************************
27 PRJ=..$/..
29 # -----------------------------------------------------------------
31 PRJNAME=extensions
32 TARGET=oleautobridge.uno
33 TARGET2=oleautobridge2.uno
35 ENABLE_EXCEPTIONS=TRUE
37 .INCLUDE : $(PRJ)$/util$/makefile.pmk
39 LIBTARGET=NO
40 USE_DEFFILE=YES
42 USE_DEFFILE=TRUE
44 INCPRE+= $(foreach,i,$(ATL_INCLUDE) -I$(i))
46 # --- Settings -----------------------------------------------------
48 .IF "$(GUI)" == "WNT" && "$(DISABLE_ATL)"==""
50 .IF "$(USE_STLP_DEBUG)"!=""
51 CDEFS+=-D_DEBUG
52 .ENDIF # "$(USE_STLP_DEBUG)"!=""
54 SLOFILES= \
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
66 SECOND_BUILD=OWNGUID
67 OWNGUID_SLOFILES=$(SLOFILES)
68 OWNGUIDCDEFS+= -DOWNGUID
70 # the original library
71 SHL1TARGET=$(TARGET)
72 SHL1STDLIBS=\
73 $(SALLIB) \
74 $(VOSLIB) \
75 $(CPPULIB) \
76 $(CPPUHELPERLIB) \
77 $(OLE32LIB) \
78 $(UUIDLIB) \
79 $(ADVAPI32LIB) \
80 $(OLEAUT32LIB)
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"
92 SHL1LIBS=
93 SHL1OBJS=$(SLOFILES)
95 DEF1NAME=$(SHL1TARGET)
96 DEF1EXPORTFILE=$(SHL1TARGET).dxp
98 # the second library
99 SHL2TARGET=$(TARGET2)
100 SHL2STDLIBS=\
101 $(SALLIB) \
102 $(VOSLIB) \
103 $(CPPULIB) \
104 $(CPPUHELPERLIB) \
105 $(OLE32LIB) \
106 $(UUIDLIB) \
107 $(ADVAPI32LIB) \
108 $(OLEAUT32LIB)
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"
120 SHL2LIBS=
121 SHL2OBJS=$(REAL_OWNGUID_SLOFILES)
123 DEF2NAME=$(SHL2TARGET)
124 DEF2EXPORTFILE=$(TARGET).dxp
126 .ENDIF
128 #----------------------------------------------------------------
130 .INCLUDE : target.mk