diff Makefile.pandora @ 3218:81773a1eac83

Patch from David Carre: I fixed a bug in the "SDL_DestroyRenderer()" function in the pandora x11 renderer (in fact the bug was in the "X11_GLES_MakeCurrent()" function) that was causing a crash when exiting SDL. There was a problem while terminating the x11 egl window, that was preventing to quit/close SDL/SDL-window then reload SDL/SDL-window inside the same application.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 30 Jul 2009 14:53:57 +0000
parents b7a48f533966
children 11cedc036ca1
line wrap: on
line diff
--- a/Makefile.pandora	Sun Jul 19 08:04:59 2009 +0000
+++ b/Makefile.pandora	Thu Jul 30 14:53:57 2009 +0000
@@ -8,7 +8,7 @@
 
 CFLAGS  = -O3 -march=armv7-a -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp \
 	-mfpu=neon -ftree-vectorize -ffast-math -fomit-frame-pointer -fno-strict-aliasing -fsingle-precision-constant \
-	-I./include -I$(PNDSDK)/usr/include
+	-I./include -I$(PNDSDK)/usr/include -DSDL_REVISION=0
 
 TARGET  = libSDL.a
 
@@ -24,14 +24,13 @@
 
 OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
 
+CONFIG_H = $(shell cp include/SDL_config_pandora.h include/SDL_config.h && touch include/SDL_revision.h)
+
 all: $(TARGET)
 
 $(TARGET): $(CONFIG_H) $(OBJECTS)
 	$(AR) crv $@ $^
 	$(RANLIB) $@
 
-$(CONFIG_H):
-	cp include/SDL_config_pandora.h include/SDL_config.h
-
 clean:
 	rm -f $(TARGET) $(OBJECTS)