notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a forgotten file
[pcsx_rearmed.git]
/
plugins
/
gpu-gles
/
Makefile
diff --git
a/plugins/gpu-gles/Makefile
b/plugins/gpu-gles/Makefile
index
1110151
..
e914764
100644
(file)
--- a/
plugins/gpu-gles/Makefile
+++ b/
plugins/gpu-gles/Makefile
@@
-1,33
+1,21
@@
-##############################################################################
\r
-# MAKEFILE FOR PETE'S MESAGL GPU... just run "make"
\r
-##############################################################################
\r
+CFLAGS += -ggdb -fPIC -O2 # -Wall
\r
\r
\r
-#PREFIX = /mythtv/media/devel/toolchains/pandora/arm-2007q3/
\r
-CROSS_COMPILE ?= arm-none-linux-gnueabi-
\r
+include ../../config.mak
\r
\r
\r
-
#CC = $(PREFIX)/bin/$(CROSS_COMPILE)gc
c
\r
-
CC = $(CROSS_COMPILE)gc
c
\r
+
SRC_STANDALONE += gpuDraw.c gpuFps.c gpuPlugin.c gpuPrim.c gpuTexture.
c
\r
+
SRC_GPULIB += gpulib_if.
c
\r
\r
\r
-CFLAGS += -fPIC -ggdb # -Wall
\r
-ifndef DEBUG
\r
-CFLAGS += -O3 -ffast-math -fomit-frame-pointer
\r
-endif
\r
-CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8
\r
-# note: the below causes strange bugs/crashes
\r
-#CFLAGS += -mfloat-abi=softfp
\r
-CFLAGS += -DMAEMO_CHANGES # -DUSE_X11
\r
CFLAGS += -I$(PREFIX)include
\r
CFLAGS += -I$(PREFIX)include
\r
+LDFLAGS += -Wl,--allow-multiple-definition
\r
+LDLIBS += -L$(PREFIX)lib
\r
+ifeq "$(PLATFORM)" "caanoo"
\r
+CFLAGS += -DFAKE_WINDOW
\r
+LDLIBS += -lopengles_lite -lstdc++
\r
+else
\r
+CFLAGS += $(CFLAGS_GLES)
\r
+LDLIBS += $(LDLIBS_GLES)
\r
+endif
\r
\r
\r
-TARGET = gpuGLES.so
\r
-LDFLAGS += -shared -Wl,-soname,$(TARGET) -o $(TARGET)
\r
-LIB = -L$(PREFIX)lib -lGLES_CM -lX11 -lXau -lXdmcp
\r
-
\r
-OBJ = gpuDraw.o gpuFps.o gpuPlugin.o gpuPrim.o gpuTexture.o
\r
-
\r
-all: $(TARGET)
\r
-
\r
-$(TARGET): $(OBJ)
\r
- $(CC) $(LDFLAGS) $(OBJ) $(LIB)
\r
-
\r
-clean:
\r
- $(RM) $(TARGET) $(OBJ)
\r
+#BIN_STANDALONE = gpuGLES.so
\r
+BIN_GPULIB = gpu_gles.so
\r
+include ../gpulib/gpulib.mak
\r