1 ENABLE_SDL ?
= $(call bool_not
,$(HAVE_WIN32
))
6 $(eval
$(call pkg-config-library
,SDL
,sdl SDL_image
))
8 ifeq ($(TARGET
),ANDROID
)
14 SDL_CPPFLAGS
:= -I
/usr
/local
/i586-mingw32msvc
/include/SDL
15 SDL_LDLIBS
:= -L
/usr
/local
/i586-mingw32msvc
/lib
-lSDL
-lSDL_image
19 SDL_CPPFLAGS
+= -DENABLE_SDL
21 SDL_CPPFLAGS
+= -DENABLE_OPENGL
22 ifneq ($(TARGET
),ANDROID
)
23 ifeq ($(TARGET_IS_DARWIN
),y
)
24 SDL_LDLIBS
+= -framework OpenGL
30 SDL_LDLIBS
+= -lSDL_gfx
32 ifneq ($(TARGET
),ANDROID
)
33 ifeq ($(TARGET_IS_DARWIN
),y
)
34 # the pkg-config file on MacPorts is broken, we must filter out the
36 SDL_LDLIBS
:= $(filter-out -l
%,$(SDL_LDLIBS
))
37 SDL_LDADD
= /opt
/local
/lib
/libSDL_ttf.a
/opt
/local
/lib
/libfreetype.a
38 SDL_LDADD
+= /opt
/local
/lib
/libbz2.a
/opt
/local
/lib
/libz.a
39 SDL_LDADD
+= /opt
/local
/lib
/libSDL_image.a
41 SDL_LDLIBS
+= -lSDL_ttf