summaryrefslogtreecommitdiff
path: root/x86/Makefile
diff options
context:
space:
mode:
authornotaz2009-05-21 18:48:31 +0300
committernotaz2009-05-21 18:48:31 +0300
commit2823a4c8196a02da86ee180cf55586d4e8c91a2f (patch)
tree7e9b3f35b55af9917b3a05dd32de14be9a8c3f3c /x86/Makefile
downloadpicogpsp-2823a4c8196a02da86ee180cf55586d4e8c91a2f.tar.gz
picogpsp-2823a4c8196a02da86ee180cf55586d4e8c91a2f.tar.bz2
picogpsp-2823a4c8196a02da86ee180cf55586d4e8c91a2f.zip
original source from gpsp09-2xb_src.tar.bz2
Diffstat (limited to 'x86/Makefile')
-rw-r--r--x86/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/x86/Makefile b/x86/Makefile
new file mode 100644
index 0000000..e0a5767
--- /dev/null
+++ b/x86/Makefile
@@ -0,0 +1,38 @@
+# gpSP makefile
+# Gilead Kutnick - Exophase
+
+# Global definitions
+
+CC = gcc
+STRIP = strip
+AS = as
+
+PREFIX = /usr
+OBJS = main.o cpu.o memory.o video.o input.o sound.o \
+ cpu_threaded.o gui.o x86_stub.o cheats.o zip.o
+BIN ?= gpsp.exe
+
+# Platform specific definitions
+
+VPATH += ..
+CFLAGS += -DPC_BUILD
+INCLUDES = -I${PREFIX}/include `sdl-config --cflags`
+LIBS = -L${PREFIX}/lib `sdl-config --libs` -mconsole -lz
+
+# Compilation:
+
+.SUFFIXES: .c .S
+
+%.o: %.c
+ ${CC} ${CFLAGS} ${INCLUDES} -c -o $@ $<
+
+%.o: %.S
+ ${AS} -o $@ $<
+
+all: ${OBJS}
+ ${CC} ${OBJS} ${LIBS} -o ${BIN}
+ ${STRIP} ${BIN}
+
+clean:
+ rm -f *.o ${BIN}
+