Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
More java approach with a specific task type for finalization instead of magic value...
[simgrid.git] / examples / java / basic / Makefile.in
index 9c6c569..87f7b4b 100644 (file)
 
 @SET_MAKE@
 
+# Copyright (c) 2004-2007. The SimGrid team. All right reserved.
+
+# This file is part of the SimGrid project. This is free software:
+# You can redistribute and/or modify it under the terms of the
+# GNU LGPL (v2.1) licence.
+
 #########################
 # How to compile the code
 # All this to only get a dumb javac *java... Automake still have issues with java
@@ -197,16 +203,19 @@ target_os = @target_os@
 target_vendor = @target_vendor@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-CLASSPATH = ../../../src/simgrid.jar
-EXTRA_DIST = basic_deployment.xml basic_platform.xml surfxml.dtd
+EXTRA_DIST = basic_deployment.xml basic_platform.xml $(JAVA_SRC)
 
 # Declare sources:
-noinst_JAVA = Master.java Forwarder.java Slave.java BasicTest.java BasicTask.java
+JAVA_SRC = Master.java Forwarder.java Slave.java BasicTest.java \
+         BasicTask.java FinalizeTask.java
+
+JAVA_TESTS = BasicTest.class
 
 # Declare test class
-TESTS = BasicTest.class
+@HAVE_JAVA_TRUE@noinst_JAVA = $(JAVA_SRC)
+@HAVE_JAVA_TRUE@TESTS = $(JAVA_TESTS)
 JAVAROOT = .
-AM_JAVACFLAGS = -classpath $(top_srcdir)/src/simgrid.jar
+AM_JAVACFLAGS = -classpath $(top_srcdir)/src/simgrid.jar:.
 
 ##########################
 # What to do on make check