summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index eb15d11ab..58a93bb55 100644
--- a/Makefile
+++ b/Makefile
@@ -25,13 +25,19 @@ ASFLAGS := -mcpu=arm7tdmi
CC1 := tools/agbcc/bin/agbcc
override CFLAGS += -mthumb-interwork -Wimplicit -Wparentheses -Werror -O2 -fhex-asm
-CPPFLAGS := -I tools/agbcc/include -iquote include -nostdinc -undef
+CPPFLAGS := -I tools/agbcc/include -I tools/agbcc -iquote include -nostdinc -undef
LDFLAGS = -Map ../../$(MAP)
LIB := -L ../../tools/agbcc/lib -lgcc -lc
-SHA1 := sha1sum -c
+ifeq ($(OS),Windows_NT)
+ SHA1 := sha1sum -c
+else ifeq ($(shell uname -s),Darwin)
+ SHA1 := shasum -c
+else
+ SHA1 := sha1sum -c
+endif
GFX := tools/gbagfx/gbagfx
AIF := tools/aif2pcm/aif2pcm