summaryrefslogtreecommitdiff
path: root/pandora/Makefile
diff options
context:
space:
mode:
authornotaz2011-09-04 20:02:19 +0300
committernotaz2011-09-06 00:18:01 +0300
commiteb3668fc5dab138073cd4844208ac05b94086a4a (patch)
tree78f8f4b762c262221114b5da4f4b493245c6ced6 /pandora/Makefile
parent43c24b301dc8c0c5952e1d22bad865f4304d01f8 (diff)
downloadpicogpsp-eb3668fc5dab138073cd4844208ac05b94086a4a.tar.gz
picogpsp-eb3668fc5dab138073cd4844208ac05b94086a4a.tar.bz2
picogpsp-eb3668fc5dab138073cd4844208ac05b94086a4a.zip
initial pandora port, with hardware scaling and stuff
Diffstat (limited to 'pandora/Makefile')
-rw-r--r--pandora/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/pandora/Makefile b/pandora/Makefile
new file mode 100644
index 0000000..090cccb
--- /dev/null
+++ b/pandora/Makefile
@@ -0,0 +1,41 @@
+# gpSP makefile
+# Gilead Kutnick - Exophase
+# pandora port - notaz
+
+# Global definitions
+
+CC = $(CROSS_COMPILE)gcc
+
+OBJS = pnd.o main.o cpu.o memory.o video.o input.o sound.o gui.o \
+ cheats.o zip.o cpu_threaded.o arm_stub.o video_blend.o warm.o \
+ linux/fbdev.o linux/xenv.o
+BIN = gpsp
+
+# Platform specific definitions
+
+VPATH += .. ../arm
+CFLAGS += -DARM_ARCH -DPND_BUILD
+CFLAGS += -funsigned-char
+CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp -ffast-math
+CFLAGS += -fno-common -fno-builtin
+CFLAGS += -ggdb
+CFLAGS += -O2
+
+# expecting to have PATH set up to get correct sdl-config first
+CFLAGS += `sdl-config --cflags`
+LIBS += `sdl-config --libs`
+LIBS += -ldl -lpthread -lz
+
+# Compilation:
+
+%.o: %.S
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+all: $(BIN)
+
+$(BIN): $(OBJS)
+ $(CC) $(OBJS) $(LIBS) -o $(BIN)
+
+clean:
+ rm -f *.o $(BIN)
+