1 # use pkg-config for getting CFLAGS and LDLIBS
2 FFMPEG_LIBS= libavdevice \
12 CFLAGS += $(shell pkg-config --cflags $(FFMPEG_LIBS))
13 LDLIBS += $(shell pkg-config --libs $(FFMPEG_LIBS))
15 EXAMPLES= decoding_encoding \
21 OBJS=$(addsuffix .o,$(EXAMPLES))
23 # the following examples make explicit use of the math library
24 decoding_encoding: LDLIBS += -lm
29 all: $(OBJS) $(EXAMPLES)
32 rm -rf $(EXAMPLES) $(OBJS)