From 5a4da8bac457f0e70e690a572eba9cf754e69a37 Mon Sep 17 00:00:00 2001
From: Kimplul <kimi.h.kuparinen@gmail.com>
Date: Sun, 23 Jun 2024 23:31:46 +0300
Subject: initial interpeter testing

---
 Makefile | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
 create mode 100644 Makefile

(limited to 'Makefile')

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..839fd5f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,60 @@
+.PHONY: all
+all: setup
+	$(MAKE) -f scripts/makefile
+
+.PHONY: examples
+examples: setup
+	$(MAKE) -f scripts/makefile examples
+
+# this kicks all unrecognised targets to the client script.
+# note that trying to compile individual files, e.g.
+#
+#	make kernel.elf
+#
+# will not work, you would need
+#
+#	make -f scripts/makefile kernel.elf
+#
+# instead
+.DEFAULT: setup
+	$(MAKE) -f scripts/makefile $<
+
+.PHONY:
+setup:
+	@echo -n > deps.mk
+	@./scripts/gen-deps -p EJIT -c COMPILE_EJIT -b ejit "$(EJIT_SOURCES)"
+
+CLEANUP		:= build deps.mk ejit.o examples/exec examples/*.d
+CLEANUP_CMD	:=
+EJIT_SOURCES	:=
+
+include src/source.mk
+
+.PHONY: format
+format:
+	find src include -iname '*.[ch]' |\
+		xargs uncrustify -c uncrustify.conf --no-backup -F -
+
+.PHONY: license
+license:
+	find src include -iname '*.[ch]' |\
+		xargs ./scripts/license
+
+.PHONY: docs
+docs:
+	find src include -iname '*.[ch]' -not -path */gen/* |\
+		xargs ./scripts/warn-undocumented
+	doxygen docs/doxygen.conf
+
+RM	= rm
+
+.PHONY: clean
+clean:
+	$(RM) -rf $(CLEANUP)
+
+.PHONY: clean_docs
+clean_docs:
+	$(RM) -rf docs/output
+
+.PHONY: clean_all
+clean_all: clean clean_docs
-- 
cgit v1.2.3