summaryrefslogtreecommitdiff
path: root/Makefile
blob: 17d3179e5a77f38d6266b41587774388b74e9364 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
CXX=g++ -std=c++0x -O3 -Wall -Wextra -Werror -Wno-strict-aliasing -lpthread -march=native
SRC=cacount.cpp timer.hpp mmalloc.hpp

all: cacount

cacount: $(SRC)
	$(CXX) -fwhole-program $< -o $@

cacount_%: $(SRC)
	$(CXX) -fwhole-program $< -o $@ -DBIT_WIDTH=$(shell echo $@ | egrep -o '[^_]*$$')

clean:
	-rm cacount cacount_[0-9] cacount_[0-9][0-9] *~
contact: Jan Huwald // Impressum