1 ##############################################################################
\r
2 # MAKEFILE FOR PETE'S MESAGL GPU... just run "make"
\r
3 ##############################################################################
\r
5 #PREFIX = /mythtv/media/devel/toolchains/pandora/arm-2007q3/
\r
6 CROSS_COMPILE ?= arm-none-linux-gnueabi-
\r
8 #CC = $(PREFIX)/bin/$(CROSS_COMPILE)gcc
\r
9 CC = $(CROSS_COMPILE)gcc
\r
11 CFLAGS += -fPIC -ggdb # -Wall
\r
13 CFLAGS += -O3 -ffast-math -fomit-frame-pointer
\r
15 CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8
\r
16 # note: the below causes strange bugs/crashes
\r
17 #CFLAGS += -mfloat-abi=softfp
\r
18 CFLAGS += -DMAEMO_CHANGES # -DUSE_X11
\r
19 CFLAGS += -I$(PREFIX)include
\r
22 LDFLAGS += -shared -Wl,-soname,$(TARGET) -o $(TARGET)
\r
23 LIB = -L$(PREFIX)lib -lGLES_CM -lX11 -lXau -lXdmcp
\r
25 OBJ = gpuDraw.o gpuFps.o gpuPlugin.o gpuPrim.o gpuTexture.o
\r
27 -include Makefile.local
\r
32 $(CC) $(LDFLAGS) $(OBJ) $(LIB)
\r
35 $(RM) $(TARGET) $(OBJ)
\r