Link to libraries in dependency order.
[ffmpeg.git] / libavdevice / Makefile
1 include ../config.mak
2
3 NAME=avdevice
4 LIBVERSION=$(LAVDVERSION)
5 LIBMAJOR=$(LAVDMAJOR)
6
7 EXTRALIBS := -L$(BUILD_ROOT)/libavformat -lavformat$(BUILDSUF) \
8              -L$(BUILD_ROOT)/libavcodec  -lavcodec$(BUILDSUF) \
9              -L$(BUILD_ROOT)/libavutil   -lavutil$(BUILDSUF) $(EXTRALIBS)
10
11 CFLAGS += -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavformat
12
13 OBJS = alldevices.o
14
15 HEADERS = avdevice.h
16
17 # input/output devices
18 OBJS-$(CONFIG_BKTR_DEMUXER)              += bktr.o
19 OBJS-$(CONFIG_DV1394_DEMUXER)            += dv1394.o
20 OBJS-$(CONFIG_OSS_DEMUXER)               += audio.o
21 OBJS-$(CONFIG_OSS_MUXER)                 += audio.o
22 OBJS-$(CONFIG_V4L2_DEMUXER)              += v4l2.o
23 OBJS-$(CONFIG_V4L_DEMUXER)               += v4l.o
24 OBJS-$(CONFIG_X11_GRAB_DEVICE_DEMUXER)   += x11grab.o
25
26 # external libraries
27 OBJS-$(CONFIG_LIBDC1394_DEMUXER)         += libdc1394.o
28
29 CPPOBJS-$(CONFIG_AUDIO_BEOS_DEMUXER)     += beosaudio.o
30 CPPOBJS-$(CONFIG_AUDIO_BEOS_MUXER)       += beosaudio.o
31
32 include ../common.mak