1 # Copyright 2005 Adam Jackson.
2 # Copyright (C) 2010 - 2011 Samsung Electronics co., Ltd. All Rights Reserved.
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:
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
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.
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.
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
36 emulfb_drv_la_SOURCES = \
40 AM_CFLAGS += -I@top_srcdir@/src/fb
49 emulfb_drv_la_SOURCES += \
51 xv/fbdev_video_virtual.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}
58 emulfb_drv_la_SOURCES += \
60 AM_CFLAGS += -I@top_srcdir@/src/fbdevhw
63 emulfb_drv_la_SOURCES += \
66 AM_CFLAGS += -I@top_srcdir@/src/util
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
77 emulfb_drv_la_SOURCES += \
78 debug/fbdev_event_trace.c
79 AM_CFLAGS += -I@top_srcdir@/src/debug