2002-02-28 00:57:30 +00:00
|
|
|
|
|
|
|
include ../config.mak
|
|
|
|
|
|
|
|
LIBNAME = libmpcodecs.a
|
2002-04-10 23:23:36 +00:00
|
|
|
LIBNAME2 = libmpencoders.a
|
2002-02-28 00:57:30 +00:00
|
|
|
|
2006-01-31 23:45:46 +00:00
|
|
|
LIBS =$(LIBNAME)
|
|
|
|
ifeq ($(MENCODER),yes)
|
|
|
|
LIBS+=$(LIBNAME2)
|
|
|
|
endif
|
|
|
|
|
2005-06-19 22:52:55 +00:00
|
|
|
AUDIO_SRCS_LIB=ad_hwac3.c \
|
2006-01-15 10:25:14 +00:00
|
|
|
ad_hwmpa.c \
|
2005-06-19 22:52:55 +00:00
|
|
|
|
2006-06-21 14:49:09 +00:00
|
|
|
ifeq ($(LIBA52),yes)
|
|
|
|
AUDIO_SRCS_LIB+=ad_liba52.c
|
|
|
|
endif
|
|
|
|
ifeq ($(MP3LIB),yes)
|
|
|
|
AUDIO_SRCS_LIB+=ad_mp3lib.c
|
|
|
|
endif
|
|
|
|
|
2005-06-19 22:52:55 +00:00
|
|
|
AUDIO_SRCS_NAT=ad_alaw.c \
|
|
|
|
ad_dk3adpcm.c \
|
|
|
|
ad_dvdpcm.c \
|
|
|
|
ad_imaadpcm.c \
|
|
|
|
ad_msadpcm.c \
|
|
|
|
ad_msgsm.c \
|
|
|
|
ad_pcm.c \
|
|
|
|
|
2006-06-21 14:49:09 +00:00
|
|
|
AUDIO_SRCS=dec_audio.c \
|
|
|
|
ad.c \
|
|
|
|
$(AUDIO_SRCS_LIB) \
|
|
|
|
$(AUDIO_SRCS_NAT) \
|
2005-06-19 22:52:55 +00:00
|
|
|
|
2006-01-31 23:36:12 +00:00
|
|
|
ifeq ($(CONFIG_LIBAVCODEC),yes)
|
2006-06-21 14:49:09 +00:00
|
|
|
AUDIO_SRCS+=ad_ffmpeg.c
|
2006-01-31 23:36:12 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_LIBAVCODEC_SO),yes)
|
2006-06-21 14:49:09 +00:00
|
|
|
AUDIO_SRCS+=ad_ffmpeg.c
|
2006-01-31 23:36:12 +00:00
|
|
|
endif
|
2006-06-21 09:45:17 +00:00
|
|
|
ifeq ($(WIN32DLL),yes)
|
2006-06-21 14:49:09 +00:00
|
|
|
AUDIO_SRCS+=ad_acm.c ad_dmo.c ad_dshow.c ad_twin.c
|
|
|
|
endif
|
|
|
|
ifeq ($(QTX_CODECS),yes)
|
|
|
|
AUDIO_SRCS+=ad_qtaudio.c
|
|
|
|
endif
|
|
|
|
ifeq ($(REAL_CODECS),yes)
|
|
|
|
AUDIO_SRCS+=ad_realaud.c
|
|
|
|
endif
|
|
|
|
ifeq ($(FAAD),yes)
|
|
|
|
AUDIO_SRCS += ad_faad.c
|
|
|
|
endif
|
|
|
|
ifeq ($(LIBDV),yes)
|
|
|
|
AUDIO_SRCS+=ad_libdv.c
|
|
|
|
endif
|
|
|
|
ifeq ($(LIBMAD),yes)
|
|
|
|
AUDIO_SRCS+=ad_libmad.c
|
|
|
|
endif
|
|
|
|
ifeq ($(LIBVORBIS),yes)
|
|
|
|
AUDIO_SRCS+=ad_libvorbis.c
|
2006-06-21 09:45:17 +00:00
|
|
|
endif
|
2006-01-31 23:36:12 +00:00
|
|
|
|
2002-11-01 16:38:50 +00:00
|
|
|
|
2006-06-21 14:49:09 +00:00
|
|
|
VIDEO_SRCS_LIB=vd_lzo.c \
|
2005-06-19 22:52:55 +00:00
|
|
|
vd_nuv.c \
|
|
|
|
|
2006-06-21 14:49:09 +00:00
|
|
|
ifeq ($(LIBMPEG2),yes)
|
|
|
|
VIDEO_SRCS_LIB+=vd_libmpeg2.c
|
|
|
|
endif
|
|
|
|
|
2005-06-19 22:52:55 +00:00
|
|
|
VIDEO_SRCS_NAT=vd_hmblck.c \
|
|
|
|
vd_mpegpes.c \
|
|
|
|
vd_mtga.c \
|
|
|
|
vd_null.c \
|
|
|
|
vd_raw.c \
|
|
|
|
vd_sgi.c \
|
|
|
|
|
2006-06-21 14:49:09 +00:00
|
|
|
VIDEO_SRCS=dec_video.c \
|
|
|
|
vd.c \
|
|
|
|
$(VIDEO_SRCS_NAT) \
|
|
|
|
$(VIDEO_SRCS_LIB) \
|
2005-06-19 22:52:55 +00:00
|
|
|
|
2006-01-31 23:36:12 +00:00
|
|
|
ifeq ($(CONFIG_LIBAVCODEC),yes)
|
2006-06-21 14:49:09 +00:00
|
|
|
VIDEO_SRCS+=vd_ffmpeg.c
|
2006-01-31 23:36:12 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_LIBAVCODEC_SO),yes)
|
2006-06-21 14:49:09 +00:00
|
|
|
VIDEO_SRCS+=vd_ffmpeg.c
|
2006-01-31 23:36:12 +00:00
|
|
|
endif
|
2006-06-21 09:45:17 +00:00
|
|
|
ifeq ($(WIN32DLL),yes)
|
2006-06-21 14:49:09 +00:00
|
|
|
VIDEO_SRCS+=vd_dmo.c vd_dshow.c vd_vfw.c vd_vfwex.c
|
|
|
|
endif
|
|
|
|
ifeq ($(QTX_CODECS),yes)
|
|
|
|
VIDEO_SRCS+=vd_qtvideo.c
|
|
|
|
endif
|
|
|
|
ifeq ($(REAL_CODECS),yes)
|
|
|
|
VIDEO_SRCS+=vd_realvid.c
|
|
|
|
endif
|
|
|
|
ifeq ($(XANIM_CODECS),yes)
|
|
|
|
VIDEO_SRCS+=vd_xanim.c
|
|
|
|
endif
|
|
|
|
ifeq ($(LIBDV),yes)
|
|
|
|
VIDEO_SRCS+=vd_libdv.c
|
|
|
|
endif
|
|
|
|
ifeq ($(LIBTHEORA),yes)
|
|
|
|
VIDEO_SRCS+=vd_theora.c
|
|
|
|
endif
|
|
|
|
ifeq ($(XVID4),yes)
|
|
|
|
VIDEO_SRCS+=vd_xvid4.c
|
|
|
|
else
|
|
|
|
ifeq ($(XVID),yes)
|
|
|
|
VIDEO_SRCS+=vd_xvid.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifeq ($(ZORAN),yes)
|
|
|
|
VIDEO_SRCS+=vd_zrmjpeg.c
|
2006-06-21 09:45:17 +00:00
|
|
|
endif
|
2006-01-31 23:36:12 +00:00
|
|
|
|
2002-11-01 16:38:50 +00:00
|
|
|
|
2005-06-19 22:52:55 +00:00
|
|
|
VFILTER_SRCS=vf.c \
|
|
|
|
pullup.c \
|
|
|
|
vf_1bpp.c \
|
|
|
|
vf_2xsai.c \
|
2006-07-15 09:18:44 +00:00
|
|
|
vf_blackframe.c \
|
2005-06-19 22:52:55 +00:00
|
|
|
vf_bmovl.c \
|
|
|
|
vf_boxblur.c \
|
|
|
|
vf_crop.c \
|
|
|
|
vf_cropdetect.c \
|
|
|
|
vf_decimate.c \
|
|
|
|
vf_delogo.c \
|
|
|
|
vf_denoise3d.c \
|
|
|
|
vf_detc.c \
|
|
|
|
vf_dint.c \
|
|
|
|
vf_divtc.c \
|
|
|
|
vf_down3dright.c \
|
|
|
|
vf_dsize.c \
|
|
|
|
vf_dvbscale.c \
|
|
|
|
vf_eq2.c \
|
|
|
|
vf_eq.c \
|
|
|
|
vf_expand.c \
|
|
|
|
vf_field.c \
|
|
|
|
vf_fil.c \
|
|
|
|
vf_filmdint.c \
|
|
|
|
vf_flip.c \
|
|
|
|
vf_format.c \
|
|
|
|
vf_framestep.c \
|
|
|
|
vf_halfpack.c \
|
|
|
|
vf_harddup.c \
|
|
|
|
vf_hqdn3d.c \
|
|
|
|
vf_hue.c \
|
|
|
|
vf_il.c \
|
|
|
|
vf_ilpack.c \
|
|
|
|
vf_ivtc.c \
|
|
|
|
vf_kerndeint.c \
|
|
|
|
vf_mirror.c \
|
|
|
|
vf_noformat.c \
|
|
|
|
vf_noise.c \
|
|
|
|
vf_palette.c \
|
|
|
|
vf_perspective.c \
|
|
|
|
vf_phase.c \
|
2005-07-09 07:49:51 +00:00
|
|
|
vf_pp7.c \
|
2005-06-19 22:52:55 +00:00
|
|
|
vf_pullup.c \
|
|
|
|
vf_rectangle.c \
|
|
|
|
vf_remove_logo.c \
|
|
|
|
vf_rgb2bgr.c \
|
|
|
|
vf_rgbtest.c \
|
|
|
|
vf_rotate.c \
|
|
|
|
vf_sab.c \
|
|
|
|
vf_scale.c \
|
|
|
|
vf_smartblur.c \
|
|
|
|
vf_softpulldown.c \
|
|
|
|
vf_softskip.c \
|
|
|
|
vf_swapuv.c \
|
|
|
|
vf_telecine.c \
|
|
|
|
vf_test.c \
|
|
|
|
vf_tfields.c \
|
|
|
|
vf_tile.c \
|
|
|
|
vf_tinterlace.c \
|
|
|
|
vf_unsharp.c \
|
|
|
|
vf_vo.c \
|
|
|
|
vf_yuvcsp.c \
|
|
|
|
vf_yuy2.c \
|
|
|
|
vf_yvu9.c \
|
2006-06-06 23:30:23 +00:00
|
|
|
vf_yadif.c \
|
2005-06-19 22:52:55 +00:00
|
|
|
|
2006-03-16 21:56:24 +00:00
|
|
|
VFILTER_LAVC_SRCS += vf_lavc.c \
|
2006-01-31 23:36:12 +00:00
|
|
|
vf_lavcdeint.c \
|
2006-03-16 21:56:24 +00:00
|
|
|
|
|
|
|
VFILTER_LAVC_DSPUTIL_SRCS += vf_uspp.c \
|
|
|
|
vf_fspp.c \
|
|
|
|
vf_qp.c \
|
2006-10-16 15:47:32 +00:00
|
|
|
vf_geq.c \
|
2006-03-16 21:56:24 +00:00
|
|
|
vf_spp.c \
|
2006-06-06 00:11:13 +00:00
|
|
|
vf_mcdeint.c \
|
2006-01-31 23:36:12 +00:00
|
|
|
|
2006-01-22 18:11:35 +00:00
|
|
|
ifeq ($(CONFIG_LIBPOSTPROC),yes)
|
|
|
|
VFILTER_SRCS += vf_pp.c
|
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_LIBPOSTPROC_SO),yes)
|
2003-10-16 08:45:10 +00:00
|
|
|
VFILTER_SRCS += vf_pp.c
|
|
|
|
endif
|
|
|
|
|
2006-01-31 23:36:12 +00:00
|
|
|
ifeq ($(CONFIG_LIBAVCODEC),yes)
|
|
|
|
VFILTER_SRCS += $(VFILTER_LAVC_SRCS)
|
2006-03-16 21:56:24 +00:00
|
|
|
VFILTER_SRCS += $(VFILTER_LAVC_DSPUTIL_SRCS)
|
2006-01-31 23:36:12 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_LIBAVCODEC_SO),yes)
|
|
|
|
VFILTER_SRCS += $(VFILTER_LAVC_SRCS)
|
|
|
|
endif
|
|
|
|
|
2006-06-21 14:49:09 +00:00
|
|
|
ifeq ($(PNG),yes)
|
|
|
|
VFILTER_SRCS += vf_screenshot.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2005-06-19 22:52:55 +00:00
|
|
|
ENCODER_SRCS=ae.c \
|
|
|
|
ae_pcm.c \
|
|
|
|
ve.c \
|
|
|
|
ve_nuv.c \
|
|
|
|
ve_raw.c \
|
2002-11-01 16:38:50 +00:00
|
|
|
|
2006-01-31 23:36:12 +00:00
|
|
|
ifeq ($(CONFIG_LIBAVCODEC),yes)
|
|
|
|
ENCODER_SRCS+=ve_lavc.c
|
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_LIBAVCODEC_SO),yes)
|
|
|
|
ENCODER_SRCS+=ve_lavc.c
|
|
|
|
endif
|
2006-06-21 14:49:09 +00:00
|
|
|
ifeq ($(WIN32DLL),yes)
|
|
|
|
ENCODER_SRCS+=ve_vfw.c
|
|
|
|
endif
|
|
|
|
ifeq ($(QTX_CODECS),yes)
|
|
|
|
ENCODER_SRCS+=ve_qtvideo.c
|
|
|
|
endif
|
|
|
|
ifeq ($(LIBDV),yes)
|
|
|
|
ENCODER_SRCS+=ve_libdv.c
|
|
|
|
endif
|
|
|
|
ifeq ($(XVID4),yes)
|
|
|
|
ENCODER_SRCS+=ve_xvid4.c
|
|
|
|
else
|
|
|
|
ifeq ($(XVID),yes)
|
|
|
|
ENCODER_SRCS+=ve_xvid.c
|
|
|
|
endif
|
|
|
|
endif
|
2006-01-31 23:36:12 +00:00
|
|
|
ifeq ($(X264),yes)
|
|
|
|
ENCODER_SRCS+=ve_x264.c
|
|
|
|
endif
|
|
|
|
|
2006-06-21 14:49:09 +00:00
|
|
|
|
2005-12-09 16:52:44 +00:00
|
|
|
NATIVE_SRCS=native/minilzo.c \
|
2005-06-19 22:52:55 +00:00
|
|
|
native/nuppelvideo.c \
|
|
|
|
native/RTjpegN.c \
|
|
|
|
native/xa_gsm.c \
|
2002-03-10 22:49:18 +00:00
|
|
|
|
2002-04-26 17:18:02 +00:00
|
|
|
ifeq ($(FAME),yes)
|
|
|
|
VFILTER_SRCS += vf_fame.c
|
|
|
|
endif
|
|
|
|
|
2003-12-19 22:15:37 +00:00
|
|
|
ifeq ($(ZORAN),yes)
|
|
|
|
VFILTER_SRCS += vf_zrmjpeg.c
|
|
|
|
endif
|
|
|
|
|
2002-03-10 22:49:18 +00:00
|
|
|
ifeq ($(PNG),yes)
|
2002-03-25 22:04:33 +00:00
|
|
|
VIDEO_SRCS += vd_mpng.c
|
2002-03-10 22:49:18 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(JPEG),yes)
|
2002-03-25 22:04:33 +00:00
|
|
|
VIDEO_SRCS += vd_ijpg.c
|
2002-03-10 22:49:18 +00:00
|
|
|
endif
|
2002-02-28 00:57:30 +00:00
|
|
|
|
2004-09-21 19:50:54 +00:00
|
|
|
ifeq ($(TOOLAME),yes)
|
2005-04-22 06:59:59 +00:00
|
|
|
ENCODER_SRCS += ae_toolame.c
|
2004-09-21 19:50:54 +00:00
|
|
|
EXTRA_INC += $(TOOLAME_EXTRAFLAGS)
|
|
|
|
endif
|
|
|
|
|
2005-05-07 14:50:14 +00:00
|
|
|
ifeq ($(TWOLAME),yes)
|
|
|
|
ENCODER_SRCS += ae_twolame.c
|
|
|
|
endif
|
|
|
|
|
2005-04-22 06:59:59 +00:00
|
|
|
ifeq ($(CONFIG_MP3LAME),yes)
|
|
|
|
ENCODER_SRCS += ae_lame.c
|
|
|
|
endif
|
|
|
|
|
2005-08-01 20:16:56 +00:00
|
|
|
LIBAV_INC =
|
|
|
|
ifeq ($(CONFIG_LIBAVUTIL),yes)
|
|
|
|
LIBAV_INC += -I../libavutil
|
|
|
|
endif
|
2005-04-22 06:59:59 +00:00
|
|
|
ifeq ($(CONFIG_LIBAVCODEC),yes)
|
2005-08-01 20:16:56 +00:00
|
|
|
LIBAV_INC += -I../libavcodec
|
2005-04-22 06:59:59 +00:00
|
|
|
ENCODER_SRCS += ae_lavc.c
|
|
|
|
endif
|
2006-01-14 16:26:42 +00:00
|
|
|
ifeq ($(CONFIG_LIBAVCODEC_SO),yes)
|
2005-08-17 23:08:18 +00:00
|
|
|
ENCODER_SRCS += ae_lavc.c
|
|
|
|
endif
|
|
|
|
|
2005-07-10 17:14:12 +00:00
|
|
|
ifeq ($(MUSEPACK),yes)
|
|
|
|
AUDIO_SRCS += ad_mpc.c
|
|
|
|
endif
|
|
|
|
|
2005-11-05 11:58:25 +00:00
|
|
|
ifeq ($(SPEEX),yes)
|
|
|
|
AUDIO_SRCS += ad_speex.c
|
|
|
|
endif
|
|
|
|
|
2005-04-25 07:07:57 +00:00
|
|
|
ifeq ($(FAAC),yes)
|
|
|
|
ENCODER_SRCS += ae_faac.c
|
|
|
|
endif
|
|
|
|
|
2006-07-07 18:26:51 +00:00
|
|
|
ifeq ($(CONFIG_ASS),yes)
|
|
|
|
VFILTER_SRCS += vf_ass.c
|
|
|
|
endif
|
|
|
|
|
2005-09-19 15:23:15 +00:00
|
|
|
SRCS=$(AUDIO_SRCS) \
|
|
|
|
$(VIDEO_SRCS) \
|
|
|
|
$(VFILTER_SRCS) \
|
|
|
|
$(NATIVE_SRCS) \
|
|
|
|
img_format.c \
|
|
|
|
|
2002-02-28 00:57:30 +00:00
|
|
|
OBJS=$(SRCS:.c=.o)
|
|
|
|
|
2002-04-10 23:23:36 +00:00
|
|
|
SRCS2=$(ENCODER_SRCS)
|
|
|
|
OBJS2=$(SRCS2:.c=.o)
|
|
|
|
|
2006-08-17 17:19:56 +00:00
|
|
|
CFLAGS = -I. -I.. \
|
2005-09-19 15:23:15 +00:00
|
|
|
-Inative \
|
|
|
|
-I../libmpdemux \
|
2006-07-31 17:39:17 +00:00
|
|
|
-I../stream \
|
2005-09-19 15:23:15 +00:00
|
|
|
-I../loader \
|
|
|
|
$(LIBAV_INC) \
|
2006-08-17 17:19:56 +00:00
|
|
|
$(OPTFLAGS) \
|
2005-09-19 15:23:15 +00:00
|
|
|
-D_GNU_SOURCE \
|
2002-02-28 00:57:30 +00:00
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
2006-01-31 23:45:46 +00:00
|
|
|
all: $(LIBS)
|
2002-04-10 23:23:36 +00:00
|
|
|
|
2002-02-28 00:57:30 +00:00
|
|
|
$(LIBNAME): $(OBJS)
|
|
|
|
$(AR) r $(LIBNAME) $(OBJS)
|
2004-06-24 13:54:08 +00:00
|
|
|
$(RANLIB) $(LIBNAME)
|
2002-02-28 00:57:30 +00:00
|
|
|
|
2002-04-10 23:23:36 +00:00
|
|
|
$(LIBNAME2): $(OBJS2)
|
|
|
|
$(AR) r $(LIBNAME2) $(OBJS2)
|
2004-06-24 13:54:08 +00:00
|
|
|
$(RANLIB) $(LIBNAME2)
|
2002-02-28 00:57:30 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.a *~
|
2004-12-09 13:11:21 +00:00
|
|
|
rm -f native/*.o native/*.a native/*~
|
2002-02-28 00:57:30 +00:00
|
|
|
|
2006-01-27 00:06:42 +00:00
|
|
|
distclean: clean
|
|
|
|
rm -f .depend
|
2002-02-28 00:57:30 +00:00
|
|
|
|
|
|
|
dep: depend
|
|
|
|
|
|
|
|
depend:
|
2002-04-10 23:23:36 +00:00
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) $(SRCS2) 1>.depend
|
2002-02-28 00:57:30 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|
|
|
|
|