aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-03-26 18:10:41 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2025-03-26 18:10:41 +0200
commit6d88dce5ebbc6fdb91054e5ffc3f8843d20b2b97 (patch)
tree1132b7dde6612df38eb83f1c9f9b18eb3af5a8e8 /Makefile
downloadejit-prospero-6d88dce5ebbc6fdb91054e5ffc3f8843d20b2b97.tar.gz
ejit-prospero-6d88dce5ebbc6fdb91054e5ffc3f8843d20b2b97.zip
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..74d2c10
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+all: prospero
+
+prospero: src/main.c deps/ejit/libejit.a
+ $(CC) -Wall -Wextra -O2 -g -flto=auto -g -Ideps/ejit/include src/main.c deps/ejit/libejit.a -o prospero -lm
+
+deps/ejit/libejit.a:
+ $(MAKE) RELEASE=1 LTO=1 -C deps/ejit
+
+.PHONY: clean
+clean:
+ $(MAKE) -C deps/ejit clean
+ $(RM) prospero