From b2dcf4e4057cc481cc0230da96fb4256d64a4ad6 Mon Sep 17 00:00:00 2001 From: plutoo Date: Sat, 9 Sep 2017 03:23:38 +0200 Subject: [PATCH] Added global makefile --- Makefile | 8 ++++++++ README.md | 9 +++------ crt0/Makefile | 3 +++ 3 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..31d25bfb --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +all: + make -C buildscripts/ install + make -C crt0/ install + make -C nx/ + +clean: + make -C crt0/ clean + make -C nx/ clean diff --git a/README.md b/README.md index 52bb4016..e8d6e54a 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,5 @@ -Nintendo Switch AArch64-only userland library. Based on libctru. +# Nintendo Switch AArch64-only userland library. Based on libctru. -Install: +Install using: -* The \*rules files under buildscripts/ should be copied to "devkitA64/". -* The content of buildscripts/lib/ should be copied to "devkitA64/aarch64-none-elf/lib/". -* Build and install switch_crt0 with: - make -C crt0 install \ No newline at end of file + make install \ No newline at end of file diff --git a/crt0/Makefile b/crt0/Makefile index 5d970373..0cc5e8f8 100644 --- a/crt0/Makefile +++ b/crt0/Makefile @@ -3,3 +3,6 @@ switch_crt0.o: *.s install: switch_crt0.o cp $^ $(DEVKITA64)/aarch64-none-elf/lib/$^ + +clean: + rm -f switch_crt0.o