Switched from Cygwin to mingw32 on MS boxes. Vastly improved compilability.
[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 MINGW32
11 libinput_a_SOURCES = sdl_event.c sdl_key.c sdl_mouse.c sdl_joy.c sdl_joydefs.c
12 else
13 if USE_GGI
14 libinput_a_SOURCES = linux_joydefs.c linux_joystick.c \
15 ggi_event.c ggi_key.c ggi_mouse.c
16 else
17 if USE_SVGALIB
18 libinput_a_SOURCES = linux_joydefs.c linux_joystick.c \
19 svgalib_event.c svgalib_key.c svgalib_mouse.c svgalib_init.c
20 else
21 libinput_a_SOURCES = linux_joydefs.c linux_joystick.c \
22 sdl_event.c sdl_key.c sdl_mouse.c
23 endif
24 endif
25 endif
26 endif
27
28 EXTRA_libinput_a_SOURCES = \
29 dos_key.c dos_joyc.c dos_joydefs.c dos_mouse.c \
30 ggi_event.c ggi_key.c ggi_mouse.c \
31 linux_joydefs.c linux_joystick.c \
32 sdl_event.c sdl_key.c sdl_mouse.c sdl_joy.c sdl_joydefs.c \
33 svgalib_event.c svgalib_key.c svgalib_mouse.c svgalib_init.c
34
35 SUFFIXES = .asm
36 %.o: %.asm
37         $(NASM) $(NASMFLAGS) $< -o $@
38
39 if ENV_DJGPP
40 libinput_a_LIBADD = dos_joy2.o
41 endif
42
43 EXTRA_DIST = \
44 dos_joy2.asm \
45 ggi_init.c