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 $
12 # This file is part of OpenOffice.org.
14 # OpenOffice.org is free software: you can redistribute it and/or modify
15 # it under the terms of the GNU Lesser General Public License version 3
16 # only, as published by the Free Software Foundation.
18 # OpenOffice.org is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU Lesser General Public License version 3 for more details
22 # (a copy is included in the LICENSE file that accompanied this code).
24 # You should have received a copy of the GNU Lesser General Public License
25 # version 3 along with OpenOffice.org. If not, see
26 # <http://www.openoffice.org/license.html>
27 # for a copy of the LGPLv3 License.
29 # ************************************************************************/
32 # Builds the SpreadSheet examples of the Developers Guide.
36 TARGET
:= test_climaker
40 .INCLUDE
: $(PRJ
)$/util
$/makefile.pmk
42 #.IF "$(BUILD_FOR_CLI)" == ""
45 CSCFLAGS
+= -checked
+ -define:DEBUG
-define:TRACE
-debug
+
47 CSCFLAGS
+= -optimize
+
51 EXETARGET2
=$(BIN
)$/runtests.exe
54 TESTLIB
=$(BIN
)$/$(name
)
56 TESTLIB
=$(BIN
)$/version_current.dll
58 VERSIONLIBS
=version_libs
60 CLI_URE
= $(SOLARBINDIR
)$/cli_ure.dll
61 CLI_URETYPES
= $(SOLARBINDIR
)$/cli_uretypes.dll
62 CLI_BASETYPES
= $(SOLARBINDIR
)$/cli_basetypes.dll
63 CLI_CPPUHELPER
= $(SOLARBINDIR
)$/cli_cppuhelper.dll
64 CLI_OOOTYPES
= $(SOLARBINDIR
)$/cli_oootypes.dll
69 .IF
"$(BUILD_FOR_CLI)" == ""
76 $(MISC
)$/copyassemblies.done \
84 -$(GNUCOPY
) $(VERSIONLIBS
)$/* $(BIN
)
87 $(MISC
)$/copyassemblies.done .ERRREMOVE
:
88 $(GNUCOPY
) $(CLI_CPPUHELPER
) $(BIN
)$/$(CLI_CPPUHELPER
:f
)
89 $(GNUCOPY
) $(CLI_BASETYPES
) $(BIN
)$/$(CLI_BASETYPES
:f
)
90 $(GNUCOPY
) $(CLI_URETYPES
) $(BIN
)$/$(CLI_URETYPES
:f
)
91 $(GNUCOPY
) $(CLI_URE
) $(BIN
)$/$(CLI_URE
:f
)
92 $(GNUCOPY
) $(CLI_OOOTYPES
) $(BIN
)$/$(CLI_OOOTYPES
:f
)
95 CSFILES2
= runtests.cs
97 .IF
"$(CCNUMVER)" >= "001399999999"
98 CSCPLATFORMX86
= -platform
:x86
103 $(EXETARGET2
): $(CSFILES2
)
104 $(CSC
) $(CSCFLAGS
) -target
:exe
-out
:$(EXETARGET2
) $(CSCPLATFORMX86
)\
107 CSFILESLIB
= version.cs
108 $(TESTLIB
): $(CSFILESLIB
) $(SOLARBINDIR
)$/cliureversion.mk
109 $(CSC
) $(CSCFLAGS
) -target
:library
-out
:$(TESTLIB
) \
110 -reference
:$(SOLARBINDIR
)$/cli_ure.dll \
111 -reference
:$(SOLARBINDIR
)$/cli_uretypes.dll \
112 -reference
:$(SOLARBINDIR
)$/cli_basetypes.dll \
113 -reference
:$(SOLARBINDIR
)$/cli_cppuhelper.dll \
114 -reference
:$(SOLARBINDIR
)$/cli_oootypes.dll \
121 @echo
########################### N O T E ######################################
123 @echo To run the
test go to qa\cliversioning
, run dmake and follow instructions.
125 @echo Or
install an office with full system integration and run
$(BIN
)$/runtests.exe
126 @echo in a console withouth build environment.
128 @echo Or
install an office with setup
/a. Expand PATH with the bin folder of the URE.
129 @echo Set UNO_PATH
=system_path_to_program_folder
130 @echo This must be the program folder of the brand layer.
131 @echo For example
, c
:\staroffice\Sun\staroffice
9\program
132 @echo Run runtests.exe.
134 @echo To build a
test library with run.
136 @echo dmake name
=version_10_10_10.dll
138 @echo The name must always start with
'version_'.
139 @echo
########################### N O T E ######################################