1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
35 TARGET
=cli_cpp_bridgetest.uno
38 ENABLE_EXCEPTIONS
=TRUE
41 # disable caching to avoid stale objects
44 .EXPORT
: CCACHE_DISABLE
46 # --- Settings -----------------------------------------------------
48 .INCLUDE
: settings.mk
50 CFLAGSENABLESYMBOLS
:=-Z7
51 # ------------------------------------------------------------------
53 #.IF "$(CCNUMVER)" >= "001399999999"
54 #CFLAGSCXX += -clr:oldSyntax -AI $(OUT)$/bin -AI $(SOLARBINDIR)
59 #CFLAGSCXX += -clr -AI $(OUT)$/bin -AI $(SOLARBINDIR)
64 $(SLO
)$/cli_cpp_bridgetest.obj
66 #SHL1OBJS = $(SLOFILES)
68 #SHL1TARGET = $(TARGET)
70 #SHL1DEF = $(MISC)$/$(SHL1TARGET).def
71 #DEF1NAME = $(SHL1TARGET)
75 # --- Targets ------------------------------------------------------
79 .IF
"$(COM)" == "MSC" && "$(GUI)" == "WNT"
81 ALLTAR
: $(BIN
)$/cli_bridgetest_inprocess.exe
83 #################################################################
85 CLI_URE
= $(SOLARBINDIR
)$/cli_ure.dll
86 CLI_URETYPES
= $(SOLARBINDIR
)$/cli_uretypes.dll
87 CLI_BASETYPES
= $(SOLARBINDIR
)$/cli_basetypes.dll
88 CLI_CPPUHELPER
= $(SOLARBINDIR
)$/cli_cppuhelper.dll
89 CLI_OOOTYPES
= $(SOLARBINDIR
)$/cli_oootypes.dll
90 CLI_TYPES_BRIDGETEST
= $(BIN
)$/cli_types_bridgetest.dll
93 .IF
"$(CCNUMVER)" <= "001399999999"
94 VBC_FLAGS
= -warnaserror
+
96 VBC_FLAGS
= -nowarn
:42030 -warnaserror
+
99 CSCFLAGS
+= -debug
+ -checked
+ -define:DEBUG
-define:TRACE
100 VBC_FLAGS
+= -debug
+ -define:DEBUG
=TRUE
-define:TRACE
=TRUE
102 CSCFLAGS
+= -optimize
103 VBC_FLAGS
+= -optimize
107 # C# ----------------------------------------------
108 $(BIN
)$/cli_cs_testobj.uno.dll
: \
114 $(CSC
) $(CSCFLAGS
) -target
:library
-out
:$@ \
115 -reference
:$(CLI_TYPES_BRIDGETEST
) \
116 -reference
:$(CLI_URE
) \
117 -reference
:$(CLI_BASETYPES
) \
118 -reference
:$(CLI_URETYPES
) \
119 cli_cs_testobj.cs cli_cs_multi.cs
121 $(BIN
)$/cli_cs_bridgetest.uno.dll
: \
122 cli_cs_bridgetest.cs \
126 $(CSC
) $(CSCFLAGS
) -target
:library
-out
:$@ \
127 -reference
:$(CLI_TYPES_BRIDGETEST
) \
128 -reference
:$(CLI_URETYPES
) \
129 -reference
:$(CLI_BASETYPES
) \
130 -reference
:$(CLI_URE
) \
131 -reference
:System.dll \
134 # Visual Basic ------------------------------------------
135 $(BIN
)$/cli_vb_bridgetest.uno.dll
: \
136 cli_vb_bridgetest.vb \
140 $(VBC
) $(VBC_FLAGS
) \
143 -reference
:$(CLI_URETYPES
) \
144 -reference
:$(CLI_BASETYPES
) \
145 -reference
:$(CLI_URE
) \
146 -reference
:$(CLI_TYPES_BRIDGETEST
) \
147 -reference
:System.dll \
148 -reference
:System.Drawing.dll \
149 -reference
:System.Windows.Forms.dll
151 $(BIN
)$/cli_vb_testobj.uno.dll
: \
156 $(VBC
) $(VBC_FLAGS
) \
159 -reference
:$(CLI_BASETYPES
) \
160 -reference
:$(CLI_URETYPES
) \
161 -reference
:$(CLI_URE
) \
162 -reference
:$(CLI_TYPES_BRIDGETEST
) \
163 -reference
:System.dll \
164 -reference
:System.Drawing.dll \
165 -reference
:System.Windows.Forms.dll \
168 $(MISC
)$/copyassemblies.done .ERRREMOVE
:
169 $(GNUCOPY
) $(CLI_CPPUHELPER
) $(BIN
)$/$(CLI_CPPUHELPER
:f
)
170 $(GNUCOPY
) $(CLI_BASETYPES
) $(BIN
)$/$(CLI_BASETYPES
:f
)
171 $(GNUCOPY
) $(CLI_URETYPES
) $(BIN
)$/$(CLI_URETYPES
:f
)
172 $(GNUCOPY
) $(CLI_URE
) $(BIN
)$/$(CLI_URE
:f
)
173 $(GNUCOPY
) $(CLI_OOOTYPES
) $(BIN
)$/$(CLI_OOOTYPES
:f
)
176 $(BIN
)$/cli_bridgetest_inprocess.exe
: \
177 cli_bridgetest_inprocess.cs \
178 $(BIN
)$/cli_cs_bridgetest.uno.dll \
179 $(BIN
)$/cli_cs_testobj.uno.dll \
180 $(MISC
)$/copyassemblies.done \
185 $(CSC
) $(CSCFLAGS
) -target
:exe
-out
:$@ \
186 -reference
:$(CLI_TYPES_BRIDGETEST
) \
187 -reference
:$(CLI_BASETYPES
) \
188 -reference
:$(CLI_URETYPES
) \
189 -reference
:$(CLI_URE
) \
190 -reference
:$(CLI_CPPUHELPER
) \
191 -reference
:$(BIN
)$/cli_cs_bridgetest.uno.dll \
192 -reference
:$(BIN
)$/cli_cs_testobj.uno.dll \
193 cli_bridgetest_inprocess.cs
194 $(GNUCOPY
) cli_bridgetest_inprocess.ini
$(BIN
)