]> mj.ucw.cz Git - moe.git/blob - judge/Makefile
Avoid compiling judge-shuff by default, it is not finished yet.
[moe.git] / judge / Makefile
1 CC=gcc-4.1.1
2 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -Winline $(DEBUG) -std=gnu99
3 CFLAGS+=-Wno-pointer-sign -Wdisabled-optimization -Wno-missing-field-initializers
4
5 all: test-io test-tok judge-tok filter-cmt
6 # judge-shuff
7
8 JLIB=utils.o io.o token.o
9
10 test-io: test-io.o $(JLIB)
11 test-tok: test-tok.o $(JLIB)
12 judge-tok: judge-tok.o $(JLIB)
13 judge-tok: LDLIBS+=-lm
14 judge-shuff: judge-shuff.o $(JLIB)
15 filter-cmt: filter-cmt.o $(JLIB)
16
17 tests: $(addsuffix .test,io token filter-cmt judge-tok)
18 io.test: test-io
19 token.test: test-tok
20 filter-cmt.test: filter-cmt
21 judge-tok.test: judge-tok
22
23 %.test: %.t tester
24         ./tester $<
25
26 clean::
27         rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core`
28         rm -f test-io test-tok judge-tok judge-shuff filter-cmt
29         rm -rf tmp
30
31 .PHONY: all clean distclean