Skip to content

Commit

Permalink
Merge pull request #46 from kubilus1/upgrade-141
Browse files Browse the repository at this point in the history
Upgrade to SGDK 1.41
  • Loading branch information
kubilus1 authored Dec 14, 2019
2 parents ed8d4fe + 8db7857 commit 78f4808
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sgdk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ GENGCC_BIN=$(GENDEV)/bin
SGDKDIR=$(CURDIR)/SGDK
SAMPLESDIR=$(SGDKDIR)/sample

SGDKVER=v1.40
SGDKVER=v1.41
SGDKINSTALLDIR=$(GENDEV)/sgdk$(SGDKVER)

all: tools $(SGDKDIR) $(SGDKDIR)/libmd.a
Expand Down
31 changes: 31 additions & 0 deletions sgdk/files/sgdk_v1.41.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
diff --git a/makefile.gen b/makefile.gen
index f12594d..d240b3f 100644
--- a/makefile.gen
+++ b/makefile.gen
@@ -25,6 +25,8 @@ BINTOS= $(BIN)/bintos
RESCOMP= $(JAVA) -jar $(BIN)/rescomp.jar
MKDIR= $(BIN)/mkdir

+include $(GENDEV)/sgdk/mkfiles/makefile.vars
+
SRC_C= $(wildcard *.c)
SRC_C+= $(wildcard $(SRC)/*.c)
SRC_S= $(wildcard *.s)
diff --git a/tools/appack/makefile.elf b/tools/appack/makefile.elf
index 63864f9..2826b2f 100644
--- a/tools/appack/makefile.elf
+++ b/tools/appack/makefile.elf
@@ -12,7 +12,12 @@ objects = appack.o

cflags = -Wall -O2 -s
ldflags = $(cflags)
-incdir = ../lib/elf
+include ./makefile.vars
+ifeq ($(osBits), 32)
+ incdir = ./lib/elf
+else
+ incdir = ./lib/elf64
+endif
libs = $(incdir)/aplib.a

.PHONY: all clean

0 comments on commit 78f4808

Please sign in to comment.