-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
28 lines (21 loc) · 1.22 KB
/
makefile
File metadata and controls
28 lines (21 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
CXX=g++
CXXFLAGS+="-std=c++11"
#CXXFLAGS+="-lcunit"
havec: src/main.o src/vector_with_rehash_8_hash_with_N_detection_5_bytes.o src/vector_with_rehash_8_hash_with_N_detection_6_bytes.o src/common.o
$(CXX) src/main.o src/vector_with_rehash_8_hash_with_N_detection_5_bytes.o src/vector_with_rehash_8_hash_with_N_detection_6_bytes.o src/common.o -o Havec.out
ci:
g++-4.9 $(CXXFLAGS) -c -o src/main.o src/main.cpp
g++-4.9 $(CXXFLAGS) -c -o src/vector_with_rehash_8_hash_with_N_detection_5_bytes.o src/vector_with_rehash_8_hash_with_N_detection_5_bytes.cpp
g++-4.9 $(CXXFLAGS) -c -o src/vector_with_rehash_8_hash_with_N_detection_6_bytes.o src/vector_with_rehash_8_hash_with_N_detection_6_bytes.cpp
g++-4.9 $(CXXFLAGS) -c -o src/common.o src/common.cpp
g++-4.9 src/common.o src/main.o src/vector_with_rehash_8_hash_with_N_detection_5_bytes.o src/vector_with_rehash_8_hash_with_N_detection_6_bytes.o -o Havec.out
test: src/common.o tests/test_common.o
$(CXX) src/common.o tests/test_common.o -lcunit -o test_common.out
install_deps:
sudo apt-get install libcunit1 libcunit1-dev libcunit1-doc
remove_deps:
sudo apt-get remove libcunit1 libcunit1-dev libcunit1-doc
.PHONY: clean
clean:
rm -f src/*.o tests/*.o *.out
rm -rf output/