1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2010 by Sun Microsystems, Inc.
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=propertyhdl
31LIBTARGET=NO
32ENABLE_EXCEPTIONS=TRUE
33NO_DEFAULT_STL=YES
34USE_DEFFILE=TRUE
35.IF "$(BUILD_X64)"!=""
36USE_DEFFILE_X64=TRUE
37.ENDIF
38
39# --- Settings -----------------------------------------------------
40
41.INCLUDE :  settings.mk
42
43UWINAPILIB =
44UWINAPILIB_X64 =
45
46CFLAGS+=-DISOLATION_AWARE_ENABLED -DWIN32_LEAN_AND_MEAN -DXML_UNICODE -D_NTSDK -DUNICODE -D_UNICODE -D_WIN32_WINNT=0x0501
47CFLAGS+=-wd4710 -wd4711 -wd4514 -wd4619 -wd4217 -wd4820 -wd4100
48CDEFS+=-D_WIN32_IE=0x501
49
50# --- Files --------------------------------------------------------
51
52SLOFILES=$(SLO)$/$(TARGET).obj\
53	$(SLO)$/stream_helper.obj
54
55SHL1TARGET=$(TARGET)
56
57.IF "$(COM)"=="GCC"
58SHL1STDLIBS=$(ZLIB3RDLIB) $(EXPAT3RDLIB) $(COMCTL32LIB)
59SHL1LIBS=
60.ELSE
61SHL1STDLIBS=
62SHL1LIBS=$(SOLARLIBDIR)$/zlib.lib\
63    $(SOLARLIBDIR)$/expat_xmlparse.lib\
64    $(SOLARLIBDIR)$/expat_xmltok.lib
65.ENDIF
66SHL1STDLIBS+=\
67    $(OLEAUT32LIB)\
68    $(ADVAPI32LIB)\
69    $(OLE32LIB)\
70    $(UUIDLIB)\
71    $(SHELL32LIB)\
72    $(KERNEL32LIB)\
73    $(GDI32LIB)\
74    $(GDIPLUSLIB)\
75    $(SHLWAPILIB)\
76    $(PROPSYSLIB)
77
78.IF "$(COM)"!="GCC"
79SHL1STDLIBS+=\
80    msvcprt.lib
81
82.IF "$(PRODUCT)"!="full"
83SHL1STDLIBS+=msvcrt.lib
84.ENDIF
85.ENDIF
86
87SHL1LIBS+=$(SLB)$/util.lib\
88    $(SLB)$/ooofilereader.lib
89
90SHL1DEPN=
91SHL1OBJS=$(SLOFILES)
92SHL1DEF=$(MISC)$/$(SHL1TARGET).def
93DEF1NAME=$(SHL1TARGET)
94DEF1EXPORTFILE=exports.dxp
95
96# -------------------- x64 -----------------------
97.IF "$(BUILD_X64)"!=""
98CFLAGS_X64+=-DISOLATION_AWARE_ENABLED -DWIN32_LEAN_AND_MEAN -DXML_UNICODE -D_NTSDK -DUNICODE -D_UNICODE -D_WIN32_WINNT=0x0501
99CFLAGS_X64+=-wd4710 -wd4711 -wd4514 -wd4619 -wd4217 -wd4820
100CDEFS_X64+=-D_WIN32_IE=0x501
101SLOFILES_X64=$(SLO_X64)$/$(TARGET).obj
102
103SLOFILES_X64= \
104	$(SLO_X64)$/propertyhdl.obj\
105	$(SLO_X64)$/stream_helper.obj\
106
107SHL1TARGET_X64=$(TARGET)
108SHL1LIBS_X64=$(SOLARLIBDIR_X64)$/zlib.lib\
109    $(SOLARLIBDIR_X64)$/expat_xmlparse.lib\
110    $(SOLARLIBDIR_X64)$/expat_xmltok.lib
111
112SHL1STDLIBS_X64+=\
113    $(OLEAUT32LIB_X64)\
114    $(ADVAPI32LIB_X64)\
115    $(OLE32LIB_X64)\
116    $(UUIDLIB_X64)\
117    $(SHELL32LIB_X64)\
118    $(KERNEL32LIB_X64)\
119    $(GDI32LIB_X64)\
120    $(USER32LIB_X64) \
121    $(GDIPLUSLIB_X64) \
122	$(MSVCRT_X64)   \
123	$(MSVCPRT_X64)  \
124	$(OLDNAMESLIB_X64)\
125	$(PROPSYSLIB_X64)
126
127SHL1LIBS_X64+=$(SLB_X64)$/util.lib\
128    $(SLB_X64)$/ooofilereader.lib
129SHL1OBJS_X64=$(SLOFILES_X64)
130SHL1DEF_X64=$(MISC_X64)$/$(SHL1TARGET).def
131
132DEF1NAME_X64=$(SHL1TARGET_X64)
133DEF1EXPORTFILE_X64=exports.dxp
134
135.ENDIF # "$(BUILD_X64)"!=""
136
137# --- Targets ------------------------------------------------------
138.INCLUDE :  set_wntx64.mk
139.INCLUDE :	target.mk
140INCLUDE!:=$(subst,/stl, $(INCLUDE))
141.EXPORT : INCLUDE
142.INCLUDE :  tg_wntx64.mk
143