tizen 2.3 release
[adaptation/xorg/driver/xserver-xorg-module-xdbg.git] / common / Makefile.am
1 # Copyright 2013 Samsung Electronics co., Ltd. All Rights Reserved.
2 #
3 # Contact: Boram Park <boram1288.park@samsung.com>
4 #
5 # Permission is hereby granted, free of charge, to any person obtaining a
6 # copy of this software and associated documentation files (the
7 # "Software"), to deal in the Software without restriction, including
8 # without limitation the rights to use, copy, modify, merge, publish,
9 # distribute, sub license, and/or sell copies of the Software, and to
10 # permit persons to whom the Software is furnished to do so, subject to
11 # the following conditions:
12 #
13 # The above copyright notice and this permission notice (including the
14 # next paragraph) shall be included in all copies or substantial portions
15 # of the Software.
16 #
17 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
20 # IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
21 # ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
25 COMMON_SOURCE =  \
26     xdbg_dbus_client.c \
27     xdbg_evlog.c \
28     xdbg_evlog_request.c \
29     xdbg_evlog_core.c \
30     xdbg_evlog_composite.c \
31     xdbg_evlog_dri2.c \
32     xdbg_evlog_damage.c \
33     xdbg_evlog_gesture.c \
34     xdbg_evlog_xext.c \
35     xdbg_evlog_randr.c \
36     xdbg_evlog_xinput.c \
37     xdbg_evlog_xv.c \
38     xdbg_evlog_event.c \
39     xdbg_evlog_reply.c \
40     ds/bintree.c \
41     ds/bool_exp_parser.c \
42     ds/bool_exp_rule_checker.c \
43     ds/bool_exp_tokenizer.c
44
45 if HAVE_HWC
46 COMMON_SOURCE += xdbg_evlog_hwc.c
47 endif
48
49 COMMON_CFLAGS = \
50     ${CFLAGS} \
51     @XDBG_CFLAGS@ \
52     -I$(top_srcdir)/lib \
53     -I$(top_srcdir)/common \
54     -I$(top_srcdir)/common/ds
55
56 COMMON_CLIENT_CFLAGS = \
57     ${CFLAGS} \
58     @XDBG_CLIENT_CFLAGS@ \
59     -I$(top_srcdir)/common \
60     -I$(top_srcdir)/common/ds
61
62
63 noinst_LTLIBRARIES = libcommon-client.la  \
64                      libcommon-server.la
65
66 libcommon_client_la_LIBADD = ${LDFLAGS} @XDBG_LIBS@
67 libcommon_client_la_LDFLAGS = ${LDFLAGS} @XDBG_LIBS@
68 libcommon_client_la_CFLAGS = ${COMMON_CLIENT_CFLAGS}
69 libcommon_client_la_SOURCES = $(COMMON_SOURCE)
70
71 libcommon_server_la_LIBADD = ${LDFLAGS} @XDBG_LIBS@
72 libcommon_server_la_LDFLAGS = ${LDFLAGS} @XDBG_LIBS@
73 libcommon_server_la_CFLAGS = ${COMMON_CFLAGS}
74 libcommon_server_la_SOURCES = $(COMMON_SOURCE) \
75                                 xdbg_dbus_server.c