X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=Makefile;h=75efaf3fdb135d0e4a77423f85e43740ec0bc325;hb=a7553dfdcd407ffaed23fa945cf5cad32e91b74c;hp=e91ae036b62f91a997301fd356dd94441b52c8c0;hpb=63f39a339d46152875081ec5772868b23deba821;p=matchsticks-search.git diff --git a/Makefile b/Makefile index e91ae03..75efaf3 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,13 @@ -CFLAGS += -Wall -Wwrite-strings -Wstrict-prototypes -g +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 + +test: test.pl main + ./test.pl + +clean: + rm -f main