add LIST_DEINIT of bo_list and surf_list
[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
10 libtbm_la_LTLIBRARIES = libtbm.la
11 libtbm_ladir = $(libdir)
12 libtbm_la_LDFLAGS = -version-number 1:0:0 -no-undefined
13 libtbm_la_LIBADD = @LIBTBM_LIBS@ @CLOCK_LIB@ -ldl
14
15 libtbm_la_SOURCES = \
16         tbm_surface_internal.c \
17         tbm_surface.c \
18         tbm_surface_queue.c \
19         tbm_bufmgr_backend.c \
20         tbm_bufmgr.c \
21         tbm_drm_helper_server.c \
22         tbm_drm_helper_client.c \
23         tbm_sync.c
24
25 nodist_libtbm_la_SOURCES =              \
26         wayland-tbm-drm-auth-server-protocol.h  \
27         wayland-tbm-drm-auth-client-protocol.h  \
28         wayland-tbm-drm-auth-protocol.c
29
30 %-protocol.c : $(top_srcdir)/protocol/%.xml
31         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
32
33 %-server-protocol.h : $(top_srcdir)/protocol/%.xml
34         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
35
36 %-client-protocol.h : $(top_srcdir)/protocol/%.xml
37         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
38
39 BUILT_SOURCES = $(nodist_libtbm_la_SOURCES)
40
41 libtbmincludedir=$(includedir)
42 libtbminclude_HEADERS = tbm_bufmgr.h tbm_surface.h tbm_bufmgr_backend.h tbm_type.h tbm_surface_internal.h tbm_surface_queue.h tbm_drm_helper.h tbm_sync.h
43
44 CLEANFILES = $(BUILT_SOURCES)