-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 753 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (25 loc) · 753 Bytes
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
# Copyright (c) 2019 Vicente Romero Calero. All rights reserved.
# Licensed under the MIT License.
# See LICENSE file in the project root for full license information.
CC = g++
CPPFLAGS = -Wall -O3 -std=c++11
LDFLAGS = -lpthread
SRC = $(wildcard *.cc)
OBJ = $(SRC:.cc=.o)
BENCHMARKDIR = benchmark
VTENCDIR = VTEnc
SIMDCOMPDIR = SIMDCompressionAndIntersection
BENCHMARKLIB = $(BENCHMARKDIR)/build/src/libbenchmark.a
VTENCLIB = $(VTENCDIR)/libvtenc.a
SIMDCOMPLIB = $(SIMDCOMPDIR)/libSIMDCompressionAndIntersection.a
.PHONY: default
default: all
.PHONY: all
all: intbench
%.o: %.cc
${CC} -c $(CPPFLAGS) $<
intbench: $(OBJ)
$(CC) $(CPPFLAGS) $^ $(BENCHMARKLIB) $(VTENCLIB) $(SIMDCOMPLIB) $(LDFLAGS) -o $@
.PHONY: clean
clean:
rm -f *.o intbench