merged tag ooo/OOO330_m14
[LibreOffice.git] / extensions / source / activex / main / makefile.mk
blobe4770180886ce5cbc8b42f45ffbceb6d4eb1a08f
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 #*************************************************************************
28 PRJ=..$/..$/..
29 PRJNAME=extensions
30 TARGET=so_activex
32 use_shl_versions=
34 # --- Settings ----------------------------------
35 .IF "$(GUI)" == "WNT" && "$(DISABLE_ACTIVEX)"==""
36 PROF_EDITION=TRUE
37 .ENDIF
39 .INCLUDE : settings.mk
41 .IF "$(GUI)" == "WNT" && "$(DISABLE_ACTIVEX)"==""
43 VERSIONOBJ=
44 LIBTARGET=NO
45 USE_DEFFILE=YES
46 UWINAPILIB=
48 .IF "$(BUILD_X64)"!=""
49 USE_DEFFILE_X64=TRUE
50 .ENDIF
52 INCPRE+=$(foreach,i,$(ATL_INCLUDE) -I$(i)) \
53 -I$(MISC) \
55 # --- Files -------------------------------------
58 .IF "$(PRODUCT)"!=""
59 RC+=-DPRODUCT
60 .ENDIF
62 RCFILES=\
63 $(TARGET).rc
64 RCDEPN=$(MISC)$/envsettings.h
66 SLOFILES=\
67 $(SLO)$/so_activex.obj \
68 $(SLO)$/SOActiveX.obj \
69 $(SLO)$/SOComWindowPeer.obj \
70 $(SLO)$/SODispatchInterceptor.obj \
71 $(SLO)$/SOActionsApproval.obj \
72 $(SLO)$/StdAfx2.obj
74 SHL1TARGET=$(TARGET)
75 SHL1STDLIBS=\
76 $(UUIDLIB) \
77 $(ADVAPI32LIB) \
78 $(OLE32LIB) \
79 $(OLEAUT32LIB) \
80 $(GDI32LIB) \
81 $(URLMONLIB) \
82 $(SHLWAPILIB)
84 .IF "$(COM)"!="GCC"
85 .IF "$(CCNUMVER)" > "001300000000"
86 SHL1STDLIBS+= $(ATL_LIB)$/atls.lib
87 .ENDIF
88 .ENDIF
91 # $(KERNEL32LIB) \
92 # rpcndr.lib \
93 # rpcns4.lib \
94 # rpcrt4.lib
96 #$(KERNEL32LIB) rpcndr.lib rpcns4.lib rpcrt4.lib
98 SHL1OBJS=$(SLOFILES)
100 SHL1LIBS=
101 SHL1DEF=$(TARGET).def
102 SHL1RES=$(RES)$/$(TARGET).res
104 .ENDIF
106 .IF "$(BUILD_X64)"!=""
107 # -------------------- x64 -----------------------
109 CDEFS_X64+:=$(foreach,i,$(CDEFS) $(subst,-D_X86_=1, $i))
110 LIBTARGET_X64=NO
111 USE_DEFFILE_X64=YES
112 UWINAPILIB_X64=
114 SLOFILES_X64= \
115 $(SLO_X64)$/so_activex.obj \
116 $(SLO_X64)$/SOActiveX.obj \
117 $(SLO_X64)$/SOComWindowPeer.obj \
118 $(SLO_X64)$/SODispatchInterceptor.obj \
119 $(SLO_X64)$/SOActionsApproval.obj \
120 $(SLO_X64)$/StdAfx2.obj
122 SHL1TARGET_X64=$(TARGET)
124 SHL1STDLIBS_X64+=\
125 $(UUIDLIB_X64) \
126 $(ADVAPI32LIB_X64) \
127 $(OLE32LIB_X64) \
128 $(OLEAUT32LIB_X64) \
129 $(GDI32LIB_X64) \
130 $(URLMONLIB_X64) \
131 $(SHLWAPILIB_X64) \
132 $(KERNEL32LIB_X64) \
133 $(USER32LIB_X64) \
134 $(MSVCRT_X64) \
135 $(MSVCPRT_X64) \
136 $(OLDNAMESLIB_X64)
138 SHL1OBJS_X64=$(SLOFILES_X64)
139 SHL1DEF_X64=$(TARGET).def
141 SHL1STDLIBS_X64+= $(ATL_LIB)$/amd64$/atls.lib
143 .ENDIF # "$(BUILD_X64)"!=""
145 # --- Targets ----------------------------------
147 .INCLUDE : set_wntx64.mk
148 VERSIONOBJ_X64=
149 .INCLUDE : target.mk
150 .INCLUDE : tg_wntx64.mk
152 $(MISC)$/envsettings.h : makefile.mk
153 -$(RM) $@
154 # it looks wrong; but rc likes it that way...
155 echo "#define MISC .\..\$(INPATH)\misc" > $@