Makefile.am 2.53 KB
Newer Older
1
noinst_LTLIBRARIES = libXext.la libXextdpmsstubs.la
2

3
AM_CFLAGS = $(DIX_CFLAGS)
4

5
if XORG
6
sdk_HEADERS = xvdix.h xvmcext.h geext.h geint.h shmint.h syncsdk.h
7
endif
8

9 10
# Sources always included in libXextbuiltin.la & libXext.la
BUILTIN_SRCS =			\
11
	bigreq.c		\
12
        geext.c			\
13 14 15
	shape.c			\
	sleepuntil.c		\
	sleepuntil.h		\
16
	sync.c			\
17
	syncsdk.h		\
18
	syncsrv.h		\
19
	xcmisc.c		\
20
	xtest.c
21
BUILTIN_LIBS =
22 23 24 25

# Optional sources included if extension enabled by configure.ac rules

# MIT Shared Memory extension
26
MITSHM_SRCS = shm.c shmint.h
27 28
if MITSHM
BUILTIN_SRCS += $(MITSHM_SRCS)
29 30
endif

31
# XVideo extension
32
XV_SRCS = xvmain.c xvdisp.c xvmc.c xvdix.h xvmcext.h xvdisp.h
33
if XV
34
BUILTIN_SRCS  += $(XV_SRCS)
35 36
endif

37
# XResource extension: lets clients get data about per-client resource usage
38
RES_SRCS = hashtable.c hashtable.h xres.c
39
if RES
40
BUILTIN_SRCS  += $(RES_SRCS)
41 42
endif

43
# MIT ScreenSaver extension
44
SCREENSAVER_SRCS = saver.c
45
if SCREENSAVER
46
BUILTIN_SRCS  += $(SCREENSAVER_SRCS)
47 48
endif

49 50 51 52
# Xinerama extension: making multiple video devices act as one virtual screen
XINERAMA_SRCS = panoramiX.c panoramiX.h panoramiXh.h panoramiXsrv.h panoramiXprocs.c panoramiXSwap.c 
if XINERAMA
BUILTIN_SRCS += $(XINERAMA_SRCS)
53 54 55
if XORG
sdk_HEADERS += panoramiXsrv.h panoramiX.h
endif
56 57
endif

58 59 60 61 62
# X-ACE extension: provides hooks for building security policy extensions
# like XC-Security, X-SELinux & XTSol
XACE_SRCS = xace.c xace.h xacestr.h
if XACE
BUILTIN_SRCS += $(XACE_SRCS)
63 64 65
if XORG
sdk_HEADERS += xace.h xacestr.h
endif
66 67
endif

68 69
# SELinux extension: provides SELinux policy support for X objects
# requires X-ACE extension
70
XSELINUX_SRCS = xselinux_ext.c xselinux_hooks.c xselinux_label.c xselinux.h xselinuxint.h
71
if XSELINUX
72 73
BUILTIN_SRCS += $(XSELINUX_SRCS)
BUILTIN_LIBS += $(SELINUX_LIBS)
74 75
endif

76
# Security extension: multi-level security to protect clients from each other
Daniel Stone's avatar
Daniel Stone committed
77
XCSECURITY_SRCS = security.c securitysrv.h
78 79
if XCSECURITY   
BUILTIN_SRCS += $(XCSECURITY_SRCS)
80 81
endif

82
# XF86 Big Font extension
83
BIGFONT_SRCS = xf86bigfont.c xf86bigfontsrv.h
84
if XF86BIGFONT
85
BUILTIN_SRCS += $(BIGFONT_SRCS)
86 87 88 89 90
endif

# DPMS extension
DPMS_SRCS = dpms.c dpmsproc.h
if DPMSExtension
91
BUILTIN_SRCS += $(DPMS_SRCS)
92 93
endif

94 95
# Now take all of the above, mix well, bake for 10 minutes and get libXext*.la

96 97
libXext_la_SOURCES =		$(BUILTIN_SRCS)
libXext_la_LIBADD =		$(BUILTIN_LIBS)
98

99 100
libXextdpmsstubs_la_SOURCES = dpmsstubs.c

101
EXTRA_DIST = \
102 103 104 105
	$(MITSHM_SRCS) \
	$(XV_SRCS) \
	$(RES_SRCS) \
	$(SCREENSAVER_SRCS) \
106
	$(XACE_SRCS) \
107
	$(XCSECURITY_SRCS) \
108
	$(XSELINUX_SRCS) \
109
	$(XINERAMA_SRCS) \
110
	$(BIGFONT_SRCS) \
111 112
	$(DPMS_SRCS) \
        $(GE_SRCS)
113