Mercurial > mplayer.hg
view libmpcodecs/Makefile @ 21275:c1bddf9fcee7
FFmpeg-style conditional dependency declaration
author | diego |
---|---|
date | Sun, 26 Nov 2006 22:37:03 +0000 |
parents | bd7208f84f75 |
children | eda0d1a84e81 |
line wrap: on
line source
include ../config.mak LIBNAME = libmpcodecs.a LIBNAME2 = libmpencoders.a LIBS =$(LIBNAME) ifeq ($(MENCODER),yes) LIBS+=$(LIBNAME2) endif SRCS = native/minilzo.c \ native/nuppelvideo.c \ native/RTjpegN.c \ native/xa_gsm.c \ img_format.c \ SRCS += dec_audio.c \ ad.c \ ad_alaw.c \ ad_dk3adpcm.c \ ad_dvdpcm.c \ ad_hwac3.c \ ad_hwmpa.c \ ad_imaadpcm.c \ ad_msadpcm.c \ ad_msgsm.c \ ad_pcm.c \ SRCS-$(CONFIG_LIBAVCODEC) += ad_ffmpeg.c SRCS-$(CONFIG_LIBAVCODEC_SO) += ad_ffmpeg.c SRCS-$(FAAD) += ad_faad.c SRCS-$(LIBA52) += ad_liba52.c SRCS-$(LIBDV) += ad_libdv.c SRCS-$(LIBMAD) += ad_libmad.c SRCS-$(LIBVORBIS) += ad_libvorbis.c SRCS-$(MP3LIB) += ad_mp3lib.c SRCS-$(MUSEPACK) += ad_mpc.c SRCS-$(QTX_CODECS) += ad_qtaudio.c SRCS-$(REAL_CODECS) += ad_realaud.c SRCS-$(SPEEX) += ad_speex.c SRCS-$(WIN32DLL) += ad_acm.c ad_dmo.c ad_dshow.c ad_twin.c SRCS += dec_video.c \ vd.c \ vd_hmblck.c \ vd_lzo.c \ vd_mpegpes.c \ vd_mtga.c \ vd_null.c \ vd_nuv.c \ vd_raw.c \ vd_sgi.c \ SRCS-$(CONFIG_LIBAVCODEC) += vd_ffmpeg.c SRCS-$(CONFIG_LIBAVCODEC_SO) += vd_ffmpeg.c SRCS-$(JPEG) += vd_ijpg.c SRCS-$(LIBDV) += vd_libdv.c SRCS-$(LIBMPEG2) += vd_libmpeg2.c SRCS-$(LIBTHEORA) += vd_theora.c SRCS-$(PNG) += vd_mpng.c SRCS-$(QTX_CODECS) += vd_qtvideo.c SRCS-$(REAL_CODECS) += vd_realvid.c SRCS-$(WIN32DLL) += vd_dmo.c vd_dshow.c vd_vfw.c vd_vfwex.c SRCS-$(XANIM_CODECS) += vd_xanim.c SRCS-$(XVID4) += vd_xvid4.c SRCS-$(ZORAN) += vd_zrmjpeg.c SRCS += vf.c \ pullup.c \ vf_1bpp.c \ vf_2xsai.c \ vf_blackframe.c \ 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 \ vf_pp7.c \ 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 \ vf_yadif.c \ LAVC_SRCS += vf_lavc.c \ vf_lavcdeint.c \ LAVC_DSPUTIL_SRCS += vf_uspp.c \ vf_fspp.c \ vf_qp.c \ vf_geq.c \ vf_spp.c \ vf_mcdeint.c \ SRCS-$(CONFIG_ASS) += vf_ass.c SRCS-$(CONFIG_LIBPOSTPROC) += vf_pp.c SRCS-$(CONFIG_LIBPOSTPROC_SO) += vf_pp.c SRCS-$(CONFIG_LIBAVCODEC) += $(LAVC_DSPUTIL_SRCS) SRCS-$(CONFIG_LIBAVCODEC) += $(LAVC_SRCS) SRCS-$(CONFIG_LIBAVCODEC_SO) += $(LAVC_SRCS) SRCS-$(PNG) += vf_screenshot.c SRCS-$(ZORAN) += vf_zrmjpeg.c ENCODER_SRCS=ae.c \ ae_pcm.c \ ve.c \ ve_nuv.c \ ve_raw.c \ ENCODER_SRCS-$(CONFIG_LIBAVCODEC) += ve_lavc.c ENCODER_SRCS-$(CONFIG_LIBAVCODEC_SO) += ve_lavc.c ENCODER_SRCS-$(LIBDV) += ve_libdv.c ENCODER_SRCS-$(QTX_CODECS) += ve_qtvideo.c ENCODER_SRCS-$(WIN32DLL) += ve_vfw.c ENCODER_SRCS-$(X264) += ve_x264.c ENCODER_SRCS-$(XVID4) += ve_xvid4.c ENCODER_SRCS-$(CONFIG_LIBAVCODEC_SO) += ae_lavc.c ENCODER_SRCS-$(CONFIG_LIBAVCODEC) += ae_lavc.c ENCODER_SRCS-$(FAAC) += ae_faac.c ENCODER_SRCS-$(TOOLAME) += ae_toolame.c ENCODER_SRCS-$(TWOLAME) += ae_twolame.c ENCODER_SRCS-$(MP3LAME) += ae_lame.c LIBAV_INC-$(CONFIG_LIBAVUTIL) += -I../libavutil LIBAV_INC-$(CONFIG_LIBAVCODEC) += -I../libavcodec ENCODER_SRCS += $(ENCODER_SRCS-yes) SRCS += $(SRCS-yes) LIBAV_INC += $(LIBAV_INC-yes) OBJS=$(SRCS:.c=.o) OBJS2=$(ENCODER_SRCS:.c=.o) CFLAGS = -I.. \ -Inative \ -I../libmpdemux \ -I../stream \ -I../loader \ $(LIBAV_INC) \ -D_GNU_SOURCE \ include ../mpcommon.mak all: $(LIBS) $(LIBNAME2): $(OBJS2) $(AR) r $@ $^ $(RANLIB) $@ clean:: rm -f native/*.o native/*.a native/*~