-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from kubilus1/upgrade-141
Upgrade to SGDK 1.41
- Loading branch information
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |