1 lib_LTLIBRARIES = libXCB.la \
10 libXCBscreensaver.la \
23 extensions/composite.h \
31 extensions/screensaver.h \
35 extensions/xc_misc.h \
37 extensions/xf86dri.h \
44 extensions/composite.c \
52 extensions/screensaver.c \
56 extensions/xc_misc.c \
58 extensions/xf86dri.c \
63 EXTENSIONS = $(EXTSOURCES) $(EXTHEADERS)
65 ESSENTIAL_EXTENSIONS = \
68 extensions/xc_misc.h \
71 COREHEADERS = xproto.h xcb_types.h
72 CORESOURCES = xproto.c xcb_types.c
73 COREPROTO = $(CORESOURCES) $(COREHEADERS)
75 xcbinclude_HEADERS = xcb.h xcbext.h xcbxlib.h $(COREHEADERS) $(EXTHEADERS)
76 noinst_HEADERS = xcbint.h
79 AM_CFLAGS = $(COPTFLAGS) $(CWARNFLAGS) $(CDEBUGFLAGS) $(XCBPROTO_CFLAGS) $(XPROTO_CFLAGS) $(XAU_CFLAGS) $(XDMCP_CFLAGS)
80 libXCB_la_LIBADD = $(XCBPROTO_LIBS) $(XPROTO_LIBS) $(XAU_LIBS) $(XDMCP_LIBS)
82 xcb_conn.c xcb_out.c xcb_in.c xcb_ext.c xcb_xid.c \
83 xcb_list.c xcb_util.c xcb_xlib.c xcb_auth.c \
84 $(COREPROTO) $(ESSENTIAL_EXTENSIONS)
86 BUILT_SOURCES = $(COREPROTO) $(EXTENSIONS)
87 CLEANFILES = $(COREPROTO) $(EXTENSIONS)
89 rmdir extensions || true
91 XCB_LIBS = $(top_builddir)/src/libXCB.la
93 libXCBcomposite_la_LIBADD = $(XCB_LIBS)
94 libXCBcomposite_la_SOURCES = extensions/composite.c extensions/composite.h
95 libXCBdamage_la_LIBADD = $(XCB_LIBS)
96 libXCBdamage_la_SOURCES = extensions/damage.c extensions/damage.h
97 libXCBdpms_la_LIBADD = $(XCB_LIBS)
98 libXCBdpms_la_SOURCES = extensions/dpms.c extensions/dpms.h
99 libXCBglx_la_LIBADD = $(XCB_LIBS)
100 libXCBglx_la_SOURCES = extensions/glx.c extensions/glx.h
101 libXCBrandr_la_LIBADD = $(XCB_LIBS)
102 libXCBrandr_la_SOURCES = extensions/randr.c extensions/randr.h
103 libXCBrecord_la_LIBADD = $(XCB_LIBS)
104 libXCBrecord_la_SOURCES = extensions/record.c extensions/record.h
105 libXCBrender_la_LIBADD = $(XCB_LIBS)
106 libXCBrender_la_SOURCES = extensions/render.c extensions/render.h
107 libXCBres_la_LIBADD = $(XCB_LIBS)
108 libXCBres_la_SOURCES = extensions/res.c extensions/res.h
109 libXCBscreensaver_la_LIBADD = $(XCB_LIBS)
110 libXCBscreensaver_la_SOURCES = extensions/screensaver.c extensions/screensaver.h
111 libXCBshape_la_LIBADD = $(XCB_LIBS)
112 libXCBshape_la_SOURCES = extensions/shape.c extensions/shape.h
113 libXCBshm_la_LIBADD = $(XCB_LIBS)
114 libXCBshm_la_SOURCES = extensions/shm.c extensions/shm.h
115 libXCBsync_la_LIBADD = $(XCB_LIBS)
116 libXCBsync_la_SOURCES = extensions/sync.c extensions/sync.h
117 libXCBxevie_la_LIBADD = $(XCB_LIBS)
118 libXCBxevie_la_SOURCES = extensions/xevie.c extensions/xevie.h
119 libXCBxf86dri_la_LIBADD = $(XCB_LIBS)
120 libXCBxf86dri_la_SOURCES = extensions/xf86dri.c extensions/xf86dri.h
121 libXCBxfixes_la_LIBADD = $(XCB_LIBS)
122 libXCBxfixes_la_SOURCES = extensions/xfixes.c extensions/xfixes.h
123 libXCBxprint_la_LIBADD = $(XCB_LIBS)
124 libXCBxprint_la_SOURCES = extensions/xprint.c extensions/xprint.h
125 libXCBxv_la_LIBADD = $(XCB_LIBS)
126 libXCBxv_la_SOURCES = extensions/xv.c extensions/xv.h
127 libXCBxvmc_la_LIBADD = $(XCB_LIBS)
128 libXCBxvmc_la_SOURCES = extensions/xvmc.c extensions/xvmc.h
130 vpath %.xml $(XCBPROTO_XCBINCLUDEDIR) $(XCBPROTO_XCBINCLUDEDIR)/extensions
132 %.h: %.xml c-client.xsl
133 @n=`dirname $*`; test -d $$n || (echo mkdir $$n; mkdir $$n)
134 $(XSLTPROC) --stringparam mode header \
135 --stringparam base-path $(XCBPROTO_XCBINCLUDEDIR)/ \
136 --stringparam extension-path \
137 $(XCBPROTO_XCBINCLUDEDIR)/extensions/ \
138 -o $@ $(srcdir)/c-client.xsl $<
140 %.c: %.xml c-client.xsl
141 @n=`dirname $*`; test -d $$n || (echo mkdir $$n; mkdir $$n)
142 $(XSLTPROC) --stringparam mode source \
143 --stringparam base-path $(XCBPROTO_XCBINCLUDEDIR)/ \
144 --stringparam extension-path \
145 $(XCBPROTO_XCBINCLUDEDIR)/extensions/ \
146 -o $@ $(srcdir)/c-client.xsl $<