merge the formfield patch from ooo-build
[ooovba.git] / testtools / source / cliversioning / makefile.mk
blobd319ce7fdb604f5e1c5ba8c9261742c8711246b8
1 #*************************************************************************
2 #
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
6 #
7 # OpenOffice.org - a multi-platform office productivity suite
8 #
9 # $RCSfile: makefile.mk,v $
10 # $Revision: 1.5 $
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.
34 PRJ = ..$/..
35 PRJNAME = cli_ure
36 TARGET := test_climaker
37 PACKAGE = cliversion
39 .INCLUDE: settings.mk
40 .INCLUDE : $(PRJ)$/util$/makefile.pmk
42 #.IF "$(BUILD_FOR_CLI)" == ""
44 .IF "$(debug)" != ""
45 CSCFLAGS += -checked+ -define:DEBUG -define:TRACE -debug+
46 .ELSE
47 CSCFLAGS += -optimize+
48 .ENDIF
51 EXETARGET2=$(BIN)$/runtests.exe
53 .IF "$(name)" != ""
54 TESTLIB=$(BIN)$/$(name)
55 .ELSE
56 TESTLIB=$(BIN)$/version_current.dll
57 .ENDIF
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
67 .INCLUDE: target.mk
69 .IF "$(BUILD_FOR_CLI)" == ""
70 ALLTAR:
72 .ELSE
73 ALLTAR: \
74 $(EXETARGET2) \
75 $(TESTLIB) \
76 $(MISC)$/copyassemblies.done \
77 COPYVERSIONLIBS \
78 RUNINSTRUCTIONS
80 .ENDIF
83 COPYVERSIONLIBS:
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)
93 $(TOUCH) $@
95 CSFILES2 = runtests.cs
97 .IF "$(CCNUMVER)" >= "001399999999"
98 CSCPLATFORMX86 = -platform:x86
99 .ELSE
100 CSCPLATFORMX86 =
101 .ENDIF
103 $(EXETARGET2): $(CSFILES2)
104 $(CSC) $(CSCFLAGS) -target:exe -out:$(EXETARGET2) $(CSCPLATFORMX86)\
105 $(CSFILES2)
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 \
115 $(CSFILESLIB)
119 RUNINSTRUCTIONS :
120 @echo .
121 @echo ########################### N O T E ######################################
122 @echo .
123 @echo To run the test go to qa\cliversioning, run dmake and follow instructions.
124 @echo .
125 @echo Or install an office with full system integration and run $(BIN)$/runtests.exe
126 @echo in a console withouth build environment.
127 @echo .
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.
133 @echo .
134 @echo To build a test library with run.
135 @echo
136 @echo dmake name=version_10_10_10.dll
137 @echo
138 @echo The name must always start with 'version_'.
139 @echo ########################### N O T E ######################################
140 @echo .
141 @echo .
145 #.ENDIF