diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2014-11-11 10:13:08 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-12-16 14:15:27 +0100 |
commit | d29c431edce6c0cd18fc5c4ecf31417c2569ae4a (patch) | |
tree | fbb4fa1964341b0720ebff005fd67db7b927e0a5 /ui/Makefile.objs | |
parent | dfa9c2a0f4d0a0c8b2c1449ecdbb1297427e1560 (diff) |
sdl: move version logic from source code to makefile
Compile sdl.c / sdl2.c depending on CONFIG_SDLABI instead of
compiling both and have version #ifdefs in the source code.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'ui/Makefile.objs')
-rw-r--r-- | ui/Makefile.objs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/Makefile.objs b/ui/Makefile.objs index 801cba2675..b25e85f68e 100644 --- a/ui/Makefile.objs +++ b/ui/Makefile.objs @@ -16,7 +16,12 @@ common-obj-$(CONFIG_CURSES) += curses.o common-obj-$(CONFIG_VNC) += $(vnc-obj-y) common-obj-$(CONFIG_GTK) += gtk.o x_keymap.o -sdl.mo-objs := sdl.o sdl_zoom.o sdl2.o +ifeq ($(CONFIG_SDLABI),1.2) +sdl.mo-objs := sdl.o sdl_zoom.o +endif +ifeq ($(CONFIG_SDLABI),2.0) +sdl.mo-objs := sdl2.o +endif sdl.mo-cflags := $(SDL_CFLAGS) gtk.o-cflags := $(GTK_CFLAGS) $(VTE_CFLAGS) |