mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 18:25:36 +00:00
0e45984fa0
The internal function SDL_EGL_LoadLibrary() did not delete and remove a mostly uninitialized data structure if loading the library first failed. A later try to use EGL then skipped initialization and assumed it was previously successful because the data structure now already existed. This led to at least one crash in the internal function SDL_EGL_ChooseConfig() because a NULL pointer was dereferenced to make a call to eglBindAPI().
43 lines
756 B
Makefile
43 lines
756 B
Makefile
# Makefile to build the SDL library
|
|
|
|
INCLUDE = -I./include
|
|
CFLAGS = -g -O2 $(INCLUDE)
|
|
AR = ar
|
|
RANLIB = ranlib
|
|
|
|
TARGET = libSDL.a
|
|
SOURCES = \
|
|
src/*.c \
|
|
src/audio/*.c \
|
|
src/audio/dummy/*.c \
|
|
src/cpuinfo/*.c \
|
|
src/events/*.c \
|
|
src/file/*.c \
|
|
src/haptic/*.c \
|
|
src/haptic/dummy/*.c \
|
|
src/joystick/*.c \
|
|
src/joystick/dummy/*.c \
|
|
src/loadso/dummy/*.c \
|
|
src/power/*.c \
|
|
src/filesystem/dummy/*.c \
|
|
src/render/*.c \
|
|
src/render/software/*.c \
|
|
src/stdlib/*.c \
|
|
src/thread/*.c \
|
|
src/thread/generic/*.c \
|
|
src/timer/*.c \
|
|
src/timer/dummy/*.c \
|
|
src/video/*.c \
|
|
src/video/dummy/*.c \
|
|
|
|
OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(OBJECTS)
|
|
$(AR) crv $@ $^
|
|
$(RANLIB) $@
|
|
|
|
clean:
|
|
rm -f $(TARGET) $(OBJECTS)
|