* enable static build of modules
[profile/ivi/emotion.git] / src / lib / Makefile.am
1
2 MAINTAINERCLEANFILES = Makefile.in
3
4 AM_CPPFLAGS = \
5 -I$(top_srcdir) \
6 -I$(top_srcdir)/src/lib \
7 -DPACKAGE_BIN_DIR=\"$(bindir)\" \
8 -DPACKAGE_LIB_DIR=\"$(libdir)\" \
9 -DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
10 @EMOTION_CPPFLAGS@ \
11 @EMOTION_CFLAGS@ \
12 @EFL_EMOTION_BUILD@
13
14 if EMOTION_STATIC_BUILD_XINE
15 AM_CPPFLAGS += @XINE_CFLAGS@
16 endif
17
18 if EMOTION_STATIC_BUILD_GSTREAMER
19 AM_CPPFLAGS += @GSTREAMER_CFLAGS@
20 endif
21
22 if EMOTION_STATIC_BUILD_VLC
23 AM_CPPFLAGS += @VLC_CFLAGS@
24 endif
25
26 lib_LTLIBRARIES      = libemotion.la
27 include_HEADERS      = Emotion.h
28 libemotion_la_SOURCES = emotion_smart.c
29
30 if EMOTION_STATIC_BUILD_XINE
31 libemotion_la_SOURCES += \
32 $(top_srcdir)/src/modules/xine/emotion_xine.c \
33 $(top_srcdir)/src/modules/xine/emotion_xine_vo_out.c
34 endif
35
36 if EMOTION_STATIC_BUILD_GSTREAMER
37 libemotion_la_SOURCES += \
38 $(top_srcdir)/src/modules/gstreamer/emotion_gstreamer.c \
39 $(top_srcdir)/src/modules/gstreamer/emotion_gstreamer_pipeline.c \
40 $(top_srcdir)/src/modules/gstreamer/emotion_gstreamer_pipeline_cdda.c \
41 $(top_srcdir)/src/modules/gstreamer/emotion_gstreamer_pipeline_dvd.c \
42 $(top_srcdir)/src/modules/gstreamer/emotion_gstreamer_pipeline_file.c \
43 $(top_srcdir)/src/modules/gstreamer/emotion_gstreamer_pipeline_uri.c \
44 $(top_srcdir)/src/modules/gstreamer/emotion_gstreamer_pipeline_v4l.c
45 endif
46
47 if EMOTION_STATIC_BUILD_VLC
48 libemotion_la_SOURCES += \
49 $(top_srcdir)/src/modules/vlc/emotion_vlc.c
50 endif
51
52 libemotion_la_LIBADD = @EMOTION_LIBS@
53
54 if EMOTION_STATIC_BUILD_XINE
55 libemotion_la_LIBADD += @XINE_LIBS@
56 endif
57
58 if EMOTION_STATIC_BUILD_GSTREAMER
59 libemotion_la_LIBADD += @GSTREAMER_LIBS@
60 endif
61
62 if EMOTION_STATIC_BUILD_VLC
63 libemotion_la_LIBADD += @VLC_LIBS@
64 endif
65
66 libemotion_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@
67
68 EXTRA_DIST = emotion_private.h