04435dee5536fa241e3d5cade56c9d8abb9538fc
[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 libinput_a_SOURCES = linux_joydefs.c linux_joystick.c \
19 sdl_event.c sdl_key.c sdl_mouse.c
20 endif
21 endif
22 endif
23
24 EXTRA_libinput_a_SOURCES = \
25 dos_key.c dos_joyc.c dos_joydefs.c dos_mouse.c \
26 ggi_event.c ggi_key.c ggi_mouse.c \
27 linux_joydefs.c linux_joystick.c \
28 sdl_event.c sdl_key.c sdl_mouse.c \
29 svgalib_event.c svgalib_key.c svgalib_mouse.c svgalib_init.c
30
31 SUFFIXES = .asm
32 %.o: %.asm
33         $(NASM) $(NASMFLAGS) $< -o $@
34
35 if ENV_DJGPP
36 libinput_a_LIBADD += dos_joy2.o
37 endif
38
39 EXTRA_DIST = \
40 dos_joy2.asm \
41 ggi_init.c