use SDL_VERSION_ATLEAST
[btb/d2x.git] / arch / sdl / Makefile.am
1 EXTRA_SUBDIRS = include
2
3 noinst_LIBRARIES = libarch_sdl.a
4
5 INCLUDES = -I$(top_srcdir)/arch/include -I$(top_srcdir)/includes -I$(top_srcdir)/main
6
7 if SDL_JOYSTICK
8 JOYSTICK_SRCS = joy.c joydefs.c
9 endif
10
11 if !USE_SVGALIB
12 if !USE_GGI
13 INPUT_SRCS = event.c key.c mouse.c
14 endif
15 endif
16
17 if !USE_OPENGL
18 VIDEO_SRCS = gr.c 
19 endif
20
21 libarch_sdl_a_SOURCES = ${JOYSTICK_SRCS} ${VIDEO_SRCS} ${INPUT_SRCS} \
22 cdrom.c digi.c init.c timer.c
23
24 EXTRA_libarch_sdl_a_SOURCES = \
25 event.c gr.c joy.c joydefs.c key.c mouse.c