chiark
/
gitweb
/
~ianmdlvl
/
matchsticks-search.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Script to tabulate results as a web page.
[matchsticks-search.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 96ede561bacd00501a7f4801ee763c24b640ae61..75efaf3fdb135d0e4a77423f85e43740ec0bc325 100644
(file)
--- 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 -lm
all: main
LC_CTYPE=C
LDLIBS = -lpub -lglpk -lm
all: main
+
+test: test.pl main
+ ./test.pl
+
+clean:
+ rm -f main