mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 06:07:59 +00:00
50ea944789
Some SDL applications expect the SDL_image headers in include/SDL to be reachable without the SDL/ prefix. This patch adds the corresponding search path. Furthermore it enables support for XPM images.
14 lines
339 B
Makefile
14 lines
339 B
Makefile
SDL_IMAGE_PORT_DIR := $(call select_from_ports,sdl_image)
|
|
|
|
SRC_C = $(notdir $(wildcard $(SDL_IMAGE_PORT_DIR)/src/lib/sdl_image/IMG*.c))
|
|
|
|
LIBS += libc libm sdl jpeg libpng zlib
|
|
|
|
SUPPORTED_FORMATS = PNG JPG TGA PNM XPM
|
|
|
|
CC_OPT += $(addprefix -DLOAD_,$(SUPPORTED_FORMATS))
|
|
|
|
vpath %.c $(SDL_IMAGE_PORT_DIR)/src/lib/sdl_image
|
|
|
|
SHARED_LIB = yes
|