diff options
author | Jan Huwald <jh@sotun.de> | 2013-06-14 11:21:05 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2013-06-14 11:21:05 (GMT) |
commit | a7c4309240e41964e15d23eb5fc4c1b3aeebc6d6 (patch) | |
tree | 72318c67bb9a67b38ca5b90c1cefe15813ffbf5a | |
parent | 7359aee9fc678b1e900c51e369ffde9d555a56db (diff) |
Makefile: fix, improve, restructure
-rw-r--r-- | Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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] *~ |