Makefile.am revision 21298544
1lib_LTLIBRARIES = libxcb.la 2 3EXTSOURCES = xproto.c \ 4 bigreq.c \ 5 xc_misc.c 6 7AM_CFLAGS = $(CWARNFLAGS) $(NEEDED_CFLAGS) $(XDMCP_CFLAGS) 8libxcb_la_LIBADD = $(NEEDED_LIBS) $(XDMCP_LIBS) 9libxcb_la_SOURCES = \ 10 xcb_conn.c xcb_out.c xcb_in.c xcb_ext.c xcb_xid.c \ 11 xcb_list.c xcb_util.c xcb_auth.c c_client.py 12nodist_libxcb_la_SOURCES = xproto.c bigreq.c xc_misc.c 13 14# Explanation for -version-info: 15# -version-info current:revision:age 16# The library supports interface (current-age) to interface current. 17# * If you changed the source code at all, increment revision. 18# * If you add an interface, increment current and age and set revision to 0. 19# * If you change or remove an interface, increment current and set revision 20# and age to 0. 21libxcb_la_LDFLAGS = -version-info 2:0:1 -no-undefined @lt_enable_auto_import@ 22 23XCB_LIBS = libxcb.la 24 25# FIXME: find a way to autogenerate this from the XML files. 26 27EXTSOURCES += composite.c 28if BUILD_COMPOSITE 29lib_LTLIBRARIES += libxcb-composite.la 30libxcb_composite_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 31libxcb_composite_la_LIBADD = $(XCB_LIBS) 32nodist_libxcb_composite_la_SOURCES = composite.c composite.h 33endif 34 35EXTSOURCES += damage.c 36if BUILD_DAMAGE 37lib_LTLIBRARIES += libxcb-damage.la 38libxcb_damage_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 39libxcb_damage_la_LIBADD = $(XCB_LIBS) 40nodist_libxcb_damage_la_SOURCES = damage.c damage.h 41endif 42 43EXTSOURCES += dpms.c 44if BUILD_DPMS 45lib_LTLIBRARIES += libxcb-dpms.la 46libxcb_dpms_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 47libxcb_dpms_la_LIBADD = $(XCB_LIBS) 48nodist_libxcb_dpms_la_SOURCES = dpms.c dpms.h 49endif 50 51EXTSOURCES += dri2.c 52if BUILD_DRI2 53lib_LTLIBRARIES += libxcb-dri2.la 54libxcb_dri2_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 55libxcb_dri2_la_LIBADD = $(XCB_LIBS) 56nodist_libxcb_dri2_la_SOURCES = dri2.c dri2.h 57endif 58 59EXTSOURCES += glx.c 60if BUILD_GLX 61lib_LTLIBRARIES += libxcb-glx.la 62libxcb_glx_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 63libxcb_glx_la_LIBADD = $(XCB_LIBS) 64nodist_libxcb_glx_la_SOURCES = glx.c glx.h 65endif 66 67EXTSOURCES += randr.c 68if BUILD_RANDR 69lib_LTLIBRARIES += libxcb-randr.la 70libxcb_randr_la_LDFLAGS = -version-info 1:0:1 -no-undefined @lt_enable_auto_import@ 71libxcb_randr_la_LIBADD = $(XCB_LIBS) 72nodist_libxcb_randr_la_SOURCES = randr.c randr.h 73endif 74 75EXTSOURCES += record.c 76if BUILD_RECORD 77lib_LTLIBRARIES += libxcb-record.la 78libxcb_record_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 79libxcb_record_la_LIBADD = $(XCB_LIBS) 80nodist_libxcb_record_la_SOURCES = record.c record.h 81endif 82 83EXTSOURCES += render.c 84if BUILD_RENDER 85lib_LTLIBRARIES += libxcb-render.la 86libxcb_render_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 87libxcb_render_la_LIBADD = $(XCB_LIBS) 88nodist_libxcb_render_la_SOURCES = render.c render.h 89endif 90 91EXTSOURCES += res.c 92if BUILD_RESOURCE 93lib_LTLIBRARIES += libxcb-res.la 94libxcb_res_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 95libxcb_res_la_LIBADD = $(XCB_LIBS) 96nodist_libxcb_res_la_SOURCES = res.c res.h 97endif 98 99EXTSOURCES += screensaver.c 100if BUILD_SCREENSAVER 101lib_LTLIBRARIES += libxcb-screensaver.la 102libxcb_screensaver_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 103libxcb_screensaver_la_LIBADD = $(XCB_LIBS) 104nodist_libxcb_screensaver_la_SOURCES = screensaver.c screensaver.h 105endif 106 107EXTSOURCES += shape.c 108if BUILD_SHAPE 109lib_LTLIBRARIES += libxcb-shape.la 110libxcb_shape_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 111libxcb_shape_la_LIBADD = $(XCB_LIBS) 112nodist_libxcb_shape_la_SOURCES = shape.c shape.h 113endif 114 115EXTSOURCES += shm.c 116if BUILD_SHM 117lib_LTLIBRARIES += libxcb-shm.la 118libxcb_shm_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 119libxcb_shm_la_LIBADD = $(XCB_LIBS) 120nodist_libxcb_shm_la_SOURCES = shm.c shm.h 121endif 122 123EXTSOURCES += sync.c 124if BUILD_SYNC 125lib_LTLIBRARIES += libxcb-sync.la 126libxcb_sync_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 127libxcb_sync_la_LIBADD = $(XCB_LIBS) 128nodist_libxcb_sync_la_SOURCES = sync.c sync.h 129endif 130 131EXTSOURCES += xevie.c 132if BUILD_XEVIE 133lib_LTLIBRARIES += libxcb-xevie.la 134libxcb_xevie_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 135libxcb_xevie_la_LIBADD = $(XCB_LIBS) 136nodist_libxcb_xevie_la_SOURCES = xevie.c xevie.h 137endif 138 139EXTSOURCES += xf86dri.c 140if BUILD_XFREE86_DRI 141lib_LTLIBRARIES += libxcb-xf86dri.la 142libxcb_xf86dri_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 143libxcb_xf86dri_la_LIBADD = $(XCB_LIBS) 144nodist_libxcb_xf86dri_la_SOURCES = xf86dri.c xf86dri.h 145endif 146 147EXTSOURCES += xfixes.c 148if BUILD_XFIXES 149lib_LTLIBRARIES += libxcb-xfixes.la 150libxcb_xfixes_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 151libxcb_xfixes_la_LIBADD = $(XCB_LIBS) 152nodist_libxcb_xfixes_la_SOURCES = xfixes.c xfixes.h 153endif 154 155EXTSOURCES += xinerama.c 156if BUILD_XINERAMA 157lib_LTLIBRARIES += libxcb-xinerama.la 158libxcb_xinerama_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 159libxcb_xinerama_la_LIBADD = $(XCB_LIBS) 160nodist_libxcb_xinerama_la_SOURCES = xinerama.c xinerama.h 161endif 162 163EXTSOURCES += xinput.c 164if BUILD_XINPUT 165lib_LTLIBRARIES += libxcb-xinput.la 166libxcb_xinput_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 167libxcb_xinput_la_LIBADD = $(XCB_LIBS) 168nodist_libxcb_xinput_la_SOURCES = xinput.c xinput.h 169endif 170 171EXTSOURCES += xkb.c 172if BUILD_XKB 173lib_LTLIBRARIES += libxcb-xkb.la 174libxcb_xkb_la_LDFLAGS = -version-info 0:0:0 -no-undefined 175libxcb_xkb_la_LIBADD = $(XCB_LIBS) 176nodist_libxcb_xkb_la_SOURCES = xkb.c xkb.h 177endif 178 179EXTSOURCES += xprint.c 180if BUILD_XPRINT 181lib_LTLIBRARIES += libxcb-xprint.la 182libxcb_xprint_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 183libxcb_xprint_la_LIBADD = $(XCB_LIBS) 184nodist_libxcb_xprint_la_SOURCES = xprint.c xprint.h 185endif 186 187EXTSOURCES += xselinux.c 188if BUILD_SELINUX 189lib_LTLIBRARIES += libxcb-xselinux.la 190libxcb_xselinux_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 191libxcb_xselinux_la_LIBADD = $(XCB_LIBS) 192nodist_libxcb_xselinux_la_SOURCES = xselinux.c xselinux.h 193endif 194 195EXTSOURCES += xtest.c 196if BUILD_XTEST 197lib_LTLIBRARIES += libxcb-xtest.la 198libxcb_xtest_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 199libxcb_xtest_la_LIBADD = $(XCB_LIBS) 200nodist_libxcb_xtest_la_SOURCES = xtest.c xtest.h 201endif 202 203EXTSOURCES += xv.c 204if BUILD_XV 205lib_LTLIBRARIES += libxcb-xv.la 206libxcb_xv_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 207libxcb_xv_la_LIBADD = $(XCB_LIBS) 208nodist_libxcb_xv_la_SOURCES = xv.c xv.h 209endif 210 211EXTSOURCES += xvmc.c 212if BUILD_XVMC 213lib_LTLIBRARIES += libxcb-xvmc.la 214libxcb_xvmc_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@ 215libxcb_xvmc_la_LIBADD = $(XCB_LIBS) 216nodist_libxcb_xvmc_la_SOURCES = xvmc.c xvmc.h 217endif 218 219 220EXTHEADERS=$(EXTSOURCES:.c=.h) 221xcbinclude_HEADERS = xcb.h xcbext.h 222if XCB_HAVE_WIN32 223xcbinclude_HEADERS += xcb_windefs.h 224endif 225nodist_xcbinclude_HEADERS = $(EXTHEADERS) 226noinst_HEADERS = xcbint.h 227 228STATIC_MANS = man/xcb-examples.3 man/xcb-requests.3 229BUILT_MANS = man/xcb_*.3 230man_MANS = $(STATIC_MANS) $(BUILT_MANS) 231EXTRA_DIST = $(STATIC_MANS) 232 233BUILT_SOURCES = $(EXTSOURCES) $(BUILT_MANS) 234CLEANFILES = $(EXTSOURCES) $(EXTHEADERS) $(BUILT_MANS) 235 236$(EXTSOURCES): c_client.py 237 $(PYTHON) $(srcdir)/c_client.py -p $(XCBPROTO_XCBPYTHONDIR) $(XCBPROTO_XCBINCLUDEDIR)/$(@:.c=.xml) 238 239$(man_MANS): $(EXTSOURCES) 240