4878
|
1
|
|
2 include ../config.mak
|
|
3
|
|
4 LIBNAME = libmpcodecs.a
|
5550
|
5 LIBNAME2 = libmpencoders.a
|
4878
|
6
|
5519
|
7 AUDIO_SRCS=dec_audio.c ad.c ad_a52.c ad_acm.c ad_alaw.c ad_dk3adpcm.c ad_dk4adpcm.c ad_dshow.c ad_dvdpcm.c ad_ffmpeg.c ad_hwac3.c ad_imaadpcm.c ad_mp3.c ad_msadpcm.c ad_pcm.c ad_roqaudio.c ad_msgsm.c ad_faad.c ad_vorbis.c ad_libmad.c
|
5476
|
8 VIDEO_SRCS=dec_video.c vd.c vd_null.c vd_cinepak.c vd_qtrpza.c vd_ffmpeg.c vd_dshow.c vd_vfw.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_zlib.c vd_mpegpes.c
|
5774
|
9 VFILTER_SRCS=vf.c vf_vo.c vf_crop.c vf_expand.c vf_pp.c vf_scale.c vf_fame.c vf_format.c vf_yuy2.c vf_flip.c vf_rgb2bgr.c vf_rotate.c vf_mirror.c vf_palette.c
|
5577
|
10 ENCODER_SRCS=ve.c ve_divx4.c ve_lavc.c ve_vfw.c ve_rawrgb.c ve_libdv.c
|
5603
|
11 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
|
5029
|
12
|
|
13 ifeq ($(PNG),yes)
|
5344
|
14 VIDEO_SRCS += vd_mpng.c
|
5029
|
15 endif
|
|
16
|
|
17 ifeq ($(JPEG),yes)
|
5344
|
18 VIDEO_SRCS += vd_ijpg.c
|
5029
|
19 endif
|
4878
|
20
|
5607
|
21 SRCS=$(AUDIO_SRCS) $(VIDEO_SRCS) $(VFILTER_SRCS) $(NATIVE_SRCS) img_format.c
|
4878
|
22 OBJS=$(SRCS:.c=.o)
|
|
23
|
5550
|
24 SRCS2=$(ENCODER_SRCS)
|
|
25 OBJS2=$(SRCS2:.c=.o)
|
|
26
|
5603
|
27 CFLAGS = -Wall $(OPTFLAGS) -I. -Inative -I.. -I../libmpdemux -I../loader $(EXTRA_INC)
|
4878
|
28
|
|
29 .SUFFIXES: .c .o
|
|
30
|
|
31 # .PHONY: all clean
|
|
32
|
|
33 .c.o:
|
|
34 $(CC) -c $(CFLAGS) -o $@ $<
|
|
35
|
5550
|
36 all: $(LIBNAME) $(LIBNAME2)
|
|
37
|
4878
|
38 $(LIBNAME): $(OBJS)
|
|
39 $(AR) r $(LIBNAME) $(OBJS)
|
|
40
|
5550
|
41 $(LIBNAME2): $(OBJS2)
|
|
42 $(AR) r $(LIBNAME2) $(OBJS2)
|
4878
|
43
|
|
44 clean:
|
|
45 rm -f *.o *.a *~
|
|
46
|
|
47 distclean:
|
5603
|
48 rm -f Makefile.bak $(OBJS) $(OBJS2) $(LIBNAME) $(LIBNAME2) *~ .depend
|
4878
|
49
|
|
50 dep: depend
|
|
51
|
|
52 depend:
|
5550
|
53 $(CC) -MM $(CFLAGS) $(SRCS) $(SRCS2) 1>.depend
|
4878
|
54
|
|
55 #
|
|
56 # include dependency files if they exist
|
|
57 #
|
|
58 ifneq ($(wildcard .depend),)
|
|
59 include .depend
|
|
60 endif
|
|
61
|