aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 2 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 3f89456..05a908f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,21 +1,14 @@
# Copyright (c) 2020 Johannes Stoelp
-AS := gcc
-ASFLAGS := -g -O0
CXX := g++
CXXFLAGS := -g -O0 -Wall -Wextra -I.
-AR := ar
-lib/libmatcha.a: lib/compile_guard.o lib/thread.o lib/executor.o lib/arch/x86_64/thread_create.o lib/arch/x86_64/yield.o \
- lib/thread.h lib/executor.h lib/arch/x86_64/asm.h
- $(AR) rcs $@ $(filter %.o,$^)
+lib/libmatcha.a:
+ make -C lib
%.o: %.cc
$(CXX) -c -o $@ $^ $(CXXFLAGS)
-%.o: %.s
- $(AS) -c -o $@ $^ $(ASFLAGS)
-
fmt:
fd --type f '.+.h$$|.+.cc$$' --exec clang-format -i {}