Makefile.am revision 1b5d61b8
1noinst_LTLIBRARIES = libcommon.la
2
3if XORG_BUS_PCI
4PCI_SOURCES = xf86pciBus.c xf86VGAarbiter.c xf86VGAarbiter.h \
5              xf86VGAarbiterPriv.h
6endif
7
8if XORG_BUS_SPARC
9SBUS_SOURCES = xf86sbusBus.c
10endif
11
12if XV
13XVSOURCES = xf86xv.c xf86xvmc.c
14XVSDKINCS = xf86xv.h xf86xvmc.h xf86xvpriv.h
15endif
16
17if DGA
18DGASOURCES = xf86DGA.c
19DGA_SDK = dgaproc.h
20endif
21
22if XORG_BUS_PLATFORM
23PLATSOURCES = xf86platformBus.c
24endif
25
26RANDRSOURCES = xf86RandR.c
27
28BUSSOURCES = xf86fbBus.c xf86noBus.c $(PCI_SOURCES) $(SBUS_SOURCES) $(PLATSOURCES)
29
30MODEDEFSOURCES = $(srcdir)/vesamodes $(srcdir)/extramodes
31
32xf86DefModeSet.c: $(srcdir)/modeline2c.awk $(MODEDEFSOURCES)
33	$(AM_V_GEN)cat $(MODEDEFSOURCES) | LC_ALL=C $(AWK) -f $(srcdir)/modeline2c.awk > $@
34	$(AM_V_GEN)echo >> $@
35
36BUILT_SOURCES = xf86DefModeSet.c
37
38AM_LDFLAGS = -r
39libcommon_la_SOURCES = xf86Configure.c xf86Bus.c xf86Config.c \
40                      xf86Cursor.c $(DGASOURCES) xf86DPMS.c \
41                      xf86Events.c xf86Globals.c xf86AutoConfig.c \
42                      xf86Option.c xf86Init.c \
43                      xf86VidMode.c xf86fbman.c xf86cmap.c \
44                      xf86Helper.c xf86PM.c xf86Xinput.c xisb.c \
45                      xf86Mode.c xorgHelper.c xf86Extensions.h \
46		      xf86Extensions.c $(XF86VMODESOURCES) \
47                      $(XVSOURCES) $(BUSSOURCES) $(RANDRSOURCES)
48nodist_libcommon_la_SOURCES = xf86DefModeSet.c xf86Build.h
49libcommon_la_LIBADD = $(top_builddir)/config/libconfig.la
50
51AM_CPPFLAGS = $(XORG_INCS) -I$(srcdir)/../ddc -I$(srcdir)/../i2c \
52	   -I$(srcdir)/../loader -I$(srcdir)/../parser \
53           -I$(srcdir)/../vbe -I$(srcdir)/../int10 \
54	   -I$(srcdir)/../vgahw -I$(srcdir)/../dixmods/extmod \
55	   -I$(srcdir)/../modes -I$(srcdir)/../ramdac -I$(srcdir)/../dri2
56
57sdk_HEADERS = compiler.h fourcc.h xf86.h xf86Module.h xf86Opt.h \
58              xf86PciInfo.h xf86Priv.h xf86Privstr.h \
59              xf86cmap.h xf86fbman.h xf86str.h xf86Xinput.h xisb.h \
60              $(XVSDKINCS) $(XF86VMODE_SDK) $(DGA_SDK) xorgVersion.h \
61              xf86sbusBus.h xf86VGAarbiter.h xf86Optionstr.h \
62	      xf86platformBus.h xf86MatchDrivers.h \
63	      xaarop.h
64
65DISTCLEANFILES = xf86Build.h
66CLEANFILES = $(BUILT_SOURCES)
67
68EXTRA_DIST = \
69	compiler.h \
70	fourcc.h \
71	xf86.h \
72	xf86Bus.h \
73	xf86Config.h \
74	xf86InPriv.h \
75	xf86Module.h \
76	xf86Opt.h \
77	xf86PciInfo.h \
78	xf86Priv.h \
79	xf86Privstr.h \
80	xf86Xinput.h \
81	xf86cmap.h \
82	xf86fbman.h \
83	xf86pciBus.h \
84	xf86str.h \
85	xf86xv.h \
86	xf86xvmc.h \
87	xf86xvpriv.h \
88	xisb.h \
89	xorgVersion.h \
90	$(MODEDEFSOURCES) \
91	modeline2c.awk \
92	xf86VGAarbiter.h \
93	xf86VGAarbiterPriv.h \
94        $(DISTKBDSOURCES) \
95	xaarop.h
96
97if LNXACPI
98XORG_CFLAGS += -DHAVE_ACPI
99endif
100
101if NEED_DBUS
102XORG_CFLAGS += $(DBUS_CFLAGS)
103endif
104
105AM_CFLAGS = $(DIX_CFLAGS) $(XORG_CFLAGS)
106