-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 723 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (21 loc) · 723 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
CXX ?= c++
CXXFLAGS ?= -std=c++20 -O2 -Wall -Wextra
HEADERS = src/vector.hpp src/table.hpp src/profiler.hpp src/operator.hpp \
src/materialize.hpp src/operators.hpp src/plan.hpp \
src/optimizer.hpp src/codegen.hpp src/compiled.hpp
build/engine: src/main.cpp $(HEADERS)
@mkdir -p build
$(CXX) $(CXXFLAGS) -o $@ src/main.cpp
build/test_engine: tests/test_engine.cpp $(HEADERS)
@mkdir -p build
$(CXX) $(CXXFLAGS) -o $@ tests/test_engine.cpp
.PHONY: run test sanitize clean
run: build/engine
./build/engine
test: build/test_engine
./build/test_engine
sanitize:
$(MAKE) clean
$(MAKE) CXXFLAGS='$(CXXFLAGS) -O1 -g -fno-omit-frame-pointer -fsanitize=address,undefined' test
clean:
rm -rf build