summaryrefslogtreecommitdiff
path: root/raspberrypi/Makefile
diff options
context:
space:
mode:
authorDave2013-03-04 22:28:03 +0100
committernotaz2013-03-07 23:16:38 +0200
commitffa573f88020e4de9300a013721068672c923f33 (patch)
tree48bdc5b166e0211b24155b77fe28075e3c258135 /raspberrypi/Makefile
parent6a298de4811066eb3cd2fadfd78970281ed30074 (diff)
downloadpicogpsp-ffa573f88020e4de9300a013721068672c923f33.tar.gz
picogpsp-ffa573f88020e4de9300a013721068672c923f33.tar.bz2
picogpsp-ffa573f88020e4de9300a013721068672c923f33.zip
raspberry pi port
Diffstat (limited to 'raspberrypi/Makefile')
-rw-r--r--raspberrypi/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/raspberrypi/Makefile b/raspberrypi/Makefile
new file mode 100644
index 0000000..336a835
--- /dev/null
+++ b/raspberrypi/Makefile
@@ -0,0 +1,44 @@
+# gpSP makefile
+# Gilead Kutnick - Exophase
+# pandora port - notaz
+# respberry pi - DPR
+
+# Global definitions
+
+CC = gcc
+
+OBJS = rpi.o 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\
+ gles_video.o video_blend.o
+
+BIN = gpsp
+
+# Platform specific definitions
+
+VPATH += .. ../arm
+CFLAGS += -DARM_ARCH -DRPI_BUILD -Wall
+CFLAGS += -O3 -mfpu=vfp
+CFLAGS += `sdl-config --cflags`
+CFLAGS += -I$(SDKSTAGE)/opt/vc/include -I$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads
+
+# expecting to have PATH set up to get correct sdl-config first
+
+LIBS += `sdl-config --libs`
+LIBS += -ldl -lpthread -lz
+LIBS += -L$(SDKSTAGE)/opt/vc/lib/ -lGLESv2 -lEGL -lopenmaxil -lbcm_host -lvcos -lvchiq_arm -lrt
+
+# 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)