Makefile.am revision 05b261ec
1# libXext.la: includes all extensions and should be linked into Xvfb, 2# Xnest, Xdmx and Xprt 3# libXextbuiltin.la: includes those extensions that are built directly into 4# Xorg by default 5# libXextmodule.la: includes those extensions that are built into a module 6# that Xorg loads 7if XORG 8noinst_LTLIBRARIES = libXext.la libXextbuiltin.la libXextmodule.la 9else 10noinst_LTLIBRARIES = libXext.la 11endif 12 13INCLUDES = -I$(top_srcdir)/hw/xfree86/dixmods/extmod 14 15AM_CFLAGS = $(DIX_CFLAGS) 16 17if XORG 18sdk_HEADERS = xvdix.h xvmcext.h 19endif 20 21# Sources always included in libXextbuiltin.la & libXext.la 22BUILTIN_SRCS = \ 23 shape.c \ 24 sleepuntil.c \ 25 sleepuntil.h \ 26 xtest.c 27 28# Sources always included in libXextmodule.la & libXext.la 29MODULE_SRCS = \ 30 bigreq.c \ 31 mitmisc.c \ 32 shape.c \ 33 sync.c \ 34 xcmisc.c 35 36# Extra configuration files ship with some extensions 37SERVERCONFIG_DATA = 38 39# Optional sources included if extension enabled by configure.ac rules 40 41# MIT Shared Memory extension 42MITSHM_SRCS = shm.c shmint.h 43if MITSHM 44BUILTIN_SRCS += $(MITSHM_SRCS) 45endif 46 47# XVideo extension 48XV_SRCS = xvmain.c xvdisp.c xvmc.c xvdix.h xvmcext.h xvdisp.h 49if XV 50MODULE_SRCS += $(XV_SRCS) 51endif 52 53# XResource extension: lets clients get data about per-client resource usage 54RES_SRCS = xres.c 55if RES 56MODULE_SRCS += $(RES_SRCS) 57endif 58 59# MIT ScreenSaver extension 60SCREENSAVER_SRCS = saver.c 61if SCREENSAVER 62MODULE_SRCS += $(SCREENSAVER_SRCS) 63endif 64 65# Xinerama extension: making multiple video devices act as one virtual screen 66XINERAMA_SRCS = panoramiX.c panoramiX.h panoramiXh.h panoramiXsrv.h panoramiXprocs.c panoramiXSwap.c 67if XINERAMA 68BUILTIN_SRCS += $(XINERAMA_SRCS) 69endif 70 71# X-ACE extension: provides hooks for building security policy extensions 72# like XC-Security, X-SELinux & XTSol 73XACE_SRCS = xace.c xace.h xacestr.h 74if XACE 75BUILTIN_SRCS += $(XACE_SRCS) 76endif 77 78# Security extension: multi-level security to protect clients from each other 79XCSECURITY_SRCS = security.c securitysrv.h 80if XCSECURITY 81BUILTIN_SRCS += $(XCSECURITY_SRCS) 82 83SERVERCONFIG_DATA += SecurityPolicy 84AM_CFLAGS += -DDEFAULTPOLICYFILE=\"$(SERVERCONFIGdir)/SecurityPolicy\" 85endif 86 87XCALIBRATE_SRCS = xcalibrate.c 88if XCALIBRATE 89BUILTIN_SRCS += $(XCALIBRATE_SRCS) 90# XCalibrare needs tslib 91endif 92 93# X EVent Interception Extension: allows accessibility helpers & composite 94# managers to intercept events from input devices and transform as needed 95# before the clients see them. 96XEVIE_SRCS = xevie.c 97if XEVIE 98BUILTIN_SRCS += $(XEVIE_SRCS) 99endif 100 101# XPrint: Printing via X Protocol 102XPRINT_SRCS = xprint.c 103if XPRINT 104BUILTIN_SRCS += $(XPRINT_SRCS) 105endif 106 107# AppGroup 108APPGROUP_SRCS = appgroup.c appgroup.h 109if APPGROUP 110BUILTIN_SRCS += $(APPGROUP_SRCS) 111endif 112 113# Colormap Utilization Protocol: Less flashing when switching between 114# PsuedoColor apps and better sharing of limited colormap slots 115CUP_SRCS = cup.c 116if CUP 117MODULE_SRCS += $(CUP_SRCS) 118endif 119 120# Extended Visual Information 121EVI_SRCS = EVI.c sampleEVI.c EVIstruct.h 122if EVI 123MODULE_SRCS += $(EVI_SRCS) 124endif 125 126# Multi-buffering extension 127MULTIBUFFER_SRCS = mbuf.c 128EXTRA_MULTIBUFFER_SRCS = mbufbf.c mbufpx.c 129if MULTIBUFFER 130MODULE_SRCS += $(MULTIBUFFER_SRCS) 131endif 132 133# Font Cache extension 134FONTCACHE_SRCS = fontcache.c 135if FONTCACHE 136MODULE_SRCS += $(FONTCACHE_SRCS) 137endif 138 139# XF86 Big Font extension 140BIGFONT_SRCS = xf86bigfont.c 141if XF86BIGFONT 142BUILTIN_SRCS += $(BIGFONT_SRCS) 143endif 144 145# DPMS extension 146DPMS_SRCS = dpms.c dpmsproc.h 147if DPMSExtension 148MODULE_SRCS += $(DPMS_SRCS) 149endif 150 151# Now take all of the above, mix well, bake for 10 minutes and get libXext*.la 152 153libXext_la_SOURCES = $(BUILTIN_SRCS) $(MODULE_SRCS) 154 155if XORG 156libXextbuiltin_la_SOURCES = $(BUILTIN_SRCS) 157 158libXextmodule_la_SOURCES = $(MODULE_SRCS) 159endif 160 161EXTRA_DIST = \ 162 $(SERVERCONFIG_DATA) \ 163 $(MITSHM_SRCS) \ 164 $(XV_SRCS) \ 165 $(RES_SRCS) \ 166 $(SCREENSAVER_SRCS) \ 167 $(XACE_SRCS) \ 168 $(XCSECURITY_SRCS) \ 169 $(XCALIBRATE_SRCS) \ 170 $(XINERAMA_SRCS) \ 171 $(XEVIE_SRCS) \ 172 $(XPRINT_SRCS) \ 173 $(APPGROUP_SRCS) \ 174 $(CUP_SRCS) \ 175 $(EVI_SRCS) \ 176 $(MULTIBUFFER_SRCS) \ 177 $(EXTRA_MULTIBUFFER_SRCS) \ 178 $(FONTCACHE_SRCS) \ 179 $(BIGFONT_SRCS) \ 180 $(DPMS_SRCS) 181 182