summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-04-29 22:06:20 -0700
committerYamaArashi <shadow962@live.com>2016-04-29 22:06:20 -0700
commit0dfd357a5116b3d76fbaa9bcdd16902c28f60d2b (patch)
treedc9253e0cff5fc7dfe3f2408f43e88bfca7d469f /Makefile
parente6fd5f9b5bbc8404f9c103ed262094c612b60c25 (diff)
build libgcc
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