07251fe3c2fd894f285f71b4a586f6aa14adef55
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
= avio_reading \
28 OBJS
=$(addsuffix .o
,$(EXAMPLES
))
30 # the following examples make explicit use of the math library
31 avcodec
: LDLIBS
+= -lm
33 resampling_audio
: LDLIBS
+= -lm
35 .phony
: all clean-test
clean
37 all: $(OBJS
) $(EXAMPLES
)
40 $(RM
) test*.pgm
test.h264
test.mp2
test.sw
test.mpg
43 $(RM
) $(EXAMPLES
) $(OBJS
)