summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..16de460
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+.PHONY: all clean
+
+ifeq ($(OS),Windows_NT)
+ AGBCC := agbcc.exe
+else
+ AGBCC := agbcc
+endif
+
+all: gcc/$(AGBCC) libgcc/libgcc.a
+
+gcc/$(AGBCC):
+ make -C gcc
+
+libgcc/libgcc.a: | gcc/$(AGBCC)
+ make -C libgcc
+
+clean:
+ make -C gcc clean
+ make -C libgcc clean