tizen 2.4 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_dri3.c \
33     xdbg_evlog_present.c \
34     xdbg_evlog_damage.c \
35     xdbg_evlog_gesture.c \
36     xdbg_evlog_xext.c \
37     xdbg_evlog_randr.c \
38     xdbg_evlog_xinput.c \
39     xdbg_evlog_xv.c \
40     xdbg_evlog_event.c \
41     xdbg_evlog_reply.c \
42     ds/bintree.c \
43     ds/bool_exp_parser.c \
44     ds/bool_exp_rule_checker.c \
45     ds/bool_exp_tokenizer.c
46
47 if HAVE_HWC
48 COMMON_SOURCE += xdbg_evlog_hwc.c
49 endif
50
51 COMMON_CFLAGS = \
52     ${CFLAGS} \
53     @XDBG_CFLAGS@ \
54     -I$(top_srcdir)/lib \
55     -I$(top_srcdir)/common \
56     -I$(top_srcdir)/common/ds
57
58 COMMON_CLIENT_CFLAGS = \
59     ${CFLAGS} \
60     @XDBG_CLIENT_CFLAGS@ \
61     -I$(top_srcdir)/common \
62     -I$(top_srcdir)/common/ds
63
64
65 noinst_LTLIBRARIES = libcommon-client.la  \
66                      libcommon-server.la
67
68 libcommon_client_la_LIBADD = ${LDFLAGS} @XDBG_LIBS@
69 libcommon_client_la_LDFLAGS = ${LDFLAGS} @XDBG_LIBS@
70 libcommon_client_la_CFLAGS = ${COMMON_CLIENT_CFLAGS}
71 libcommon_client_la_SOURCES = $(COMMON_SOURCE)
72
73 libcommon_server_la_LIBADD = ${LDFLAGS} @XDBG_LIBS@
74 libcommon_server_la_LDFLAGS = ${LDFLAGS} @XDBG_LIBS@
75 libcommon_server_la_CFLAGS = ${COMMON_CFLAGS}
76 libcommon_server_la_SOURCES = $(COMMON_SOURCE) \
77                                 xdbg_dbus_server.c