X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=judge%2FMakefile;h=e9adf41e5c33505024262f52f9aff83b4f8464d9;hb=b6013d244489aca80a904755ec2531874361185c;hp=448940d9ae18cea2327e01e7ac2ac7b12286f561;hpb=803b801b384cd94486c1cdbdd3d02faa2609f1f7;p=moe.git diff --git a/judge/Makefile b/judge/Makefile index 448940d..e9adf41 100644 --- a/judge/Makefile +++ b/judge/Makefile @@ -1,19 +1,16 @@ -CC=gcc-4.1.1 -CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -Winline $(DEBUG) -std=gnu99 -CFLAGS+=-Wno-pointer-sign -Wdisabled-optimization -Wno-missing-field-initializers +# Makefile for MO-Eval judges +# (c) 2008 Martin Mares -all: test-io test-tok judge-tok filter-cmt +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=utils.o io.o token.o +$(JDIR)/test-io: $(JDIR)/test-io.o $(JLIB) +$(JDIR)/test-tok: $(JDIR)/test-tok.o $(JLIB) +$(JDIR)/judge-tok: $(JDIR)/judge-tok.o $(JLIB) +$(JDIR)/judge-tok: LDLIBS+=-lm +$(JDIR)/judge-shuff: $(JDIR)/judge-shuff.o $(JLIB) +$(JDIR)/filter-cmt: $(JDIR)/filter-cmt.o $(JLIB) -test-io: test-io.o $(JLIB) -test-tok: test-tok.o $(JLIB) -judge-tok: judge-tok.o $(JLIB) -judge-tok: LDLIBS+=-lm -filter-cmt: filter-cmt.o $(JLIB) - -clean:: - rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core` - rm -f test-io test-tok judge-tok filter-cmt - -.PHONY: all clean distclean +TESTS+=$(addprefix $(JDIR)/,io.test token.test judge-tok.test filter-cmt.test)