Commit | Line | Data |
---|---|---|
a09e091a JB |
1 | noinst_LTLIBRARIES = libXext.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 | # Sources always included in libXextbuiltin.la & libXext.la | |
10 | BUILTIN_SRCS = \ | |
11 | bigreq.c \ | |
12 | geext.c \ | |
13 | shape.c \ | |
14 | sleepuntil.c \ | |
15 | sleepuntil.h \ | |
16 | sync.c \ | |
17 | syncsdk.h \ | |
18 | syncsrv.h \ | |
19 | xcmisc.c \ | |
20 | xtest.c | |
21 | BUILTIN_LIBS = | |
22 | ||
23 | # Optional sources included if extension enabled by configure.ac rules | |
24 | ||
25 | # MIT Shared Memory extension | |
26 | MITSHM_SRCS = shm.c shmint.h | |
27 | if MITSHM | |
28 | BUILTIN_SRCS += $(MITSHM_SRCS) | |
29 | endif | |
30 | ||
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 | endif | |
36 | ||
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 | endif | |
42 | ||
43 | # MIT ScreenSaver extension | |
44 | SCREENSAVER_SRCS = saver.c | |
45 | if SCREENSAVER | |
46 | BUILTIN_SRCS += $(SCREENSAVER_SRCS) | |
47 | endif | |
48 | ||
49 | # Xinerama extension: making multiple video devices act as one virtual screen | |
50 | XINERAMA_SRCS = panoramiX.c panoramiX.h panoramiXh.h panoramiXsrv.h panoramiXprocs.c panoramiXSwap.c | |
51 | if XINERAMA | |
52 | BUILTIN_SRCS += $(XINERAMA_SRCS) | |
53 | if XORG | |
54 | sdk_HEADERS += panoramiXsrv.h panoramiX.h | |
55 | endif | |
56 | endif | |
57 | ||
58 | # X-ACE extension: provides hooks for building security policy extensions | |
59 | # like XC-Security, X-SELinux & XTSol | |
60 | XACE_SRCS = xace.c xace.h xacestr.h | |
61 | if XACE | |
62 | BUILTIN_SRCS += $(XACE_SRCS) | |
63 | if XORG | |
64 | sdk_HEADERS += xace.h xacestr.h | |
65 | endif | |
66 | endif | |
67 | ||
68 | # SELinux extension: provides SELinux policy support for X objects | |
69 | # requires X-ACE extension | |
70 | XSELINUX_SRCS = xselinux_ext.c xselinux_hooks.c xselinux_label.c xselinux.h xselinuxint.h | |
71 | if XSELINUX | |
72 | BUILTIN_SRCS += $(XSELINUX_SRCS) | |
73 | BUILTIN_LIBS += $(SELINUX_LIBS) | |
74 | endif | |
75 | ||
76 | # Security extension: multi-level security to protect clients from each other | |
77 | XCSECURITY_SRCS = security.c securitysrv.h | |
78 | if XCSECURITY | |
79 | BUILTIN_SRCS += $(XCSECURITY_SRCS) | |
80 | endif | |
81 | ||
82 | # XF86 Big Font extension | |
83 | BIGFONT_SRCS = xf86bigfont.c xf86bigfontsrv.h | |
84 | if XF86BIGFONT | |
85 | BUILTIN_SRCS += $(BIGFONT_SRCS) | |
86 | endif | |
87 | ||
88 | # DPMS extension | |
89 | DPMS_SRCS = dpms.c dpmsproc.h | |
90 | if DPMSExtension | |
91 | BUILTIN_SRCS += $(DPMS_SRCS) | |
92 | endif | |
93 | ||
94 | # Now take all of the above, mix well, bake for 10 minutes and get libXext*.la | |
95 | ||
96 | libXext_la_SOURCES = $(BUILTIN_SRCS) | |
97 | libXext_la_LIBADD = $(BUILTIN_LIBS) | |
98 | ||
99 | EXTRA_DIST = \ | |
100 | $(MITSHM_SRCS) \ | |
101 | $(XV_SRCS) \ | |
102 | $(RES_SRCS) \ | |
103 | $(SCREENSAVER_SRCS) \ | |
104 | $(XACE_SRCS) \ | |
105 | $(XCSECURITY_SRCS) \ | |
106 | $(XSELINUX_SRCS) \ | |
107 | $(XINERAMA_SRCS) \ | |
108 | $(BIGFONT_SRCS) \ | |
109 | $(DPMS_SRCS) \ | |
110 | $(GE_SRCS) | |
111 |