X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=Makefile;h=26fa92b5b3fe991293ebc62403d1a7d654387cd6;hb=621cca6b657fd955da0f1e309b0df5d6cf0901e7;hp=166f614380eaf5cf6406a7bfa3ef96716111aaa4;hpb=4f348ff58dacc277f9680d887006d695de97654e;p=matchsticks-search.git diff --git a/Makefile b/Makefile index 166f614..26fa92b 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,16 @@ -CFLAGS += -Wall -Wwrite-strings -Wstrict-prototypes +CFLAGS += -Wall -Wwrite-strings -Wstrict-prototypes -g -O2 -std=gnu99 +CFLAGS += $(CMDLINE_CFLAGS) +CPPFLAGS += -DVERSION="\"`git describe --tags --dirty=+`\"" LC_CTYPE=C -LDLIBS = -lpub -lglpk +LDLIBS = -lpub -lglpk -lm all: main + +index.html: tabulate.py $(wildcard data/*) + ./tabulate.py > $@ + +test: test.pl main + ./test.pl + +clean: + rm -f main