xref: /AOO41X/main/shell/source/win32/shlxthandler/ooofilt/makefile.mk (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
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=ooofilt
31LIBTARGET=NO
32ENABLE_EXCEPTIONS=TRUE
33USE_DEFFILE=TRUE
34
35# Do not use the dynamic STLport library.
36NO_DEFAULT_STL=YES
37
38# Do not use the uwinapi library
39UWINAPILIB=
40
41
42# --- Settings -----------------------------------------------------
43
44.INCLUDE :  settings.mk
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
48CDEFS+=-D_WIN32_IE=0x501
49# SCPCDEFS+=-D_STLP_USE_STATIC_LIB
50
51# --- Files --------------------------------------------------------
52
53SLOFILES=$(SLO)$/ooofilt.obj\
54        $(SLO)$/propspec.obj\
55        $(SLO)$/stream_helper.obj
56
57#       $(SLO)$/utilities.obj
58#        $(SLO)$/dbgmacros.obj
59
60SHL1TARGET=$(TARGET)
61.IF "$(COM)"=="GCC"
62SHL1STDLIBS=$(ZLIB3RDLIB) $(EXPAT3RDLIB)
63SHL1LIBS=
64.ELSE
65SHL1STDLIBS=
66SHL1LIBS=$(SOLARLIBDIR)$/zlib.lib\
67    $(SOLARLIBDIR)$/expat_xmlparse.lib\
68    $(SOLARLIBDIR)$/expat_xmltok.lib
69.ENDIF
70SHL1STDLIBS+=$(OLE32LIB)\
71     $(ADVAPI32LIB)\
72     $(COMCTL32LIB)\
73     $(UUIDLIB)\
74     $(SHELL32LIB)\
75     $(KERNEL32LIB)\
76     $(OLDNAMESLIB)
77
78.IF "$(COM)"!="GCC"
79SHL1STDLIBS+=msvcprt.lib
80
81.IF "$(PRODUCT)"!="full"
82SHL1STDLIBS+=msvcrt.lib
83.ENDIF
84.ENDIF
85
86
87#     $(LIBSTLPORTST)
88
89SHL1LIBS+=$(SLB)$/util.lib\
90    $(SLB)$/ooofilereader.lib
91
92SHL1DEPN=
93SHL1OBJS=$(SLOFILES)
94SHL1DEF=$(MISC)$/$(SHL1TARGET).def
95DEF1NAME=$(SHL1TARGET)
96DEF1EXPORTFILE=exports.dxp
97
98
99.IF "$(BUILD_X64)"!=""
100#---------------------------- x64 -------------------------
101CFLAGS_X64+=-DISOLATION_AWARE_ENABLED -DWIN32_LEAN_AND_MEAN -DXML_UNICODE -D_NTSDK -DUNICODE -D_UNICODE -D_WIN32_WINNT=0x0501
102CFLAGS_X64+=-wd4710 -wd4711 -wd4514 -wd4619 -wd4217 -wd4820
103CDEFS_X64+=-D_WIN32_IE=0x501
104USE_DEFFILE_X64=TRUE
105
106SLOFILES_X64=$(SLO_X64)$/ooofilt.obj\
107        $(SLO_X64)$/propspec.obj\
108        $(SLO_X64)$/stream_helper.obj
109
110SHL1TARGET_X64=$(TARGET)
111
112SHL1LIBS_X64=$(SOLARLIBDIR_X64)$/zlib.lib\
113    $(SOLARLIBDIR_X64)$/expat_xmlparse.lib\
114    $(SOLARLIBDIR_X64)$/expat_xmltok.lib
115
116SHL1STDLIBS_X64+=$(OLE32LIB_X64)\
117     $(ADVAPI32LIB_X64)\
118     $(COMCTL32LIB_X64)\
119     $(UUIDLIB_X64)\
120     $(USER32LIB_X64) \
121     $(SHELL32LIB_X64)\
122     $(KERNEL32LIB_X64)\
123     $(MSVCPRT_X64) \
124     $(MSVCRT_X64) \
125     $(OLDNAMESLIB_X64)
126
127SHL1LIBS_X64+=$(SLB_X64)$/util.lib\
128    $(SLB_X64)$/ooofilereader.lib
129SHL1OBJS_X64=$(SLOFILES_X64)
130SHL1DEF_X64=$(MISC_X64)$/$(SHL1TARGET_X64).def
131DEF1NAME_X64=$(SHL1TARGET_X64)
132DEF1EXPORTFILE_X64=exports.dxp
133.ENDIF # "$(BUILD_X64)"!=""
134
135# --- Targets ------------------------------------------------------
136
137.INCLUDE :  set_wntx64.mk
138.INCLUDE :  target.mk
139INCLUDE!:=$(subst,/stl, $(INCLUDE))
140.EXPORT : INCLUDE
141.INCLUDE :  tg_wntx64.mk
142