tbm_module: add tbm_module.c 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)/include \
8         -I$(top_srcdir)/src \
9         @LIBTBM_CFLAGS@ \
10         $(CFLAGS)
11
12 libtbm_la_LTLIBRARIES = libtbm.la
13 libtbm_ladir = $(libdir)
14 libtbm_la_LDFLAGS = $(LDFLAGS) -version-number 1:0:0 -no-undefined
15 libtbm_la_LIBADD = @LIBTBM_LIBS@ @CLOCK_LIB@ -ldl
16
17 libtbm_la_SOURCES = \
18         tbm_surface_internal.c \
19         tbm_surface.c \
20         tbm_surface_queue.c \
21         tbm_bufmgr_backend.c \
22         tbm_bufmgr.c \
23         tbm_bo.c \
24         tbm_drm_helper_server.c \
25         tbm_drm_helper_client.c \
26         tbm_sync.c \
27         tbm_log.c \
28         tbm_module.c \
29         tbm_error.c \
30         tbm_backend.c \
31         tbm_dummy_display.c
32
33 nodist_libtbm_la_SOURCES =              \
34         wayland-tbm-drm-auth-server-protocol.h  \
35         wayland-tbm-drm-auth-client-protocol.h  \
36         wayland-tbm-drm-auth-protocol.c
37
38 %-protocol.c : $(top_srcdir)/protocol/%.xml
39         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
40
41 %-server-protocol.h : $(top_srcdir)/protocol/%.xml
42         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
43
44 %-client-protocol.h : $(top_srcdir)/protocol/%.xml
45         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
46
47 BUILT_SOURCES = $(nodist_libtbm_la_SOURCES)
48
49 CLEANFILES = $(BUILT_SOURCES)