From b33b164fc5817d15861573771399744542426b1f Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 14 Mar 2009 23:35:12 +0100 Subject: [PATCH] Compile the judge support functions as a separate library. --- judge/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) -- 2.39.2