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
5 all: test-io test-tok judge-tok judge-shuff filter-cmt
7 JLIB=utils.o io.o token.o
9 test-io: test-io.o $(JLIB)
10 test-tok: test-tok.o $(JLIB)
11 judge-tok: judge-tok.o $(JLIB)
12 judge-tok: LDLIBS+=-lm
13 judge-shuff: judge-shuff.o $(JLIB)
14 filter-cmt: filter-cmt.o $(JLIB)
16 tests: $(addsuffix .test,io token filter-cmt judge-tok)
19 filter-cmt.test: filter-cmt
20 judge-tok.test: judge-tok
26 rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core`
27 rm -f test-io test-tok judge-tok judge-shuff filter-cmt
30 .PHONY: all clean distclean