Files
mercury/samples/java_interface/mercury_calls_java/Makefile
Julien Fischer fbf35c8b22 Minor fixes for the Java interface examples.
samples/java_interface/java_calls_mercury/*.m:
    Use spaces instead of tabs.

    Delete trailing whitespace.

    Fix a cut-and-paste error where exports to C instead of
    Java are referred to.

samples/java_interface/mercury_calls_java/Makefile:
    Fix the compilation options for this example.

samples/java_interface/mercury_calls_java/mercury_main.m:
     Fix formatting.
2016-02-09 21:43:11 +11:00

20 lines
616 B
Makefile

#-----------------------------------------------------------------------------#
# vim: ts=8 sw=8 noexpandtab
#-----------------------------------------------------------------------------#
# This source file is hereby placed in the public domain.
#-----------------------------------------------------------------------------#
.PHONY: all
all: mercury_main
mercury_main: mercury_main.m my_package/JavaMain.class
mmc --grade java --make mercury_main --java-classpath .
my_package/JavaMain.class: JavaMain.java
javac JavaMain.java -d .
.PHONY: clean
clean:
$(RM) mercury_main *.err
$(RM) -r Mercury my_package