Mercurial > libavcodec.hg
comparison Makefile @ 2900:5b9aff7944a4 libavcodec
Move all definitions of external dependencies into configure instead of
defining it in configure and the Makefiles in a random fashion.
patch by j -- at -- v2v -- dot -- cc
author | diego |
---|---|
date | Tue, 04 Oct 2005 11:19:08 +0000 |
parents | e1dfc65af0fb |
children | e578b3572987 |
comparison
equal
deleted
inserted
replaced
2899:d3a726717baf | 2900:5b9aff7944a4 |
---|---|
238 EXTRALIBS += -L../libavutil -lavutil$(BUILDSUF) | 238 EXTRALIBS += -L../libavutil -lavutil$(BUILDSUF) |
239 | 239 |
240 # currently using libdts for dts decoding | 240 # currently using libdts for dts decoding |
241 ifeq ($(CONFIG_DTS),yes) | 241 ifeq ($(CONFIG_DTS),yes) |
242 OBJS+= dtsdec.o | 242 OBJS+= dtsdec.o |
243 CFLAGS += $(DTS_INC) | |
244 EXTRALIBS += -ldts | |
245 endif | 243 endif |
246 | 244 |
247 ifeq ($(CONFIG_FAAD),yes) | 245 ifeq ($(CONFIG_FAAD),yes) |
248 OBJS+= faad.o | 246 OBJS+= faad.o |
249 ifeq ($(CONFIG_FAADBIN),yes) | |
250 # no libs needed | |
251 else | |
252 EXTRALIBS += -lfaad | |
253 endif | |
254 endif | 247 endif |
255 | 248 |
256 ifeq ($(CONFIG_FAAC),yes) | 249 ifeq ($(CONFIG_FAAC),yes) |
257 OBJS+= faac.o | 250 OBJS+= faac.o |
258 EXTRALIBS += -lfaac | |
259 endif | 251 endif |
260 | 252 |
261 ifeq ($(CONFIG_XVID),yes) | 253 ifeq ($(CONFIG_XVID),yes) |
262 OBJS+= xvidff.o | 254 OBJS+= xvidff.o |
263 EXTRALIBS += -lxvidcore | |
264 endif | 255 endif |
265 | 256 |
266 ifeq ($(CONFIG_X264),yes) | 257 ifeq ($(CONFIG_X264),yes) |
267 OBJS+= x264.o | 258 OBJS+= x264.o |
268 EXTRALIBS += -lx264 | |
269 endif | 259 endif |
270 | 260 |
271 ifeq ($(CONFIG_PP),yes) | 261 ifeq ($(CONFIG_PP),yes) |
272 ifeq ($(SHARED_PP),yes) | 262 ifeq ($(SHARED_PP),yes) |
273 EXTRALIBS += -Llibpostproc -lpostproc$(BUILDSUF) | 263 EXTRALIBS += -Llibpostproc -lpostproc$(BUILDSUF) |
277 endif | 267 endif |
278 endif | 268 endif |
279 | 269 |
280 ifeq ($(CONFIG_MP3LAME),yes) | 270 ifeq ($(CONFIG_MP3LAME),yes) |
281 OBJS += mp3lameaudio.o | 271 OBJS += mp3lameaudio.o |
282 EXTRALIBS += -lmp3lame | |
283 endif | 272 endif |
284 | 273 |
285 ifeq ($(CONFIG_LIBOGG),yes) | 274 ifeq ($(CONFIG_LIBOGG),yes) |
286 ifeq ($(CONFIG_LIBVORBIS),yes) | 275 ifeq ($(CONFIG_LIBVORBIS),yes) |
287 OBJS += oggvorbis.o | 276 OBJS += oggvorbis.o |
288 EXTRALIBS += -lvorbisenc -lvorbis | |
289 endif | 277 endif |
290 ifeq ($(CONFIG_LIBTHEORA), yes) | 278 ifeq ($(CONFIG_LIBTHEORA), yes) |
291 OBJS += oggtheora.o | 279 OBJS += oggtheora.o |
292 EXTRALIBS += -ltheora | 280 endif |
293 endif | |
294 EXTRALIBS += -logg | |
295 endif | 281 endif |
296 | 282 |
297 ifeq ($(CONFIG_LIBGSM),yes) | 283 ifeq ($(CONFIG_LIBGSM),yes) |
298 OBJS += libgsm.o | 284 OBJS += libgsm.o |
299 EXTRALIBS += -lgsm | |
300 endif | 285 endif |
301 | 286 |
302 ifeq ($(TARGET_GPROF),yes) | 287 ifeq ($(TARGET_GPROF),yes) |
303 CFLAGS+=-p | 288 CFLAGS+=-p |
304 LDFLAGS+=-p | 289 LDFLAGS+=-p |