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
|
5557
|
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
|
5550
|
10 ENCODER_SRCS=ve.c ve_divx4.c ve_lavc.c ve_vfw.c ve_rawrgb.c
|
5029
|
11
|
|
12 ifeq ($(PNG),yes)
|
5344
|
13 VIDEO_SRCS += vd_mpng.c
|
5029
|
14 endif
|
|
15
|
|
16 ifeq ($(JPEG),yes)
|
5344
|
17 VIDEO_SRCS += vd_ijpg.c
|
5029
|
18 endif
|
4878
|
19
|
5552
|
20 SRCS=$(AUDIO_SRCS) $(VIDEO_SRCS) $(VFILTER_SRCS)
|
4878
|
21 OBJS=$(SRCS:.c=.o)
|
|
22
|
5550
|
23 SRCS2=$(ENCODER_SRCS)
|
|
24 OBJS2=$(SRCS2:.c=.o)
|
|
25
|
4878
|
26 CFLAGS = -Wall $(OPTFLAGS) -I. -I.. -I../libmpdemux -I../loader $(EXTRA_INC)
|
|
27
|
|
28 .SUFFIXES: .c .o
|
|
29
|
|
30 # .PHONY: all clean
|
|
31
|
|
32 .c.o:
|
|
33 $(CC) -c $(CFLAGS) -o $@ $<
|
|
34
|
5550
|
35 all: $(LIBNAME) $(LIBNAME2)
|
|
36
|
4878
|
37 $(LIBNAME): $(OBJS)
|
|
38 $(AR) r $(LIBNAME) $(OBJS)
|
|
39
|
5550
|
40 $(LIBNAME2): $(OBJS2)
|
|
41 $(AR) r $(LIBNAME2) $(OBJS2)
|
4878
|
42
|
|
43 clean:
|
|
44 rm -f *.o *.a *~
|
|
45
|
|
46 distclean:
|
|
47 rm -f Makefile.bak *.o *.a *~ .depend
|
|
48
|
|
49 dep: depend
|
|
50
|
|
51 depend:
|
5550
|
52 $(CC) -MM $(CFLAGS) $(SRCS) $(SRCS2) 1>.depend
|
4878
|
53
|
|
54 #
|
|
55 # include dependency files if they exist
|
|
56 #
|
|
57 ifneq ($(wildcard .depend),)
|
|
58 include .depend
|
|
59 endif
|
|
60
|