# Makefile for MO-Eval judges
-# (c) 2008 Martin Mares <mj@ucw.cz>
+# (c) 2008--2009 Martin Mares <mj@ucw.cz>
DIRS+=judge
JDIR=$(o)/judge
PROGS+=$(addprefix $(JDIR)/,test-io test-tok judge-tok judge-shuff filter-cmt)
-JLIB=$(addprefix $(o)/judge/,utils.o io.o token.o)
+JLIB=$(JDIR)/libjudge.a
$(JDIR)/test-io: $(JDIR)/test-io.o $(JLIB)
$(JDIR)/test-tok: $(JDIR)/test-tok.o $(JLIB)
$(JDIR)/judge-shuff: $(JDIR)/judge-shuff.o $(JLIB)
$(JDIR)/filter-cmt: $(JDIR)/filter-cmt.o $(JLIB)
+$(JLIB): $(addprefix $(JDIR)/,utils.o io.o token.o)
+
TESTS+=$(addprefix $(JDIR)/,io.test token.test judge-tok.test filter-cmt.test)