From 60c1003845035ad4cd0e9ea50862bad7626faf0e Mon Sep 17 00:00:00 2001 From: Pixel Date: Sat, 21 Sep 2002 18:47:46 +0000 Subject: Added the Pcsx source. --- PcsxSrc/Linux/Makefile | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 PcsxSrc/Linux/Makefile (limited to 'PcsxSrc/Linux/Makefile') diff --git a/PcsxSrc/Linux/Makefile b/PcsxSrc/Linux/Makefile new file mode 100644 index 0000000..bbf1b70 --- /dev/null +++ b/PcsxSrc/Linux/Makefile @@ -0,0 +1,62 @@ +# +# PCSX Makefile for Linux +# + +MAJ = 1 +MIN = 3 +VERSION = ${MAJ}.${MIN} + +all: pcsx + +CPU = ix86 + +CC = gcc +NASM = nasm +RM = rm -f +STRIP = strip + +OPTIMIZE = -O2 -fomit-frame-pointer -finline-functions -ffast-math +FLAGS = -D__LINUX__ -DPCSX_VERSION=\"${VERSION}\" +# this includes the option -rdynamic and we don't want that +LIBST = $(shell gtk-config --libs) +LIBS = $(subst -rdynamic, , ${LIBST}) -lz + +OBJS = ../PsxBios.o ../CdRom.o ../PsxCounters.o ../PsxDma.o ../DisR3000A.o \ + ../Spu.o ../Sio.o ../PsxHw.o ../Mdec.o ../PsxMem.o ../Misc.o \ + ../plugins.o ../Decode_XA.o ../R3000A.o ../PsxInterpreter.o \ + ../Gte.o ../PsxHLE.o +OBJS+= LnxMain.o Plugin.o Config.o GtkGui.o +OBJS+= GladeGui.o GladeFuncs.o #GladeCalls.o + +ifeq (${CPU}, ix86) + CC = pgcc + OPTIMIZE = -O4 -fomit-frame-pointer -finline-functions -ffast-math -fno-exceptions -march=pentiumpro + OBJS+= ../ix86/iR3000A.o ../ix86/ix86.o + FLAGS+= -D__i386__ +endif + +CFLAGS = -Wall ${OPTIMIZE} -I. -I.. -I/usr/include/g++ ${FLAGS} +CFLAGS+= $(shell gtk-config --cflags) +ASMFLAGS = -f elf ${FLAGS} -i./ -i../ + +pcsx: ${OBJS} + ${CC} ${CFLAGS} ${OBJS} -o pcsx ${LIBS} + ${STRIP} pcsx + +.PHONY: clean pcsx + +clean: + ${RM} *.o ../*.o ../${CPU}/*.o pcsx + +../%.o: ../%.c + ${CC} ${CFLAGS} -c -o $@ $< + +../${CPU}/%.o: ../${CPU}/%.asm + ${NASM} ${ASMFLAGS} -o $@ $< + +%.o: %.c + ${CC} ${CFLAGS} -c -o $@ $< + +../Cpu/ix86/%.o: ../Cpu/ix86/%.c + ${CC} ${CFLAGS} -c -o $@ $< + -- cgit v1.2.3