summaryrefslogtreecommitdiff
path: root/dix/Makefile.am
blob: ab702f7901a0f4b3e44ecbe56b5303ef92844f6a (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
noinst_LTLIBRARIES = libdix.la libmain.la

AM_CFLAGS = $(DIX_CFLAGS)

libmain_la_SOURCES =    \
	main.c

libdix_la_SOURCES = 	\
	atom.c		\
	colormap.c	\
	cursor.c	\
	deprecated.c	\
	devices.c	\
	dispatch.c	\
	dispatch.h	\
	dixfonts.c	\
	dixutils.c	\
	enterleave.c	\
	enterleave.h	\
	events.c	\
	eventconvert.h  \
	eventconvert.c  \
	extension.c	\
	ffs.c		\
	gc.c		\
	getevents.c	\
	globals.c	\
	glyphcurs.c	\
	grabs.c		\
	initatoms.c	\
	inpututils.c	\
	pixmap.c	\
	privates.c	\
	property.c	\
	ptrveloc.c	\
	registry.c	\
	resource.c	\
	selection.c	\
	swaprep.c	\
	swapreq.c	\
	tables.c	\
	window.c

EXTRA_DIST = buildatoms BuiltInAtoms Xserver.d Xserver-dtrace.h.in

# Install list of protocol names
miscconfigdir = $(SERVER_MISC_CONFIG_PATH)
dist_miscconfig_DATA = protocol.txt

if XSERVER_DTRACE
# Generate dtrace header file for C sources to include
BUILT_SOURCES = Xserver-dtrace.h

Xserver-dtrace.h: $(srcdir)/Xserver.d
	$(DTRACE) -C -h -o $@ -s $(srcdir)/Xserver.d \
		|| cp Xserver-dtrace.h.in $@

# Generate dtrace object code for probes in libdix
dtrace-dix.o: $(top_srcdir)/dix/Xserver.d $(am_libdix_la_OBJECTS)
	$(DTRACE) -G -C -o $@ -s $(top_srcdir)/dix/Xserver.d .libs/*.o

noinst_PROGRAMS = dix.O

dix.O: dtrace-dix.o $(am_libdix_la_OBJECTS)
	ld -r -o $@ .libs/*.o
endif

dix.c:
	touch $@

CLEANFILES = dix.c