add savestate preview
[pcsx_rearmed.git] / plugins / gpu-gles / Makefile
CommitLineData
7eadbf88 1##############################################################################\r
2# MAKEFILE FOR PETE'S MESAGL GPU... just run "make"\r
3##############################################################################\r
4\r
f932e54b 5#PREFIX = /mythtv/media/devel/toolchains/pandora/arm-2007q3/\r
6CROSS_COMPILE ?= arm-none-linux-gnueabi-\r
7eadbf88 7\r
f932e54b 8#CC = $(PREFIX)/bin/$(CROSS_COMPILE)gcc\r
9CC = $(CROSS_COMPILE)gcc\r
7eadbf88 10\r
f932e54b 11CFLAGS += -fPIC # -Wall\r
12CFLAGS += -O3 -ffast-math -fomit-frame-pointer\r
13CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8\r
14# note: the below causes strange bugs/crashes\r
15#CFLAGS += -mfloat-abi=softfp\r
16CFLAGS += -DMAEMO_CHANGES # -DUSE_X11\r
17CFLAGS += -I$(PREFIX)include\r
7eadbf88 18\r
f932e54b 19TARGET = gpuGLES.so\r
20LDFLAGS += -shared -Wl,-soname,$(TARGET) -o $(TARGET)\r
21LIB = -L$(PREFIX)lib -lGLES_CM -lX11 -lXau -lXdmcp\r
7eadbf88 22\r
f932e54b 23OBJ = gpuDraw.o gpuFps.o gpuPlugin.o gpuPrim.o gpuTexture.o\r
7eadbf88 24\r
f932e54b 25all: $(TARGET)\r
7eadbf88 26\r
f932e54b 27$(TARGET): $(OBJ)\r
28 $(CC) $(LDFLAGS) $(OBJ) $(LIB)\r
7eadbf88 29\r
30clean:\r
f932e54b 31 $(RM) $(TARGET) $(OBJ)\r