1 # use pkg-config for getting CFLAGS and LDLIBS
2 FFMPEG_LIBS= libavdevice \
11 CFLAGS := $(shell pkg-config --cflags $(FFMPEG_LIBS)) $(CFLAGS)
12 LDLIBS := $(shell pkg-config --libs $(FFMPEG_LIBS)) $(LDLIBS)
14 EXAMPLES= decoding_encoding \
24 OBJS=$(addsuffix .o,$(EXAMPLES))
26 # the following examples make explicit use of the math library
27 decoding_encoding: LDLIBS += -lm
29 resampling_audio: LDLIBS += -lm
31 .phony: all clean-test clean
33 all: $(OBJS) $(EXAMPLES)
36 $(RM) test*.pgm test.h264 test.mp2 test.sw test.mpg
39 $(RM) $(EXAMPLES) $(OBJS)