summaryrefslogtreecommitdiff
path: root/xserver/hw/xfree86/int10/Makefile.am
blob: 66cb14d461526da63128eda1481532adac86fc77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
module_LTLIBRARIES = libint10.la

sdk_HEADERS = xf86int10.h

EXTRA_CFLAGS =

libint10_la_LDFLAGS = -avoid-version
libint10_la_LIBADD = $(PCIACCESS_LIBS)

COMMON_SOURCES = \
	helper_exec.c \
	helper_mem.c \
	xf86int10.c \
	xf86int10module.c

if I386_VIDEO
I386_VIDEO_CFLAGS = -D_PC
endif

AM_CPPFLAGS = $(XORG_INCS)

if INT10_VM86
AM_CFLAGS = $(I386_VIDEO_CFLAGS) -D_VM86_LINUX $(DIX_CFLAGS) $(XORG_CFLAGS) $(EXTRA_CFLAGS)
libint10_la_SOURCES = \
	$(COMMON_SOURCES) \
	$(srcdir)/../os-support/linux/int10/vm86/linux_vm86.c \
	$(srcdir)/../os-support/linux/int10/linux.c
endif

if INT10_X86EMU
AM_CFLAGS = $(I386_VIDEO_CFLAGS) -D_X86EMU -DNO_SYS_HEADERS \
           $(XORG_CFLAGS) $(EXTRA_CFLAGS) $(DIX_CFLAGS)
AM_CPPFLAGS += -I$(srcdir)/../x86emu
libint10_la_SOURCES = \
	$(COMMON_SOURCES) \
	xf86x86emu.c \
	generic.c \
	x86emu.c
endif

if INT10_STUB
AM_CFLAGS = $(I386_VIDEO_CFLAGS) -D_VM86_LINUX $(DIX_CFLAGS) $(XORG_CFLAGS) $(EXTRA_CFLAGS)
libint10_la_SOURCES = stub.c xf86int10module.c
endif

EXTRA_DIST = xf86x86emu.h INT10.HOWTO