# -*- Makefile -*-

JAVA_HOME ?= $(shell readlink -f /usr/bin/java | sed "s:/jre/bin/java$$::")
lib_TARGETS = champion

champion-srcs = Interface.java Prologin.java
champion-cxxflags = -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -ggdb3
champion-ldflags = -Wl,-rpath -Wl,$(JAVA_HOME)/jre/lib/amd64/server/ -L$(JAVA_HOME)/jre/lib/amd64/server/ -ljvm

# Evite de toucher a ce qui suit
champion-dists = interface.hh
champion-srcs += interface.cc
STECHEC_LANG=java
include ../includes/rules.mk
