diff options
author | johannst <johannes.stoelp@gmail.com> | 2020-09-17 00:06:28 +0200 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2020-09-17 00:06:28 +0200 |
commit | dfa05a97e083122a788c0ffb5c9e26888fe3dcd1 (patch) | |
tree | 7655b3c4ff7ff5bda43a6a26bcbb406e9bf2999f /Makefile | |
parent | 4e784fc5668909789fa90b8448116b096130740f (diff) | |
download | matcha-threads-dfa05a97e083122a788c0ffb5c9e26888fe3dcd1.tar.gz matcha-threads-dfa05a97e083122a788c0ffb5c9e26888fe3dcd1.zip |
setup new stack + basic yielding between two stacks
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
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 |