make the tbm_backend file
[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_backend.c
28
29 nodist_libtbm_la_SOURCES =              \
30         wayland-tbm-drm-auth-server-protocol.h  \
31         wayland-tbm-drm-auth-client-protocol.h  \
32         wayland-tbm-drm-auth-protocol.c
33
34 %-protocol.c : $(top_srcdir)/protocol/%.xml
35         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
36
37 %-server-protocol.h : $(top_srcdir)/protocol/%.xml
38         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
39
40 %-client-protocol.h : $(top_srcdir)/protocol/%.xml
41         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
42
43 BUILT_SOURCES = $(nodist_libtbm_la_SOURCES)
44
45 libtbmincludedir=$(includedir)
46 libtbminclude_HEADERS = tbm_bufmgr.h \
47                                                 tbm_bo.h \
48                                                 tbm_surface.h \
49                                                 tbm_bufmgr_backend.h \
50                                                 tbm_type.h \
51                                                 tbm_type_int.h \
52                                                 tbm_surface_internal.h \
53                                                 tbm_surface_queue.h \
54                                                 tbm_drm_helper.h \
55                                                 tbm_sync.h \
56                                                 tbm_log.h \
57                                                 tbm_backend.h
58
59 CLEANFILES = $(BUILT_SOURCES)