aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authornotaz2010-11-17 01:08:49 +0200
committernotaz2010-11-17 01:08:49 +0200
commit80c2304e511b5463b5046f7ff1c49103c786755f (patch)
tree26ee0cc7e1146beae6bcac3df52ba29512441787 /Makefile
parentaa1fc44b4532dc68be2482730a275f8a3ba8a039 (diff)
downloadpcsx_rearmed-80c2304e511b5463b5046f7ff1c49103c786755f.tar.gz
pcsx_rearmed-80c2304e511b5463b5046f7ff1c49103c786755f.tar.bz2
pcsx_rearmed-80c2304e511b5463b5046f7ff1c49103c786755f.zip
minimal working gtk-less build
..only works with external plugins
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..8810b26
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,28 @@
+CROSS_COMPILE=
+CC = $(CROSS_COMPILE)gcc
+LD = $(CROSS_COMPILE)ld
+
+CFLAGS += -Wall -ggdb -Ifrontend
+LDFLAGS += -lz -lpthread -ldl
+TARGET = pcsx
+
+all: $(TARGET)
+
+# core
+OBJS += libpcsxcore/cdriso.o libpcsxcore/cdrom.o libpcsxcore/cheat.o libpcsxcore/debug.o \
+ libpcsxcore/decode_xa.o libpcsxcore/disr3000a.o libpcsxcore/gte.o libpcsxcore/mdec.o \
+ libpcsxcore/misc.o libpcsxcore/plugins.o libpcsxcore/ppf.o libpcsxcore/psxbios.o \
+ libpcsxcore/psxcommon.o libpcsxcore/psxcounters.o libpcsxcore/psxdma.o libpcsxcore/psxhle.o \
+ libpcsxcore/psxhw.o libpcsxcore/psxinterpreter.o libpcsxcore/psxmem.o libpcsxcore/r3000a.o \
+ libpcsxcore/sio.o libpcsxcore/socket.o libpcsxcore/spu.o
+# gui
+OBJS += gui/Config.o gui/Plugin.o
+
+OBJS += frontend/main.o
+
+$(TARGET): $(OBJS)
+ $(CC) -o $@ $^ $(LDFLAGS)
+
+clean:
+ $(RM) $(TARGET) $(OBJS)
+