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 = cli_ure
30
31TARGET = cli_uno
32NO_BSYMBOLIC = TRUE
33ENABLE_EXCEPTIONS = TRUE
34USE_DEFFILE = TRUE
35
36# --- Settings -----------------------------------------------------
37
38.INCLUDE :  settings.mk
39.INCLUDE : $(PRJ)$/util$/makefile.pmk
40
41
42.IF "$(COM)" == "MSC"
43# When compiling for CLR, disable "warning C4339: use of undefined type detected
44# in CLR meta-data - use of this type may lead to a runtime exception":
45.IF "$(CCNUMVER)" <= "001399999999"
46CFLAGSCXX += -clr -AI $(DLLDEST) -AI $(SOLARBINDIR) -wd4339
47.ELSE
48CFLAGSCXX += -clr:oldSyntax -AI $(DLLDEST) -AI $(SOLARBINDIR) -wd4339
49.ENDIF
50
51.IF "$(debug)" != ""
52CFLAGS += -Ob0
53.ENDIF
54
55
56
57.IF "$(CCNUMVER)" <= "001399999999"
58#see  Microsoft Knowledge Base Article - 814472
59LINKFLAGS += -NOENTRY -NODEFAULTLIB:nochkclr.obj -INCLUDE:__DllMainCRTStartup@12
60.ENDIF
61# --- Files --------------------------------------------------------
62
63SLOFILES = \
64	$(SLO)$/cli_environment.obj	\
65	$(SLO)$/cli_bridge.obj		\
66	$(SLO)$/cli_data.obj		\
67	$(SLO)$/cli_proxy.obj		\
68	$(SLO)$/cli_uno.obj
69
70SHL1OBJS = $(SLOFILES)
71
72SHL1TARGET = $(TARGET)
73
74SHL1STDLIBS = \
75	$(CPPULIB)			\
76	$(SALLIB)			\
77	mscoree.lib
78
79.IF "$(CCNUMVER)" >= "001399999999"
80SHL1STDLIBS += \
81	msvcmrt.lib
82.ENDIF
83
84SHL1VERSIONMAP = bridge_exports.map
85
86SHL1IMPLIB = i$(TARGET)
87SHL1LIBS = $(SLB)$/$(TARGET).lib
88SHL1DEF = $(MISC)$/$(SHL1TARGET).def
89DEF1NAME = $(SHL1TARGET)
90
91.ENDIF
92
93# --- Targets ------------------------------------------------------
94
95.INCLUDE :  target.mk
96