-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
21 lines (16 loc) · 634 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CC=g++
TATTOO_VAL=$(shell git rev-parse --verify HEAD)
SHASUM_VAL=$(shell cat pallache.h pallache.cc | sha1sum | cut -d' ' -f 1)
TATTOO=-D TATTOO='"$(TATTOO_VAL)"'
SHASUM=-D SHASUM='"$(SHASUM_VAL)"'
pallache: pallache.cc pallache.h
$(CC) $(TATTOO) $(SHASUM) -Wall -Wextra -std=c++14 -O3 -flto -march=native -o pallache pallache.cc
debug: pallache.cc pallache.h
$(CC) $(TATTOO) $(SHASUM) -Wall -Wextra -std=c++14 -g3 -D PALLACHE_DEBUG -o pallache pallache.cc
test: pallache
@./regtest
version:
@printf "pallache-make: git-hash\t%s\n" $(TATTOO_VAL)
@printf "pallache-make: git-hash\t%s\n" $(SHASUM_VAL)
clean:
rm -f pallache