Makefile.am 2.49 KB
Newer Older
1
noinst_LTLIBRARIES = libcommon.la
Daniel Stone's avatar
Daniel Stone committed
2

3 4 5 6 7
if XORG_BUS_PCI
PCI_SOURCES = xf86pciBus.c xf86VGAarbiter.c xf86VGAarbiter.h \
              xf86VGAarbiterPriv.h
endif

8
if XORG_BUS_SPARC
Daniel Stone's avatar
Daniel Stone committed
9 10 11
SBUS_SOURCES = xf86sbusBus.c
endif

12
if XV
Daniel Stone's avatar
Daniel Stone committed
13
XVSOURCES = xf86xv.c xf86xvmc.c
14
XVSDKINCS = xf86xv.h xf86xvmc.h xf86xvpriv.h
15
endif
Daniel Stone's avatar
Daniel Stone committed
16

17 18 19 20
if XF86VIDMODE
XF86VMODE_SDK = vidmodeproc.h
endif

21 22 23 24
if DGA
DGASOURCES = xf86DGA.c
endif

Daniel Stone's avatar
Daniel Stone committed
25 26
RANDRSOURCES = xf86RandR.c

27
BUSSOURCES = xf86fbBus.c xf86noBus.c $(PCI_SOURCES) $(SBUS_SOURCES)
Daniel Stone's avatar
Daniel Stone committed
28

29 30
MODEDEFSOURCES = $(srcdir)/vesamodes $(srcdir)/extramodes

31
xf86DefModeSet.c: $(srcdir)/modeline2c.awk $(MODEDEFSOURCES)
32 33
	$(AM_V_GEN)cat $(MODEDEFSOURCES) | LC_ALL=C $(AWK) -f $(srcdir)/modeline2c.awk > $@
	$(AM_V_GEN)echo >> $@
34 35 36

BUILT_SOURCES = xf86DefModeSet.c

Daniel Stone's avatar
Daniel Stone committed
37
AM_LDFLAGS = -r
38
libcommon_la_SOURCES = xf86Configure.c xf86ShowOpts.c xf86Bus.c xf86Config.c \
Topi Kanerva's avatar
Topi Kanerva committed
39
                      xf86Cursor.c $(DGASOURCES) xf86DPMS.c \
40
                      xf86Events.c xf86Globals.c xf86AutoConfig.c \
41
                      xf86Option.c xf86Init.c \
Daniel Stone's avatar
Daniel Stone committed
42
                      xf86VidMode.c xf86fbman.c xf86cmap.c \
43
                      xf86Helper.c xf86PM.c xf86Xinput.c xisb.c \
44
                      xf86Mode.c xorgHelper.c \
45
                      $(XVSOURCES) $(BUSSOURCES) $(RANDRSOURCES)
46
nodist_libcommon_la_SOURCES = xf86DefModeSet.c xf86Build.h
47
libcommon_la_LIBADD = $(top_builddir)/config/libconfig.la
Daniel Stone's avatar
Daniel Stone committed
48

49
INCLUDES = $(XORG_INCS) -I$(srcdir)/../ddc -I$(srcdir)/../i2c \
50
	   -I$(srcdir)/../loader -I$(srcdir)/../parser \
51
           -I$(srcdir)/../vbe -I$(srcdir)/../int10 \
52
	   -I$(srcdir)/../vgahw -I$(srcdir)/../dixmods/extmod \
53
	   -I$(srcdir)/../modes -I$(srcdir)/../ramdac
Daniel Stone's avatar
Daniel Stone committed
54 55

sdk_HEADERS = compiler.h fourcc.h xf86.h xf86Module.h xf86Opt.h \
56 57
              xf86PciInfo.h xf86Priv.h xf86Privstr.h \
              xf86cmap.h xf86fbman.h xf86str.h xf86Xinput.h xisb.h \
58
              $(XVSDKINCS) $(XF86VMODE_SDK) xorgVersion.h \
59
              xf86sbusBus.h xf86VGAarbiter.h xf86Optionstr.h
Daniel Stone's avatar
Daniel Stone committed
60

61 62
DISTCLEANFILES = xf86Build.h
CLEANFILES = $(BUILT_SOURCES)
Daniel Stone's avatar
Daniel Stone committed
63 64 65 66

EXTRA_DIST = \
	compiler.h \
	fourcc.h \
67
	vidmodeproc.h \
Daniel Stone's avatar
Daniel Stone committed
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
	xf86.h \
	xf86Bus.h \
	xf86Config.h \
	xf86InPriv.h \
	xf86Module.h \
	xf86Opt.h \
	xf86PciInfo.h \
	xf86Priv.h \
	xf86Privstr.h \
	xf86Xinput.h \
	xf86cmap.h \
	xf86fbman.h \
	xf86pciBus.h \
	xf86str.h \
	xf86xv.h \
	xf86xvmc.h \
	xf86xvpriv.h \
	xisb.h \
86
	xorgVersion.h \
87
	$(MODEDEFSOURCES) \
88
	modeline2c.awk \
89 90
	xf86VGAarbiter.h \
	xf86VGAarbiterPriv.h \
91
        $(DISTKBDSOURCES)
Daniel Stone's avatar
Daniel Stone committed
92

93 94 95 96
if LNXACPI
XORG_CFLAGS += -DHAVE_ACPI
endif

97
AM_CFLAGS = $(DIX_CFLAGS) $(XORG_CFLAGS)