typo fixes
[mplayer/greg.git] / libmpcodecs / Makefile
blob22f197570ea787ae1dd1a7affe81e1c095d66f5a
2 include ../config.mak
4 LIBNAME = libmpcodecs.a
5 LIBNAME2 = libmpencoders.a
7 LIBS =$(LIBNAME)
8 ifeq ($(MENCODER),yes)
9 LIBS+=$(LIBNAME2)
10 endif
12 AUDIO_SRCS_LIB=ad_hwac3.c \
13 ad_liba52.c \
14 ad_mp3lib.c \
15 ad_hwmpa.c \
17 AUDIO_SRCS_NAT=ad_alaw.c \
18 ad_dk3adpcm.c \
19 ad_dvdpcm.c \
20 ad_imaadpcm.c \
21 ad_msadpcm.c \
22 ad_msgsm.c \
23 ad_pcm.c \
25 AUDIO_SRCS_OPT=ad_acm.c \
26 ad_dmo.c \
27 ad_dshow.c \
28 ad_faad.c \
29 ad_libdv.c \
30 ad_libmad.c \
31 ad_libvorbis.c \
32 ad_qtaudio.c \
33 ad_realaud.c \
34 ad_twin.c \
36 ifeq ($(CONFIG_LIBAVCODEC),yes)
37 AUDIO_SRCS_OPT+=ad_ffmpeg.c
38 endif
39 ifeq ($(CONFIG_LIBAVCODEC_SO),yes)
40 AUDIO_SRCS_OPT+=ad_ffmpeg.c
41 endif
43 AUDIO_SRCS=dec_audio.c \
44 ad.c \
45 $(AUDIO_SRCS_LIB) \
46 $(AUDIO_SRCS_NAT) \
47 $(AUDIO_SRCS_OPT) \
49 VIDEO_SRCS_LIB=vd_libmpeg2.c \
50 vd_lzo.c \
51 vd_nuv.c \
53 VIDEO_SRCS_NAT=vd_hmblck.c \
54 vd_mpegpes.c \
55 vd_mtga.c \
56 vd_null.c \
57 vd_raw.c \
58 vd_sgi.c \
60 VIDEO_SRCS_OPT=vd_divx4.c \
61 vd_dmo.c \
62 vd_dshow.c \
63 vd_libdv.c \
64 vd_odivx.c \
65 vd_qtvideo.c \
66 vd_realvid.c \
67 vd_theora.c \
68 vd_vfw.c \
69 vd_vfwex.c \
70 vd_xanim.c \
71 vd_xvid4.c \
72 vd_xvid.c \
73 vd_zrmjpeg.c \
75 ifeq ($(CONFIG_LIBAVCODEC),yes)
76 VIDEO_SRCS_OPT+=vd_ffmpeg.c
77 endif
78 ifeq ($(CONFIG_LIBAVCODEC_SO),yes)
79 VIDEO_SRCS_OPT+=vd_ffmpeg.c
80 endif
82 VIDEO_SRCS=dec_video.c \
83 vd.c \
84 $(VIDEO_SRCS_NAT) \
85 $(VIDEO_SRCS_LIB) \
86 $(VIDEO_SRCS_OPT) \
88 VFILTER_SRCS=vf.c \
89 pullup.c \
90 vf_1bpp.c \
91 vf_2xsai.c \
92 vf_bmovl.c \
93 vf_boxblur.c \
94 vf_crop.c \
95 vf_cropdetect.c \
96 vf_decimate.c \
97 vf_delogo.c \
98 vf_denoise3d.c \
99 vf_detc.c \
100 vf_dint.c \
101 vf_divtc.c \
102 vf_down3dright.c \
103 vf_dsize.c \
104 vf_dvbscale.c \
105 vf_eq2.c \
106 vf_eq.c \
107 vf_expand.c \
108 vf_field.c \
109 vf_fil.c \
110 vf_filmdint.c \
111 vf_flip.c \
112 vf_format.c \
113 vf_framestep.c \
114 vf_halfpack.c \
115 vf_harddup.c \
116 vf_hqdn3d.c \
117 vf_hue.c \
118 vf_il.c \
119 vf_ilpack.c \
120 vf_ivtc.c \
121 vf_kerndeint.c \
122 vf_mirror.c \
123 vf_noformat.c \
124 vf_noise.c \
125 vf_palette.c \
126 vf_perspective.c \
127 vf_phase.c \
128 vf_pp7.c \
129 vf_pullup.c \
130 vf_rectangle.c \
131 vf_remove_logo.c \
132 vf_rgb2bgr.c \
133 vf_rgbtest.c \
134 vf_rotate.c \
135 vf_sab.c \
136 vf_scale.c \
137 vf_smartblur.c \
138 vf_softpulldown.c \
139 vf_softskip.c \
140 vf_swapuv.c \
141 vf_telecine.c \
142 vf_test.c \
143 vf_tfields.c \
144 vf_tile.c \
145 vf_tinterlace.c \
146 vf_unsharp.c \
147 vf_vo.c \
148 vf_yuvcsp.c \
149 vf_yuy2.c \
150 vf_yvu9.c \
151 vf_screenshot.c \
153 VFILTER_LAVC_SRCS += vf_lavc.c \
154 vf_lavcdeint.c \
156 VFILTER_LAVC_DSPUTIL_SRCS += vf_uspp.c \
157 vf_fspp.c \
158 vf_qp.c \
159 vf_spp.c \
161 ifeq ($(CONFIG_LIBPOSTPROC),yes)
162 VFILTER_SRCS += vf_pp.c
163 endif
164 ifeq ($(CONFIG_LIBPOSTPROC_SO),yes)
165 VFILTER_SRCS += vf_pp.c
166 endif
168 ifeq ($(CONFIG_LIBAVCODEC),yes)
169 VFILTER_SRCS += $(VFILTER_LAVC_SRCS)
170 VFILTER_SRCS += $(VFILTER_LAVC_DSPUTIL_SRCS)
171 endif
172 ifeq ($(CONFIG_LIBAVCODEC_SO),yes)
173 VFILTER_SRCS += $(VFILTER_LAVC_SRCS)
174 endif
176 ENCODER_SRCS=ae.c \
177 ae_pcm.c \
178 ve.c \
179 ve_divx4.c \
180 ve_libdv.c \
181 ve_nuv.c \
182 ve_qtvideo.c \
183 ve_raw.c \
184 ve_vfw.c \
185 ve_xvid4.c \
186 ve_xvid.c \
188 ifeq ($(CONFIG_LIBAVCODEC),yes)
189 ENCODER_SRCS+=ve_lavc.c
190 endif
191 ifeq ($(CONFIG_LIBAVCODEC_SO),yes)
192 ENCODER_SRCS+=ve_lavc.c
193 endif
195 ifeq ($(X264),yes)
196 ENCODER_SRCS+=ve_x264.c
197 endif
199 NATIVE_SRCS=native/minilzo.c \
200 native/nuppelvideo.c \
201 native/RTjpegN.c \
202 native/xa_gsm.c \
204 ifeq ($(FAME),yes)
205 VFILTER_SRCS += vf_fame.c
206 endif
208 ifeq ($(ZORAN),yes)
209 VFILTER_SRCS += vf_zrmjpeg.c
210 endif
212 ifeq ($(PNG),yes)
213 VIDEO_SRCS += vd_mpng.c
214 endif
216 ifeq ($(JPEG),yes)
217 VIDEO_SRCS += vd_ijpg.c
218 endif
220 ifeq ($(TOOLAME),yes)
221 ENCODER_SRCS += ae_toolame.c
222 EXTRA_INC += $(TOOLAME_EXTRAFLAGS)
223 endif
225 ifeq ($(TWOLAME),yes)
226 ENCODER_SRCS += ae_twolame.c
227 endif
229 ifeq ($(CONFIG_MP3LAME),yes)
230 ENCODER_SRCS += ae_lame.c
231 endif
233 LIBAV_INC =
234 ifeq ($(CONFIG_LIBAVUTIL),yes)
235 LIBAV_INC += -I../libavutil
236 endif
237 ifeq ($(CONFIG_LIBAVCODEC),yes)
238 LIBAV_INC += -I../libavcodec
239 ENCODER_SRCS += ae_lavc.c
240 endif
241 ifeq ($(CONFIG_LIBAVCODEC_SO),yes)
242 ENCODER_SRCS += ae_lavc.c
243 endif
245 ifeq ($(MUSEPACK),yes)
246 AUDIO_SRCS += ad_mpc.c
247 endif
249 ifeq ($(SPEEX),yes)
250 AUDIO_SRCS += ad_speex.c
251 endif
253 ifeq ($(FAAC),yes)
254 ENCODER_SRCS += ae_faac.c
255 endif
257 SRCS=$(AUDIO_SRCS) \
258 $(VIDEO_SRCS) \
259 $(VFILTER_SRCS) \
260 $(NATIVE_SRCS) \
261 img_format.c \
263 OBJS=$(SRCS:.c=.o)
265 SRCS2=$(ENCODER_SRCS)
266 OBJS2=$(SRCS2:.c=.o)
268 CFLAGS = $(OPTFLAGS) \
269 -I. -I.. \
270 -Inative \
271 -I../libmpdemux \
272 -I../loader \
273 $(LIBAV_INC) \
274 $(EXTRA_INC) \
275 $(X264_INC) \
276 $(XVID_INC) \
277 -D_GNU_SOURCE \
279 .SUFFIXES: .c .o
281 # .PHONY: all clean
283 .c.o:
284 $(CC) -c $(CFLAGS) -o $@ $<
286 all: $(LIBS)
288 $(LIBNAME): $(OBJS)
289 $(AR) r $(LIBNAME) $(OBJS)
290 $(RANLIB) $(LIBNAME)
292 $(LIBNAME2): $(OBJS2)
293 $(AR) r $(LIBNAME2) $(OBJS2)
294 $(RANLIB) $(LIBNAME2)
296 clean:
297 rm -f *.o *.a *~
298 rm -f native/*.o native/*.a native/*~
300 distclean: clean
301 rm -f .depend
303 dep: depend
305 depend:
306 $(CC) -MM $(CFLAGS) $(SRCS) $(SRCS2) 1>.depend
309 # include dependency files if they exist
311 ifneq ($(wildcard .depend),)
312 include .depend
313 endif