-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 911 Bytes
/
Makefile
File metadata and controls
35 lines (25 loc) · 911 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
35
CXX := clang++
CXXFLAGS := -std=c++17 -O3 -march=native -ffast-math \
-Wall -Wextra -Wpedantic \
-Iinclude -Ithird_party/eigen
LDFLAGS :=
# ARM NEON intrinsics are auto-enabled by -march=native on the Vigx Ant-H1 Pro SoC.
# On macOS ARM (Apple M-series) same flag enables NEON; Eigen uses it automatically.
SRCS := src/model.cpp src/sensor.cpp src/reward.cpp src/trainer.cpp src/intent.cpp
all: olive_deploy olive_eval olive_tests
olive_deploy: $(SRCS) src/main.cpp
$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
@echo "Built: $@"
olive_eval: $(SRCS) scripts/eval.cpp
$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
@echo "Built: $@"
olive_tests: $(SRCS) tests/test_olive.cpp
$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
@echo "Built: $@"
test: olive_tests
./olive_tests
eval: olive_eval
./olive_eval 5000
clean:
rm -f olive_deploy olive_eval olive_tests
.PHONY: all test eval clean