Tizen 2.1 base
[adaptation/xorg/driver/xserver-xorg-video-emulfb.git] / src / Makefile.am
1 #  Copyright 2005 Adam Jackson.
2 #  Copyright (C) 2010 - 2011 Samsung Electronics co., Ltd. All Rights Reserved.
3 #
4 #  Permission is hereby granted, free of charge, to any person obtaining a
5 #  copy of this software and associated documentation files (the "Software"),
6 #  to deal in the Software without restriction, including without limitation
7 #  on the rights to use, copy, modify, merge, publish, distribute, sub
8 #  license, and/or sell copies of the Software, and to permit persons to whom
9 #  the Software is furnished to do so, subject to the following conditions:
10 #
11 #  The above copyright notice and this permission notice (including the next
12 #  paragraph) shall be included in all copies or substantial portions of the
13 #  Software.
14 #
15 #  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 #  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 #  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
18 #  ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 #  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 #  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
22 # this is obnoxious:
23 # -module lets us name the module exactly how we want
24 # -avoid-version prevents gratuitous .0.0.0 version numbers on the end
25 # _ladir passes a dummy rpath to libtool so the thing will actually link
26 # TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
27
28 AM_CFLAGS = -I@top_srcdir@/src @XORG_CFLAGS@ @EMULFB_CFLAGS@
29 emulfb_drv_la_LTLIBRARIES = emulfb_drv.la
30 #emulfb_drv_la_LDFLAGS = -module -avoid-version @EMULFB_LIBS@
31 emulfb_drv_la_LDFLAGS = -module -avoid-version
32 emulfb_drv_la_LIBADD = @EMULFB_LIBS@
33 emulfb_drv_ladir = @moduledir@/drivers
34
35 # common
36 emulfb_drv_la_SOURCES = \
37         fbdev.c \
38         fb/fbdev_fb.c \
39         fbdev_dpms.c
40 AM_CFLAGS += -I@top_srcdir@/src/fb
41
42 if ENABLE_ARM
43     xvtarget = arm
44 else
45     xvtarget = i386
46 endif
47
48 # xv
49 emulfb_drv_la_SOURCES += \
50         xv/fbdev_video.c \
51         xv/fbdev_video_virtual.c \
52         xv/fbdev_v4l2.c \
53         xv/${xvtarget}/fbdev_video_v4l2.c
54 AM_CFLAGS += -I@top_srcdir@/src/xv
55 AM_CFLAGS += -I@top_srcdir@/src/xv/${xvtarget}
56
57 # fbdevhw
58 emulfb_drv_la_SOURCES += \
59         fbdevhw/fbdev_hw.c
60 AM_CFLAGS += -I@top_srcdir@/src/fbdevhw
61
62 # util
63 emulfb_drv_la_SOURCES += \
64         util/fbdev_util.c \
65         util/fbdev_pixman.c
66 AM_CFLAGS += -I@top_srcdir@/src/util
67
68 # crtcconfig
69 emulfb_drv_la_SOURCES += \
70         crtcconfig/fbdev_crtcconfig.c \
71         crtcconfig/fbdev_crtc.c \
72         crtcconfig/lcd_output.c \
73         crtcconfig/fbdev_mode.c
74 AM_CFLAGS += -I@top_srcdir@/src/crtcconfig
75
76 # crtcconfig
77 emulfb_drv_la_SOURCES += \
78         debug/fbdev_event_trace.c
79 AM_CFLAGS += -I@top_srcdir@/src/debug
80