Remove xcl and CVSROOT.
[profile/ivi/libxcb.git] / src / Makefile.am
1 lib_LTLIBRARIES = libXCB.la
2
3 EXTHEADERS = \
4                 extensions/bigreq.h \
5                 extensions/composite.h \
6                 extensions/damage.h \
7                 extensions/glx.h \
8                 extensions/shm.h \
9                 extensions/shape.h \
10                 extensions/randr.h \
11                 extensions/record.h \
12                 extensions/render.h \
13                 extensions/res.h \
14                 extensions/dpms.h \
15                 extensions/sync.h \
16                 extensions/xc_misc.h \
17                 extensions/xevie.h \
18                 extensions/xf86dri.h \
19                 extensions/xfixes.h \
20                 extensions/xprint.h \
21                 extensions/xv.h \
22                 extensions/xvmc.h
23 EXTSOURCES = \
24                 extensions/bigreq.c \
25                 extensions/composite.c \
26                 extensions/damage.c \
27                 extensions/glx.c \
28                 extensions/shm.c \
29                 extensions/shape.c \
30                 extensions/randr.c \
31                 extensions/record.c \
32                 extensions/render.c \
33                 extensions/res.c \
34                 extensions/dpms.c \
35                 extensions/sync.c \
36                 extensions/xc_misc.c \
37                 extensions/xevie.c \
38                 extensions/xf86dri.c \
39                 extensions/xfixes.c \
40                 extensions/xprint.c \
41                 extensions/xv.c \
42                 extensions/xvmc.c
43 EXTENSIONS = $(EXTSOURCES) $(EXTHEADERS)
44
45 COREHEADERS = xproto.h xcb_types.h
46 CORESOURCES = xproto.c xcb_types.c
47 COREPROTO   = $(CORESOURCES) $(COREHEADERS)
48
49 xcbinclude_HEADERS = xcb.h xcbext.h xcbxlib.h $(COREHEADERS) $(EXTHEADERS)
50
51 CFLAGS =
52 AM_CFLAGS = -include config.h $(CDEBUGFLAGS) $(XCBPROTO_CFLAGS) $(XPROTO_CFLAGS) $(XAU_CFLAGS)
53 libXCB_la_LIBADD = $(XCBPROTO_LIBS) $(XPROTO_LIBS) $(XAU_LIBS)
54 libXCB_la_SOURCES = \
55                 xcb_conn.c xcb_out.c xcb_in.c xcb_ext.c xcb_xid.c \
56                 xcb_list.c xcb_util.c xcb_xlib.c xcb_auth.c xcb_des.c \
57                 $(COREPROTO) $(EXTENSIONS)
58
59 xcb_des.c:
60         touch xcb_des.c
61
62 BUILT_SOURCES = $(COREPROTO) $(EXTENSIONS)
63 CLEANFILES = $(COREPROTO) $(EXTENSIONS)
64 clean-local:
65         rmdir extensions || true
66
67 vpath %.xml $(XCBPROTO_XCBINCLUDEDIR) $(XCBPROTO_XCBINCLUDEDIR)/extensions
68
69 %.h: %.xml c-client.xsl
70         @n=`dirname $*`; test -d $$n || (echo mkdir $$n; mkdir $$n)
71         $(XSLTPROC) --stringparam mode header \
72                     --stringparam base-path $(XCBPROTO_XCBINCLUDEDIR)/ \
73                     --stringparam extension-path \
74                                   $(XCBPROTO_XCBINCLUDEDIR)/extensions/ \
75                     -o $@ $(srcdir)/c-client.xsl $< 
76
77 %.c: %.xml c-client.xsl
78         @n=`dirname $*`; test -d $$n || (echo mkdir $$n; mkdir $$n)
79         $(XSLTPROC) --stringparam mode source \
80                     --stringparam base-path $(XCBPROTO_XCBINCLUDEDIR)/ \
81                     --stringparam extension-path \
82                                   $(XCBPROTO_XCBINCLUDEDIR)/extensions/ \
83                     -o $@ $(srcdir)/c-client.xsl $<