forked from notaz/gpsp
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bittboy port, plus some changes related to SDL.
- Loading branch information
gameblabla
committed
Feb 2, 2019
1 parent
862e940
commit 1c288bc
Showing
36 changed files
with
997 additions
and
10,230 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
*.o | ||
*.u | ||
*.z | ||
*.gcda | ||
gpsp.gpe | ||
tags | ||
cscope.out | ||
pandora/linux | ||
bittboy/gpsp |
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,41 @@ | ||
# gpSP makefile | ||
# Gilead Kutnick - Exophase | ||
# pandora port - notaz | ||
# respberry pi - DPR | ||
|
||
# Global definitions | ||
|
||
CC = /opt/bittboy-toolchain/usr/bin/arm-miyoo-linux-musleabi-gcc | ||
|
||
OBJS = main.o cpu.o memory.o video.o input.o sound.o gui.o \ | ||
cheats.o zip.o arm_stub.o warm.o cpu_threaded.o video_blend.o | ||
|
||
BIN = gpsp | ||
|
||
# Platform specific definitions | ||
|
||
VPATH += .. ../arm | ||
CFLAGS += -DARM_ARCH -DPC_BUILD -Wall | ||
CFLAGS += -Ofast -fdata-sections -ffunction-sections -fno-PIC -fprofile-generate=/mnt/profile | ||
CFLAGS += `/opt/bittboy-toolchain/arm-miyoo-linux-musleabi/sysroot/usr/bin/sdl-config --cflags` | ||
|
||
# expecting to have PATH set up to get correct sdl-config first | ||
|
||
LIBS += `sdl-config --libs` | ||
LIBS += -ldl -lpthread -lz -lgcov -lasound -Wl,--as-needed -Wl,--gc-sections -flto -s | ||
|
||
# Compilation: | ||
|
||
all: $(BIN) | ||
|
||
%.o: %.S | ||
$(CC) $(CFLAGS) -c -o $@ $< | ||
|
||
|
||
cpu.o cpu_threaded.o: CFLAGS += -Wno-unused-variable -Wno-unused-label | ||
|
||
$(BIN): $(OBJS) | ||
$(CC) $(OBJS) $(LIBS) -o $(BIN) | ||
|
||
clean: | ||
rm -f *.o $(BIN) |
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
Oops, something went wrong.