mirror of
https://github.com/FunKey-Project/gpsp_libretro.git
synced 2026-03-30 00:32:51 +02:00
original source from gpsp09-2xb_src.tar.bz2
This commit is contained in:
38
x86/Makefile
Normal file
38
x86/Makefile
Normal file
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user