forked from efficient/rankselect
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
36 lines (25 loc) · 995 Bytes
/
Makefile
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
29
30
31
32
33
34
35
36
CC = gcc
CPP = gcc -E
CXX = g++ -std=c++11
CXXCPP = g++ -E
# Flags passed to the C++ compiler.
#CXXFLAGS += -g -mpopcnt -msse4 -Wall -Wextra -I. -Iinclude/ -Iinclude/sdsl
CXXFLAGS += -O9 -mpopcnt -msse4 -I. -Iinclude/ -Iinclude/sdsl
%.o: %.cc
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
%.o: %.cpp
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
.PHONY: all clean
all: bitmap_bench
clean:
rm -f bitmap_bench bitmap_bench_sdsl bitmap_bench_stats bitmap_bench_word bitmap_bench_stats_dep *.o core
bitmap_bench: bitmap.o bitmap_bench.o
$(CXX) $(CXXFLAGS) $(CXXFLAGS) $^ -o $@
bitmap_bench_stats: bitmap.o bitmap_bench_stats.o
$(CXX) $(CXXFLAGS) $(CXXFLAGS) $^ -o $@
bitmap_bench_stats_dep: bitmap.o bitmap_bench_stats_dep.o
$(CXX) $(CXXFLAGS) $(CXXFLAGS) $^ -o $@
bitmap_bench_word: bitmap.o bitmap_bench_word.o
$(CXX) $(CXXFLAGS) $(CXXFLAGS) $^ -o $@
bitmap_bench_sdsl: bitmap.o ram_fs.o bits.o memory_management.o util.o bitmap_bench_sdsl.o
$(CXX) $(CXXFLAGS) $(CXXFLAGS) $^ -o $@