X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=judge%2FMakefile;h=d43ddecd2bc584b2e7e62985051eeafd1165ca69;hb=d9767ff852b6bae9fa3319d1da812f86a4d54b91;hp=e231fc268c16c8f31c5e87a79a52b307284dda24;hpb=0f1adf5570b17da28577152e26e743e4e031d640;p=eval.git diff --git a/judge/Makefile b/judge/Makefile index e231fc2..d43ddec 100644 --- a/judge/Makefile +++ b/judge/Makefile @@ -2,17 +2,29 @@ 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 -all: test-io test-tok judge-tok filter-cmt +all: test-io test-tok judge-tok judge-shuff filter-cmt JLIB=utils.o io.o token.o test-io: test-io.o $(JLIB) test-tok: test-tok.o $(JLIB) judge-tok: judge-tok.o $(JLIB) +judge-tok: LDLIBS+=-lm +judge-shuff: judge-shuff.o $(JLIB) filter-cmt: filter-cmt.o $(JLIB) +tests: $(addsuffix .test,io token filter-cmt judge-tok) +io.test: test-io +token.test: test-tok +filter-cmt.test: filter-cmt +judge-tok.test: judge-tok + +%.test: %.t tester + ./tester $< + 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 + rm -f test-io test-tok judge-tok judge-shuff filter-cmt + rm -rf tmp .PHONY: all clean distclean