aboutsummaryrefslogtreecommitdiff
path: root/plugins/gpu_unai/Makefile
diff options
context:
space:
mode:
authornotaz2011-01-02 21:34:28 +0200
committernotaz2011-01-02 21:34:28 +0200
commit7c49c8a2a0cd00c453425b0f88c7b117223c92f4 (patch)
tree3493cd6d00ef4649e5b64c0bfdd800b85979bce1 /plugins/gpu_unai/Makefile
parentffd0d743cceac1715686af44f80779dc877735e0 (diff)
downloadpcsx_rearmed-7c49c8a2a0cd00c453425b0f88c7b117223c92f4.tar.gz
pcsx_rearmed-7c49c8a2a0cd00c453425b0f88c7b117223c92f4.tar.bz2
pcsx_rearmed-7c49c8a2a0cd00c453425b0f88c7b117223c92f4.zip
gpu_unai: pcsx-rearmed port
Diffstat (limited to 'plugins/gpu_unai/Makefile')
-rw-r--r--plugins/gpu_unai/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/gpu_unai/Makefile b/plugins/gpu_unai/Makefile
new file mode 100644
index 0000000..92f7ade
--- /dev/null
+++ b/plugins/gpu_unai/Makefile
@@ -0,0 +1,20 @@
+CC = $(CROSS_COMPILE)gcc
+
+CFLAGS += -fPIC -Wall -DREARMED
+CFLAGS += -O2 -ffast-math -fomit-frame-pointer
+CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
+# -fschedule-insns (from -O2+) causes bugs, probably bad asm() statements
+CFLAGS += -fno-schedule-insns -fno-schedule-insns2
+
+TARGET = gpuPCSX4ALL.so
+LDFLAGS += -shared -Wl,-soname,$(TARGET)
+
+all: $(TARGET)
+
+$(TARGET): gpu.cpp ../../frontend/arm_utils.s
+ $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
+
+# $(TARGET): *.h
+
+clean:
+ $(RM) $(TARGET) $(OBJ)