diff options
| author | red031000 <rubenru09@aol.com> | 2021-07-23 01:11:15 +0100 |
|---|---|---|
| committer | red031000 <rubenru09@aol.com> | 2021-07-23 01:12:27 +0100 |
| commit | 5bf13c7f48fe91c7902ce50250bc1a5a2398a2ae (patch) | |
| tree | 2e91e60bdb7a9174b16d8ca1b532809d4ae2e5b6 /arm9/lib/Makefile | |
| parent | c2d91a2d997afd01fa4f40e1e16d5ee85557c9a8 (diff) | |
separate out libs to libc, libnns and NitroSDK
Diffstat (limited to 'arm9/lib/Makefile')
| -rw-r--r-- | arm9/lib/Makefile | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/arm9/lib/Makefile b/arm9/lib/Makefile index 0ff7e9e4..ebe143f2 100644 --- a/arm9/lib/Makefile +++ b/arm9/lib/Makefile @@ -1,5 +1,3 @@ - - # Try to include devkitarm if installed TOOLCHAIN := $(DEVKITARM) @@ -56,22 +54,30 @@ OBJCOPY := $(CROSS)objcopy # ./tools/mwccarm/2.0/base/mwasmarm.exe -proc arm5te asm/arm9_thumb.s -o arm9.o ASFLAGS = -proc arm5te -ir ../.. -CFLAGS = -O4,p -proc arm946e -fp soft -lang c99 -Cpp_exceptions off -i include -ir include-mw -ir arm9/lib/include -W all +CFLAGS = -O4,p -proc arm946e -fp soft -lang c99 -Cpp_exceptions off -i include -ir include-mw -ir arm9/lib/libc/include -ir arm9/lib/libnns/include -ir arm9/lib/NitroSDK/include -W all LDFLAGS = -library -nodead -w off -proc v5te -interworking -pic ARFLAGS = rcS -export MWCIncludes := include +export MWCIncludes := libc/include libnns/include NitroSDK/include ################ Targets ################# LIBS := libsyscall.a .PHONY: all clean -all: $(LIBS) +all: libs $(LIBS) @: +libs: + $(MAKE) -C libc + $(MAKE) -C libnns + $(MAKE) -C NitroSDK + clean: - $(RM) $(LIBS) $(LIBS:%.a=%/*.o) + $(MAKE) clean -C libc + $(MAKE) clean -C libnns + $(MAKE) clean -C NitroSDK + $(RM) $(LIBS) libsyscall.a: syscall/_svc_mw.o |
