From dfa05a97e083122a788c0ffb5c9e26888fe3dcd1 Mon Sep 17 00:00:00 2001 From: johannst Date: Thu, 17 Sep 2020 00:06:28 +0200 Subject: setup new stack + basic yielding between two stacks --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e86f7fa --- /dev/null +++ b/Makefile @@ -0,0 +1,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 -- cgit v1.2.3