Add xcbint.h to noinst_HEADERS, so it gets distributed.
[profile/ivi/libxcb.git] / src / Makefile.am
1 lib_LTLIBRARIES = libXCB.la \
2                   libXCBcomposite.la \
3                   libXCBdamage.la \
4                   libXCBdpms.la \
5                   libXCBglx.la \
6                   libXCBrandr.la \
7                   libXCBrecord.la \
8                   libXCBrender.la \
9                   libXCBres.la \
10                   libXCBscreensaver.la \
11                   libXCBshape.la \
12                   libXCBshm.la \
13                   libXCBsync.la \
14                   libXCBxevie.la \
15                   libXCBxf86dri.la \
16                   libXCBxfixes.la \
17                   libXCBxprint.la \
18                   libXCBxv.la \
19                   libXCBxvmc.la
20
21 EXTHEADERS = \
22                 extensions/bigreq.h \
23                 extensions/composite.h \
24                 extensions/damage.h \
25                 extensions/dpms.h \
26                 extensions/glx.h \
27                 extensions/randr.h \
28                 extensions/record.h \
29                 extensions/render.h \
30                 extensions/res.h \
31                 extensions/screensaver.h \
32                 extensions/shape.h \
33                 extensions/shm.h \
34                 extensions/sync.h \
35                 extensions/xc_misc.h \
36                 extensions/xevie.h \
37                 extensions/xf86dri.h \
38                 extensions/xfixes.h \
39                 extensions/xprint.h \
40                 extensions/xv.h \
41                 extensions/xvmc.h
42 EXTSOURCES = \
43                 extensions/bigreq.c \
44                 extensions/composite.c \
45                 extensions/damage.c \
46                 extensions/dpms.c \
47                 extensions/glx.c \
48                 extensions/randr.c \
49                 extensions/record.c \
50                 extensions/render.c \
51                 extensions/res.c \
52                 extensions/screensaver.c \
53                 extensions/shape.c \
54                 extensions/shm.c \
55                 extensions/sync.c \
56                 extensions/xc_misc.c \
57                 extensions/xevie.c \
58                 extensions/xf86dri.c \
59                 extensions/xfixes.c \
60                 extensions/xprint.c \
61                 extensions/xv.c \
62                 extensions/xvmc.c
63 EXTENSIONS = $(EXTSOURCES) $(EXTHEADERS)
64
65 ESSENTIAL_EXTENSIONS = \
66                 extensions/bigreq.h \
67                 extensions/bigreq.c \
68                 extensions/xc_misc.h \
69                 extensions/xc_misc.c
70
71 COREHEADERS = xproto.h xcb_types.h
72 CORESOURCES = xproto.c xcb_types.c
73 COREPROTO   = $(CORESOURCES) $(COREHEADERS)
74
75 xcbinclude_HEADERS = xcb.h xcbext.h xcbxlib.h $(COREHEADERS) $(EXTHEADERS)
76 noinst_HEADERS = xcbint.h
77
78 CFLAGS =
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)
81 libXCB_la_SOURCES = \
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)
85
86 BUILT_SOURCES = $(COREPROTO) $(EXTENSIONS)
87 CLEANFILES = $(COREPROTO) $(EXTENSIONS)
88 clean-local:
89         rmdir extensions || true
90
91 XCB_LIBS = $(top_builddir)/src/libXCB.la
92
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
129
130 vpath %.xml $(XCBPROTO_XCBINCLUDEDIR) $(XCBPROTO_XCBINCLUDEDIR)/extensions
131
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 $< 
139
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 $<