From: Martin Mares Date: Sat, 14 Mar 2009 22:35:12 +0000 (+0100) Subject: Compile the judge support functions as a separate library. X-Git-Tag: python-dummy-working~129 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=b33b164fc5817d15861573771399744542426b1f;p=moe.git Compile the judge support functions as a separate library. --- diff --git a/judge/Makefile b/judge/Makefile index e9adf41..561df24 100644 --- a/judge/Makefile +++ b/judge/Makefile @@ -1,10 +1,10 @@ # Makefile for MO-Eval judges -# (c) 2008 Martin Mares +# (c) 2008--2009 Martin Mares 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) @@ -13,4 +13,6 @@ $(JDIR)/judge-tok: LDLIBS+=-lm $(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)