1# Makefile for lavtools 2 3MAINTAINERCLEANFILES = Makefile.in 4 5AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/utils $(LIBQUICKTIME_CFLAGS) 6 7LIBMJPEGUTILS = $(top_builddir)/utils/libmjpegutils.la 8if HAVE_ALTIVEC 9LIBMJPEGUTILS += $(top_builddir)/mpeg2enc/libmpeg2encpp.la 10endif 11 12# ********************************************************************* 13# Support lib 14 15lib_LTLIBRARIES = liblavfile.la liblavjpeg.la 16 17if HAVE_V4L 18 lib_LTLIBRARIES += liblavrec.la 19endif 20if HAVE_V4L_OR_SDL 21 lib_LTLIBRARIES += liblavplay.la 22endif 23 24 25liblavincludedir = $(pkgincludedir) 26liblavinclude_HEADERS = \ 27 avilib.h \ 28 editlist.h \ 29 lav_io.h \ 30 jpegutils.h \ 31 frequencies.h \ 32 liblavrec.h \ 33 liblavplay.h \ 34 audiolib.h 35 36LAV_ALL_LIB_OPTS = \ 37 $(LT_STATIC) \ 38 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ 39 -release $(LT_RELEASE) $(EXTRA_LDFLAGS) 40 41liblavfile_la_SOURCES = editlist.c lav_io.c avilib.c 42liblavfile_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBDV_CFLAGS) $(JPEG_CFLAGS) 43liblavfile_la_LDFLAGS = $(LAV_ALL_LIB_OPTS) 44liblavfile_la_LIBADD = $(LIBQUICKTIME_LIBS) $(JPEG_LIBS) $(LIBDV_LIBS) $(LIBMJPEGUTILS) 45 46liblavjpeg_la_SOURCES = jpegutils.c 47liblavjpeg_la_CPPFLAGS = $(AM_CPPFLAGS) $(JPEG_CFLAGS) 48liblavjpeg_la_LDFLAGS = $(LAV_ALL_LIB_OPTS) 49liblavjpeg_la_LIBADD = $(JPEG_LIBS) $(LIBMJPEGUTILS) 50 51liblavrec_la_SOURCES = liblavrec.c audiolib.c frequencies.c 52liblavrec_la_CPPFLAGS = $(AM_CPPFLAGS) # so automake doesn't complain about audiolib & frequencies 53liblavrec_la_LDFLAGS = $(LAV_ALL_LIB_OPTS) 54liblavrec_la_LIBADD = liblavfile.la liblavjpeg.la $(LIBMJPEGUTILS) 55liblavrec_la_DEPENDENCIES = liblavfile.la liblavjpeg.la 56 57liblavplay_la_SOURCES = liblavplay.c audiolib.c 58liblavplay_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBDV_CFLAGS) $(X_CFLAGS) $(SDL_CFLAGS) 59liblavplay_la_LDFLAGS = $(LAV_ALL_LIB_OPTS) 60liblavplay_la_LIBADD = liblavfile.la $(SDL_LIBS) liblavjpeg.la $(LIBDV_LIBS) $(LIBMJPEGUTILS) 61if HAVE_SDL 62 liblavplay_la_LIBADD += ${X_LIBS} -lX11 63endif 64liblavplay_la_DEPENDENCIES = liblavfile.la liblavjpeg.la 65 66# ********************************************************************* 67# The tools themselves 68 69bin_PROGRAMS = \ 70 mjpeg_simd_helper \ 71 lav2wav \ 72 lav2yuv \ 73 lavaddwav \ 74 lavtrans \ 75 ypipe \ 76 yuv2lav \ 77 transist.flt \ 78 matteblend.flt \ 79 multiblend.flt \ 80 lavpipe \ 81 jpeg2yuv \ 82 ppmtoy4m \ 83 pnmtoy4m \ 84 y4mtoppm \ 85 y4mtopnm \ 86 y4mcolorbars \ 87 lavinfo \ 88 y4mstabilizer \ 89 yuvfps \ 90 yuvinactive 91 92if HAVE_GTK 93 bin_PROGRAMS += glav 94endif 95if HAVE_SDL 96 bin_PROGRAMS += yuvplay 97endif 98if HAVE_V4L 99 bin_PROGRAMS += lavrec lavvideo 100endif 101if HAVE_V4L_OR_SDL 102 bin_PROGRAMS += lavplay 103endif 104if HAVE_LIBPNG 105 bin_PROGRAMS += png2yuv 106endif 107 108noinst_HEADERS = \ 109 colorspace.h \ 110 glav.h \ 111 pipelist.h \ 112 subsample.h \ 113 lav_common.h 114 115mjpeg_simd_helper_SOURCES = mjpeg_simd_helper.c 116mjpeg_simd_helper_LDADD = $(LIBMJPEGUTILS) 117 118ypipe_SOURCES = ypipe.c 119ypipe_LDADD = $(LIBMJPEGUTILS) 120 121yuv2lav_SOURCES = yuv2lav.c 122yuv2lav_LDADD = $(LIBMJPEGUTILS) liblavfile.la liblavjpeg.la $(LIBM_LIBS) 123 124transist_flt_SOURCES = transist.flt.c 125transist_flt_LDADD = $(LIBMJPEGUTILS) 126 127matteblend_flt_SOURCES = matteblend.flt.c 128matteblend_flt_LDADD = $(LIBMJPEGUTILS) 129 130multiblend_flt_SOURCES = multiblend.flt.c 131multiblend_flt_LDADD = $(LIBMJPEGUTILS) 132 133lavplay_SOURCES = lavplay.c 134lavplay_CPPFLAGS = $(AM_CPPFLAGS) $(SDL_CFLAGS) 135lavplay_LDADD = $(LIBMJPEGUTILS) \ 136 liblavplay.la liblavjpeg.la liblavfile.la \ 137 @LIBGETOPT_LIB@ @PTHREAD_LIBS@ $(SDL_LIBS) 138 139lavrec_SOURCES = lavrec.c 140lavrec_LDADD = $(LIBMJPEGUTILS) \ 141 liblavrec.la liblavfile.la liblavjpeg.la \ 142 @LIBGETOPT_LIB@ @PTHREAD_LIBS@ 143 144lav2yuv_SOURCES = lav2yuv.c lav_common.c 145lav2yuv_CPPFLAGS = $(AM_CPPFLAGS) $(LIBDV_CFLAGS) 146lav2yuv_LDADD = $(LIBMJPEGUTILS) \ 147 liblavfile.la liblavjpeg.la 148 149jpeg2yuv_SOURCES = jpeg2yuv.c 150jpeg2yuv_CPPFLAGS = $(AM_CPPFLAGS) $(JPEG_CFLAGS) 151jpeg2yuv_LDADD = $(LIBMJPEGUTILS) liblavjpeg.la $(JPEG_LIBS) 152 153png2yuv_SOURCES = png2yuv.c colorspace.c subsample.c 154png2yuv_CPPFLAGS = $(AM_CPPFLAGS) $(LIBPNG_CFLAGS) 155png2yuv_LDADD = $(LIBMJPEGUTILS) $(LIBPNG_LIBS) -lz -lm 156 157lavpipe_SOURCES = lavpipe.c pipelist.c 158lavpipe_LDADD = $(LIBMJPEGUTILS) 159 160lav2wav_SOURCES = lav2wav.c 161lav2wav_LDADD = $(LIBMJPEGUTILS) liblavfile.la 162 163lavtrans_SOURCES = lavtrans.c 164lavtrans_LDADD = $(LIBMJPEGUTILS) liblavfile.la 165 166lavaddwav_SOURCES = lavaddwav.c 167lavaddwav_LDADD = $(LIBMJPEGUTILS) liblavfile.la 168 169glav_SOURCES = glav.c glav_main.c 170glav_CPPFLAGS = $(AM_CPPFLAGS) ${GTK_CFLAGS} -DG_LOG_DOMAIN=\"lavtools\" 171glav_LDADD = $(LIBMJPEGUTILS) ${GTK_LIBS} 172 173lavvideo_SOURCES = lavvideo.c frequencies.c 174 175yuvplay_SOURCES = yuvplay.c 176yuvplay_CPPFLAGS = $(AM_CPPFLAGS) $(SDL_CFLAGS) 177yuvplay_LDADD = $(SDL_LIBS) $(LIBMJPEGUTILS) 178 179ppmtoy4m_SOURCES = ppmtoy4m.c colorspace.c subsample.c 180ppmtoy4m_LDADD = $(LIBMJPEGUTILS) 181 182pnmtoy4m_SOURCES = pnmtoy4m.c colorspace.c 183pnmtoy4m_LDADD = $(LIBMJPEGUTILS) 184 185y4mtoppm_SOURCES = y4mtoppm.c colorspace.c subsample.c 186y4mtoppm_LDADD = $(LIBMJPEGUTILS) 187 188y4mtopnm_SOURCES = y4mtopnm.c colorspace.c 189y4mtopnm_LDADD = $(LIBMJPEGUTILS) 190 191y4mcolorbars_SOURCES = y4mcolorbars.c colorspace.c subsample.c 192y4mcolorbars_LDADD = $(LIBMJPEGUTILS) 193 194lavinfo_SOURCES = lavinfo.c 195lavinfo_LDADD = $(LIBMJPEGUTILS) liblavfile.la 196 197y4mstabilizer_SOURCES = y4mstabilizer.c subsample.c 198y4mstabilizer_LDADD = $(LIBMJPEGUTILS) 199 200yuvfps_SOURCES = yuvfps.c 201yuvfps_LDADD = $(LIBMJPEGUTILS) 202 203yuvinactive_SOURCES = yuvinactive.c 204yuvinactive_LDADD = $(LIBMJPEGUTILS) 205