error: add tbm_error.h
[platform/core/uifw/libtbm.git] / src / Makefile.am
1 SUBDIRS =
2
3 AM_CFLAGS = \
4         $(WARN_CFLAGS) \
5         -I./ \
6         -I$(top_srcdir) \
7         -I$(top_srcdir)/src \
8         @LIBTBM_CFLAGS@ \
9         $(CFLAGS)
10
11 libtbm_la_LTLIBRARIES = libtbm.la
12 libtbm_ladir = $(libdir)
13 libtbm_la_LDFLAGS = $(LDFLAGS) -version-number 1:0:0 -no-undefined
14 libtbm_la_LIBADD = @LIBTBM_LIBS@ @CLOCK_LIB@ -ldl
15
16 libtbm_la_SOURCES = \
17         tbm_surface_internal.c \
18         tbm_surface.c \
19         tbm_surface_queue.c \
20         tbm_bufmgr_backend.c \
21         tbm_bufmgr.c \
22         tbm_bo.c \
23         tbm_drm_helper_server.c \
24         tbm_drm_helper_client.c \
25         tbm_sync.c \
26         tbm_log.c \
27         tbm_error.c \
28         tbm_backend.c
29
30 nodist_libtbm_la_SOURCES =              \
31         wayland-tbm-drm-auth-server-protocol.h  \
32         wayland-tbm-drm-auth-client-protocol.h  \
33         wayland-tbm-drm-auth-protocol.c
34
35 %-protocol.c : $(top_srcdir)/protocol/%.xml
36         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
37
38 %-server-protocol.h : $(top_srcdir)/protocol/%.xml
39         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
40
41 %-client-protocol.h : $(top_srcdir)/protocol/%.xml
42         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
43
44 BUILT_SOURCES = $(nodist_libtbm_la_SOURCES)
45
46 libtbmincludedir=$(includedir)
47 libtbminclude_HEADERS = tbm_bufmgr.h \
48                                                 tbm_bo.h \
49                                                 tbm_surface.h \
50                                                 tbm_bufmgr_backend.h \
51                                                 tbm_type.h \
52                                                 tbm_type_common.h \
53                                                 tbm_surface_internal.h \
54                                                 tbm_surface_queue.h \
55                                                 tbm_drm_helper.h \
56                                                 tbm_sync.h \
57                                                 tbm_log.h \
58                                                 tbm_error.h \
59                                                 tbm_backend.h
60
61 CLEANFILES = $(BUILT_SOURCES)