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#*************************************************************************
27
28PRJ=..$/..$/..
29PRJNAME=shell
30TARGET=shlxthdl
31LIBTARGET=NO
32ENABLE_EXCEPTIONS=TRUE
33USE_DEFFILE=TRUE
34.IF "$(BUILD_X64)"!=""
35USE_DEFFILE_X64=TRUE
36.ENDIF
37NO_DEFAULT_STL=TRUE
38USE_STLP_DEBUG=
39
40# --- Settings -----------------------------------------------------
41
42.INCLUDE :  settings.mk
43
44UWINAPILIB =
45UWINAPILIB_X64 =
46
47CFLAGS+=-DISOLATION_AWARE_ENABLED -DWIN32_LEAN_AND_MEAN -DXML_UNICODE -D_NTSDK -DUNICODE -D_UNICODE -D_WIN32_WINNT=0x0501
48CFLAGS+=-wd4710 -wd4711 -wd4514 -wd4619 -wd4217 -wd4820
49CDEFS+=-D_WIN32_IE=0x501
50
51# --- Files --------------------------------------------------------
52
53SLOFILES=$(SLO)$/classfactory.obj\
54	$(SLO)$/columninfo.obj\
55	$(SLO)$/infotips.obj\
56	$(SLO)$/propsheets.obj\
57	$(SLO)$/shlxthdl.obj\
58	$(SLO)$/listviewbuilder.obj\
59	$(SLO)$/document_statistic.obj\
60	$(SLO)$/thumbviewer.obj\
61
62SHL1TARGET=$(TARGET)
63
64.IF "$(COM)"=="GCC"
65SHL1STDLIBS=$(ZLIB3RDLIB) $(EXPAT3RDLIB) $(COMCTL32LIB)
66SHL1LIBS=
67.ELSE
68SHL1STDLIBS=
69SHL1LIBS=$(SOLARLIBDIR)$/zlib.lib\
70    $(SOLARLIBDIR)$/expat_xmlparse.lib\
71    $(SOLARLIBDIR)$/expat_xmltok.lib
72.ENDIF
73SHL1STDLIBS+=\
74    $(OLEAUT32LIB)\
75    $(ADVAPI32LIB)\
76    $(OLE32LIB)\
77    $(UUIDLIB)\
78    $(SHELL32LIB)\
79    $(KERNEL32LIB)\
80    $(GDI32LIB)\
81    $(GDIPLUSLIB)
82
83.IF "$(COM)"!="GCC"
84SHL1STDLIBS+=\
85    msvcprt.lib
86.ENDIF
87
88SHL1STDLIBS+=\
89    $(SHLWAPILIB)
90
91SHL1LIBS+=$(SLB)$/util.lib\
92    $(SLB)$/ooofilereader.lib
93
94SHL1DEPN=
95
96SHL1OBJS=$(SLOFILES)
97SHL1DEF=$(MISC)$/$(SHL1TARGET).def
98
99SHL1RES=$(RES)$/$(TARGET).res
100
101DEF1NAME=$(SHL1TARGET)
102DEF1EXPORTFILE=exports.dxp
103
104.IF "$(BUILD_X64)"!=""
105# -------------------- x64 -----------------------
106CFLAGS_X64+=-DISOLATION_AWARE_ENABLED -DWIN32_LEAN_AND_MEAN -DXML_UNICODE -D_NTSDK -DUNICODE -D_UNICODE -D_WIN32_WINNT=0x0501
107CFLAGS_X64+=-wd4710 -wd4711 -wd4514 -wd4619 -wd4217 -wd4820
108CDEFS_X64+=-D_WIN32_IE=0x501
109
110SLOFILES_X64= \
111	$(SLO_X64)$/classfactory.obj\
112	$(SLO_X64)$/columninfo.obj\
113	$(SLO_X64)$/infotips.obj\
114	$(SLO_X64)$/propsheets.obj\
115	$(SLO_X64)$/shlxthdl.obj\
116	$(SLO_X64)$/listviewbuilder.obj\
117	$(SLO_X64)$/document_statistic.obj\
118	$(SLO_X64)$/thumbviewer.obj\
119
120SHL1TARGET_X64=$(TARGET)
121SHL1LIBS_X64=$(SOLARLIBDIR_X64)$/zlib.lib\
122    $(SOLARLIBDIR_X64)$/expat_xmlparse.lib\
123    $(SOLARLIBDIR_X64)$/expat_xmltok.lib
124
125SHL1STDLIBS_X64+=\
126    $(OLEAUT32LIB_X64)\
127    $(ADVAPI32LIB_X64)\
128    $(OLE32LIB_X64)\
129    $(UUIDLIB_X64)\
130    $(SHELL32LIB_X64)\
131    $(KERNEL32LIB_X64)\
132    $(GDI32LIB_X64)\
133    $(USER32LIB_X64) \
134    $(GDIPLUSLIB_X64) \
135	$(MSVCRT_X64)   \
136	$(MSVCPRT_X64)  \
137	$(OLDNAMESLIB_X64) \
138    msvcprt.lib
139
140SHL1LIBS_X64+=$(SLB_X64)$/util.lib\
141    $(SLB_X64)$/ooofilereader.lib
142SHL1OBJS_X64=$(SLOFILES_X64)
143SHL1DEF_X64=$(MISC_X64)$/$(SHL1TARGET).def
144SHL1RES_X64=$(RES_X64)$/$(TARGET).res
145
146DEF1NAME_X64=$(SHL1TARGET_X64)
147DEF1EXPORTFILE_X64=exports.dxp
148.ENDIF # "$(BUILD_X64)"!=""
149
150# --- Targets ------------------------------------------------------
151
152.INCLUDE :	set_wntx64.mk
153.INCLUDE :	target.mk
154INCLUDE!:=$(subst,/stl, $(INCLUDE))
155.EXPORT : INCLUDE
156.INCLUDE :	tg_wntx64.mk
157
158