summaryrefslogtreecommitdiff
path: root/hw/xfree86/common/Makefile.am
blob: 5cb164a21db18f76ec67a3b84aa5921676d7fbb0 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
noinst_LIBRARIES = libcommon.a libinit.a

if XORG_BUS_SBUS
SBUS_SOURCES = xf86sbusBus.c
endif

#if DEBUG
#DEBUGSOURCES = xf86Debug.c
#endif

#if BUILDXV
XVSOURCES = xf86xv.c xf86xvmc.c
XVSDKINCS = xf86xv.h xf86xvmc.h
#endif

#if XKB
XKBSOURCES = xf86XKB.c
#endif

#if XINPUT
XISOURCES = xf86Xinput.c xisb.c
XISDKINCS = xf86Xinput.h xisb.h
#endif

RANDRSOURCES = xf86RandR.c

BUSSOURCES = xf86isaBus.c xf86pciBus.c xf86fbBus.c xf86noBus.c $(SBUS_SOURCES)

#if LINUX
#KBDSOURCES = xf86KbdLnx.c
# XXX psuedocodeish
#else if BSD
#KBDSOURCES = xf86KbdBSD.c
#else if Mach && !GNU/Mach
#KBDSOURCES = xf86KbdMach.c
#else
#KBDSOURCES = xf86Kbd.c
#endif
KBDSOURCES = xf86Kbd@XORG_OS_KBD@.c

# shouldn't isaBus and pciBus only be built on the relevant architectures? -ds
# ditto DoScanPci
AM_LDFLAGS = -r
libcommon_a_SOURCES = xf86Configure.c xf86Bus.c xf86Config.c \
                      xf86Cursor.c xf86DGA.c xf86DPMS.c xf86DefModes.c \
                      xf86DoProbe.c xf86DoScanPci.c xf86Events.c \
                      xf86Globals.c xf86Io.c xf86AutoConfig.c \
                      xf86MiscExt.c xf86Option.c \
                      xf86VidMode.c xf86fbman.c xf86cmap.c \
                      xf86Helper.c \
                      xf86Mode.c xf86Build.h xorgHelper.c xf86Versions.c \
                      $(XVSOURCES) $(BUSSOURCES) $(XKBSOURCES) \
                      $(DEBUGSOURCES) $(XISOURCES) $(RANDRSOURCES) \
                      $(KBDSOURCES)
libinit_a_SOURCES = xf86Build.h xf86Init.c

INCLUDES = $(XORG_INCS) -I$(srcdir)/../ddc -I$(srcdir)/../i2c \
	   -I$(srcdir)/../loader -I$(srcdir)/../rac -I$(srcdir)/../parser \
           -I$(srcdir)/../scanpci -I$(srcdir)/../vbe -I$(srcdir)/../int10 \
	   -I$(srcdir)/../vgahw -I$(srcdir)/../dixmods/extmod

sdk_HEADERS = compiler.h fourcc.h xf86.h xf86Module.h xf86Opt.h \
               xf86PciInfo.h xf86Priv.h xf86Privstr.h xf86Resources.h \
               xf86cmap.h xf86fbman.h xf86str.h $(XISDKINCS) \
               $(XVSDKINCS) atKeynames.h xf86Version.h xorgVersion.h \
               xf86sbusBus.h

DISTCLEANFILES = xf86Build.h

# this is a hack for now.  as above we don't have rules to build all of these
# yet, but we want to make sure they all get into the distball.  this should
# eventually go away.
DISTKBDSOURCES = xf86Kbd.c xf86KbdBSD.c xf86KbdLnx.c xf86KbdMach.c

EXTRA_DIST = \
	atKeynames.h \
	compiler.h \
	fourcc.h \
	scoasm.h \
	xf86.h \
	xf86Build.h \
	xf86Bus.h \
	xf86Config.h \
	xf86InPriv.h \
	xf86Keymap.h \
	xf86Module.h \
	xf86Opt.h \
	xf86PciInfo.h \
	xf86Priv.h \
	xf86Privstr.h \
	xf86Resources.h \
	xf86Xinput.h \
	xf86cmap.h \
	xf86fbman.h \
	xf86pciBus.h \
	xf86str.h \
	xf86xv.h \
	xf86xvmc.h \
	xf86xvpriv.h \
	xisb.h \
	xf86Build.h.in \
	xf86Version.h \
	xorgVersion.h \
	xf86Date.h \
        $(DISTKBDSOURCES)

AM_CFLAGS = $(XORG_CFLAGS)