summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Huwald <jh@sotun.de>2013-06-14 11:21:05 (GMT)
committerJan Huwald <jh@sotun.de>2013-06-14 11:21:05 (GMT)
commita7c4309240e41964e15d23eb5fc4c1b3aeebc6d6 (patch)
tree72318c67bb9a67b38ca5b90c1cefe15813ffbf5a
parent7359aee9fc678b1e900c51e369ffde9d555a56db (diff)
Makefile: fix, improve, restructure
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index dcca56a..17d3179 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,13 @@
-CXX=g++ -std=c++0x -O3 -Wall -Wextra -Werror -lpthread
+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 :: cacount.cpp packed_array.hpp timer.hpp
+cacount: $(SRC)
$(CXX) -fwhole-program $< -o $@
-cacount_%: cacount.cpp packed_array.hpp timer.hpp
- $(CXX) -DBIT_WIDTH=$(shell echo $@ | egrep -o '[^_]*$$') -fwhole-program $< -o $@
+cacount_%: $(SRC)
+ $(CXX) -fwhole-program $< -o $@ -DBIT_WIDTH=$(shell echo $@ | egrep -o '[^_]*$$')
clean:
- -rm cacount *~
+ -rm cacount cacount_[0-9] cacount_[0-9][0-9] *~
contact: Jan Huwald // Impressum