blob: e86f7fa0d5173d7e65a0c883ce770af730d3bf4d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
CXX := g++
CXXFLAGS := -g -O0 -Wall -Wextra -I.
example/test: example/test.cc lib/thread_create.s lib/matcha.h
$(CXX) -o $@ $^ $(CXXFLAGS)
fmt:
fd --type f '.+.h$$|.+.cc$$' --exec clang-format -i {}
gdb: example/test
which cgdb && cgdb -x util.gdb -ex 'start' example/test \
|| gdb -x util.gdb -ex 'start' example/test
clean:
rm -f example/test
|