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 = .. 29TARGET = ConnectivityComplexTests 30PRJNAME = connectivity 31PACKAGE = complex/connectivity 32 33# --- Settings ----------------------------------------------------- 34.INCLUDE: settings.mk 35 36#----- compile .java files ----------------------------------------- 37 38JAVAFILES := $(shell @$(FIND) complex -name "*.java") 39 40JARFILES = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar 41 42.IF "$(SYSTEM_HSQLDB)" == "YES" 43EXTRAJARFILES = $(HSQLDB_JAR) 44.ELSE 45JARFILES += hsqldb.jar 46.ENDIF 47 48#----- make a jar from compiled files ------------------------------ 49 50JARCLASSDIRS = $(PACKAGE) 51JARTARGET = $(TARGET).jar 52 53# --- Runner Settings ---------------------------------------------- 54 55# classpath and argument list 56RUNNER_CLASSPATH = -cp "$(CLASSPATH)$(PATH_SEPERATOR)$(SOLARBINDIR)$/OOoRunner.jar" 57RUNNER_ARGS = org.openoffice.Runner -TestBase java_complex 58 59# --- Targets ------------------------------------------------------ 60 61.IF "$(depend)" == "" 62ALL : ALLTAR 63 @echo ----------------------------------------------------- 64 @echo - do a 'dmake show_targets' to show available targets 65 @echo ----------------------------------------------------- 66.ELSE 67ALL: ALLDEP 68.ENDIF 69 70.INCLUDE : target.mk 71 72show_targets: 73 +@$(AUGMENT_LIBRARY_PATH) java $(RUNNER_CLASSPATH) complexlib.ShowTargets $(foreach,i,$(JAVAFILES) $(i:s/.\$///:s/.java//)) 74 75run: $(CLASSDIR)$/$(JARTARGET) 76 +$(AUGMENT_LIBRARY_PATH) java $(RUNNER_CLASSPATH) $(RUNNER_ARGS) -sce scenarios.sce 77 78run_%: $(CLASSDIR)$/$(JARTARGET) 79 +$(AUGMENT_LIBRARY_PATH) java $(RUNNER_CLASSPATH) $(RUNNER_ARGS) -o complex.$(PRJNAME).$(@:s/run_//) 80