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
|
|
|
|
2002-10-31 23:11:34 +00:00
|
|
|
AUDIO_SRCS=dec_audio.c ad.c ad_liba52.c ad_acm.c ad_alaw.c ad_dk3adpcm.c ad_dshow.c ad_dvdpcm.c ad_ffmpeg.c ad_hwac3.c ad_imaadpcm.c ad_mp3lib.c ad_msadpcm.c ad_pcm.c ad_roqaudio.c ad_msgsm.c ad_faad.c ad_libvorbis.c ad_libmad.c ad_realaud.c ad_libdv.c ad_qtaudio.c
|
2002-10-19 18:56:48 +00:00
|
|
|
VIDEO_SRCS=dec_video.c vd.c vd_null.c vd_realvid.c vd_cinepak.c vd_qtrpza.c vd_ffmpeg.c vd_dshow.c vd_vfw.c vd_vfwex.c vd_odivx.c vd_divx4.c vd_raw.c vd_xanim.c vd_msvidc.c vd_fli.c vd_qtrle.c vd_qtsmc.c vd_roqvideo.c vd_cyuv.c vd_nuv.c vd_libmpeg2.c vd_msrle.c vd_huffyuv.c vd_mpegpes.c vd_svq1.c vd_xvid.c vd_libdv.c vd_lcl.c vd_mtga.c vd_lzo.c
|
2002-10-31 23:26:11 +00:00
|
|
|
VFILTER_SRCS=vf.c vf_vo.c vf_crop.c vf_expand.c vf_pp.c vf_scale.c vf_format.c vf_yuy2.c vf_flip.c vf_rgb2bgr.c vf_rotate.c vf_mirror.c vf_palette.c vf_lavc.c vf_dvbscale.c vf_cropdetect.c vf_test.c vf_noise.c vf_yvu9.c vf_rectangle.c vf_lavcdeint.c vf_eq.c vf_eq2.c vf_halfpack.c vf_dint.c vf_1bpp.c vf_bmovl.c vf_2xsai.c vf_unsharp.c vf_swapuv.c vf_il.c vf_boxblur.c
|
2002-09-21 12:34:02 +00:00
|
|
|
ENCODER_SRCS=ve.c ve_divx4.c ve_lavc.c ve_vfw.c ve_rawrgb.c ve_libdv.c ve_xvid.c
|
2002-06-22 23:09:40 +00:00
|
|
|
NATIVE_SRCS=native/RTjpegN.c native/cinepak.c native/cyuv.c native/fli.c native/minilzo.c native/msvidc.c native/nuppelvideo.c native/qtrle.c native/qtrpza.c native/qtsmc.c native/roqav.c native/xa_gsm.c native/svq1.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
|
|
|
|
|
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
|
|
|
|
2002-04-13 19:14:34 +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)
|
|
|
|
|
2002-08-22 23:29:46 +00:00
|
|
|
CFLAGS = $(OPTFLAGS) -I. -Inative -I.. -I../libmpdemux -I../loader $(EXTRA_INC)
|
2002-02-28 00:57:30 +00:00
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
2002-04-10 23:23:36 +00:00
|
|
|
all: $(LIBNAME) $(LIBNAME2)
|
|
|
|
|
2002-02-28 00:57:30 +00:00
|
|
|
$(LIBNAME): $(OBJS)
|
|
|
|
$(AR) r $(LIBNAME) $(OBJS)
|
|
|
|
|
2002-04-10 23:23:36 +00:00
|
|
|
$(LIBNAME2): $(OBJS2)
|
|
|
|
$(AR) r $(LIBNAME2) $(OBJS2)
|
2002-02-28 00:57:30 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.a *~
|
|
|
|
|
|
|
|
distclean:
|
2002-04-13 18:04:24 +00:00
|
|
|
rm -f Makefile.bak $(OBJS) $(OBJS2) $(LIBNAME) $(LIBNAME2) *~ .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
|
|
|
|
|