improved automake config. make dist, VPATH builds, ...
[btb/d2x.git] / input / Makefile.am
1 SUBDIRS = ggi sdl linux svgalib
2
3 noinst_LIBRARIES = libinput.a
4 INCLUDES = -I $(top_srcdir)/includes -I $(top_srcdir)/main
5
6 libinput_a_SOURCES = \
7 dos_key.c dos_joyc.c dos_joydefs.c dos_mouse.c \
8 ggi_event.c ggi_key.c ggi_mouse.c \
9 linux_joydefs.c linux_joystick.c \
10 sdl_event.c sdl_key.c sdl_mouse.c \
11 svgalib_event.c svgalib_key.c svgalib_mouse.c svgalib_init.c
12
13 SUFFIXES = .asm
14 %.o: %.asm
15         $(NASM) $(NASMFLAGS) $< -o $@
16
17 if ENV_DJGPP
18 libinput_a_LIBADD += dos_joy2.o
19 endif
20
21 EXTRA_DIST = \
22 dos_joy2.asm \
23 ggi_init.c