X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=Makefile;h=75efaf3fdb135d0e4a77423f85e43740ec0bc325;hb=810c83b263fae9142eb50ce5ef45db5ce876c189;hp=225239d8d0ff6d81578f9ee71665d95e38acc230;hpb=ea5f3526c7c05c153a9c7c49e91c9ac649560fba;p=matchsticks-search.git diff --git a/Makefile b/Makefile index 225239d..75efaf3 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,13 @@ -CFLAGS += -Wall -Wwrite-strings -Wstrict-prototypes -g -O2 --std=gnu99 +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