]> git.sesse.net Git - vlc/blob - modules/video_chroma/Makefile.am
configure: move LIBM to Makefiles
[vlc] / modules / video_chroma / Makefile.am
1 chromadir = $(pluginsdir)/video_chroma
2
3 libchain_plugin_la_SOURCES = video_chroma/chain.c
4
5 libchroma_omx_plugin_la_SOURCES = video_chroma/omxdl.c
6 libchroma_omx_plugin_la_CFLAGS = $(AM_CFLAGS) $(OMXIP_CFLAGS)
7 libchroma_omx_plugin_la_LIBADD = $(OMXIP_LIBS)
8
9 libswscale_plugin_la_SOURCES = video_chroma/swscale.c codec/avcodec/chroma.c
10 libswscale_plugin_la_CFLAGS = $(AM_CFLAGS) $(SWSCALE_CFLAGS)
11 libswscale_plugin_la_LIBADD = $(SWSCALE_LIBS) $(LIBM)
12 libswscale_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(chromadir)'
13
14 libgrey_yuv_plugin_la_SOURCES = video_chroma/grey_yuv.c
15
16 libi420_rgb_plugin_la_SOURCES = video_chroma/i420_rgb.c video_chroma/i420_rgb.h \
17         video_chroma/i420_rgb8.c video_chroma/i420_rgb16.c video_chroma/i420_rgb_c.h
18 libi420_rgb_plugin_la_LIBADD = $(LIBM)
19
20 libi420_yuy2_plugin_la_SOURCES = video_chroma/i420_yuy2.c video_chroma/i420_yuy2.h
21 libi420_yuy2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
22         -DMODULE_NAME_IS_i420_yuy2
23
24 libi422_i420_plugin_la_SOURCES = video_chroma/i422_i420.c
25
26 libi422_yuy2_plugin_la_SOURCES = video_chroma/i422_yuy2.c video_chroma/i422_yuy2.h
27 libi422_yuy2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
28         -DMODULE_NAME_IS_i422_yuy2
29
30 librv32_plugin_la_SOURCES = video_chroma/rv32.c
31
32 libyuy2_i420_plugin_la_SOURCES = video_chroma/yuy2_i420.c
33
34 libyuy2_i422_plugin_la_SOURCES = video_chroma/yuy2_i422.c
35
36 chroma_LTLIBRARIES = \
37         libi420_rgb_plugin.la \
38         libi420_yuy2_plugin.la \
39         libi422_i420_plugin.la \
40         libi422_yuy2_plugin.la \
41         libgrey_yuv_plugin.la \
42         libyuy2_i420_plugin.la \
43         libyuy2_i422_plugin.la \
44         librv32_plugin.la \
45         libchain_plugin.la \
46         $(LTLIBswscale)
47
48 EXTRA_LTLIBRARIES += libswscale_plugin.la libchroma_omx_plugin.la
49
50 # AltiVec
51 libi420_yuy2_altivec_plugin_la_SOURCES = video_chroma/i420_yuy2.c video_chroma/i420_yuy2.h
52 libi420_yuy2_altivec_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
53         -DMODULE_NAME_IS_i420_yuy2_altivec
54 libi420_yuy2_altivec_plugin_la_CFLAGS = $(AM_CFLAGS) $(ALTIVEC_CFLAGS)
55
56 if HAVE_ALTIVEC
57 chroma_LTLIBRARIES += \
58         libi420_yuy2_altivec_plugin.la
59 endif
60
61 # MMX
62 libi420_rgb_mmx_plugin_la_SOURCES = video_chroma/i420_rgb.c video_chroma/i420_rgb.h \
63         video_chroma/i420_rgb16_x86.c video_chroma/i420_rgb_mmx.h
64 libi420_rgb_mmx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMMX
65
66 libi420_yuy2_mmx_plugin_la_SOURCES = video_chroma/i420_yuy2.c video_chroma/i420_yuy2.h
67 libi420_yuy2_mmx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
68         -DMODULE_NAME_IS_i420_yuy2_mmx
69
70 libi422_yuy2_mmx_plugin_la_SOURCES = video_chroma/i422_yuy2.c video_chroma/i422_yuy2.h
71 libi422_yuy2_mmx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
72         -DMODULE_NAME_IS_i422_yuy2_mmx
73
74 if HAVE_MMX
75 chroma_LTLIBRARIES += \
76         libi420_rgb_mmx_plugin.la \
77         libi420_yuy2_mmx_plugin.la \
78         libi422_yuy2_mmx_plugin.la
79 endif
80
81 # SSE2
82 libi420_rgb_sse2_plugin_la_SOURCES = video_chroma/i420_rgb.c video_chroma/i420_rgb.h \
83         video_chroma/i420_rgb16_x86.c video_chroma/i420_rgb_sse2.h
84 libi420_rgb_sse2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DSSE2
85
86 libi420_yuy2_sse2_plugin_la_SOURCES = video_chroma/i420_yuy2.c video_chroma/i420_yuy2.h
87 libi420_yuy2_sse2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
88         -DMODULE_NAME_IS_i420_yuy2_sse2
89
90 libi422_yuy2_sse2_plugin_la_SOURCES = video_chroma/i422_yuy2.c video_chroma/i422_yuy2.h
91 libi422_yuy2_sse2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
92         -DMODULE_NAME_IS_i422_yuy2_sse2
93
94 if HAVE_SSE2
95 chroma_LTLIBRARIES += \
96         libi420_rgb_sse2_plugin.la \
97         libi420_yuy2_sse2_plugin.la \
98         libi422_yuy2_sse2_plugin.la
99 endif