1 #*************************************************************************
3 # OpenOffice.org - a multi-platform office productivity suite
5 # $RCSfile: makefile.mk,v $
9 # last change: $Author: as $ $Date: 2008/03/19 11:09:22 $
11 # The Contents of this file are made available subject to
12 # the terms of GNU Lesser General Public License Version 2.1.
15 # GNU Lesser General Public License Version 2.1
16 # =============================================
17 # Copyright 2005 by Sun Microsystems, Inc.
18 # 901 San Antonio Road, Palo Alto, CA 94303, USA
20 # This library is free software; you can redistribute it and/or
21 # modify it under the terms of the GNU Lesser General Public
22 # License version 2.1, as published by the Free Software Foundation.
24 # This library is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27 # Lesser General Public License for more details.
29 # You should have received a copy of the GNU Lesser General Public
30 # License along with this library; if not, write to the Free Software
31 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
34 #*************************************************************************
36 TARGET
= CheckConfigItems
38 PACKAGE
= complex
$/ConfigItems
40 # --- Settings -----------------------------------------------------
44 #----- compile .java files -----------------------------------------
46 JARFILES
= mysql.jar ridl.jar unoil.jar jurt.jar juh.jar jut.jar java_uno.jar \
49 JAVAFILES
= CheckConfigItems.java
51 JAVACLASSFILES
= $(foreach,i
,$(JAVAFILES
) $(CLASSDIR
)$/$(PACKAGE
)$/$(i
:b
).class
)
55 #----- make a jar from compiled files ------------------------------
57 MAXLINELENGTH
= 100000
59 JARCLASSDIRS
= $(PACKAGE
)
60 JARTARGET
= $(TARGET
).jar
63 # --- Parameters for the test --------------------------------------
65 # start an office if the parameter is set for the makefile
69 CT_APPEXECCOMMAND
= -AppExecutionCommand
"$(OFFICE)$/soffice -accept=socket,host=localhost,port=8100;urp;"
72 # test base is java complex
73 CT_TESTBASE
= -TestBase java_complex
75 # test looks something like the.full.package.TestName
76 CT_TEST
= -o
$(PACKAGE
:s\
$/\.\
).
$(JAVAFILES
:b
)
78 # start the runner application
79 CT_APP
= org.openoffice.Runner
81 # --- Targets ------------------------------------------------------
88 java
-cp
$(CLASSPATH
) $(CT_APP
) $(CT_TESTBASE
) $(CT_APPEXECCOMMAND
) $(CT_TEST
)