1 #########################
2 # How to compile the code
3 # All this to only get a dumb javac *java... Automake still have issues with java
6 CLASSPATH=$(top_srcdir)/src/java
8 AM_JAVACFLAGS=-I$(top_srcdir)/src/java
11 ##########################
12 # What to do on make check
13 # We need to rely on an external script (../runtest) because automake adds a ./ in front of the test name
14 # We need to override LD_LIBRARY_PATH so that the VM finds the libsimgrid4java.so
15 # We need to override the CLASSPATH to add simgrid.jar and current dir to the picture
16 # We also need to express dependencies manually (in each test dir)
18 TESTS_ENVIRONMENT=LD_LIBRARY_PATH="$(top_srcdir)/src/.libs:$$LD_LIBRARY_PATH" \
19 CLASSPATH=".:$(top_srcdir)/src/simgrid.jar:$$CLASSPATH" \
22 # declare that we must recompile everything before lauching tests
23 $(TESTS): classnoinst.stamp