summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJan Huwald <jh@sotun.de>2013-03-06 10:09:37 (GMT)
committerJan Huwald <jh@sotun.de>2013-03-06 10:09:37 (GMT)
commitd10811d0e87ad9965d30c0e516fd804b0f26d0aa (patch)
tree51dff01adf3852310d90f052857413e63fb613c3 /Makefile
parent54ce2e60ccf93fb9f5d63e89b59d6adc223180ed (diff)
add compile-time variable bit length
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 221f015..e6660ee 100644
--- a/Makefile
+++ b/Makefile
@@ -2,5 +2,8 @@ CXX=g++ -std=c++0x -O3 -Wall -Wextra -Werror -lpthread
all: cacount
+cacount_%: cacount.cpp
+ $(CXX) -DBIT_WIDTH=$(shell echo $@ | egrep -o '[^_]*$$') -fwhole-program $< -o $@
+
clean:
- -rm cacount *~ \ No newline at end of file
+ -rm cacount *~
contact: Jan Huwald // Impressum