Cygwin support, using SDL.
[btb/d2x.git] / input / Makefile.am
1 SUBDIRS = linux
2
3 INCLUDES = -I$(top_srcdir)/includes -I$(top_srcdir)/main -I$(top_srcdir)/arch/include
4
5 noinst_LIBRARIES = libinput.a
6
7 if ENV_DJGPP
8 libinput_a_SOURCES = dos_key.c dos_joyc.c dos_joydefs.c dos_mouse.c
9 else
10 if USE_GGI
11 libinput_a_SOURCES = linux_joydefs.c linux_joystick.c \
12 ggi_event.c ggi_key.c ggi_mouse.c
13 else
14 if USE_SVGALIB
15 libinput_a_SOURCES = linux_joydefs.c linux_joystick.c \
16 svgalib_event.c svgalib_key.c svgalib_mouse.c svgalib_init.c
17 else
18 if ENV_CYGWIN
19 libinput_a_SOURCES = sdl_event.c sdl_key.c sdl_mouse.c \
20 win32_joydefs.c win32_joyhh.c
21 else
22 libinput_a_SOURCES = linux_joydefs.c linux_joystick.c \
23 sdl_event.c sdl_key.c sdl_mouse.c
24 endif
25 endif
26 endif
27 endif
28
29 EXTRA_libinput_a_SOURCES = \
30 dos_key.c dos_joyc.c dos_joydefs.c dos_mouse.c \
31 ggi_event.c ggi_key.c ggi_mouse.c \
32 linux_joydefs.c linux_joystick.c \
33 sdl_event.c sdl_key.c sdl_mouse.c \
34 svgalib_event.c svgalib_key.c svgalib_mouse.c svgalib_init.c \
35 win32_joydefs.c win32_joyhh.c
36
37 SUFFIXES = .asm
38 %.o: %.asm
39         $(NASM) $(NASMFLAGS) $< -o $@
40
41 if ENV_DJGPP
42 libinput_a_LIBADD += dos_joy2.o
43 endif
44
45 EXTRA_DIST = \
46 dos_joy2.asm \
47 ggi_init.c