Commit 9a19341e authored by Clément Bœsch's avatar Clément Bœsch

doc/examples: rename LDFLAGS to LDLIBS.

parent 4522df52
# use pkg-config for getting CFLAGS abd LDFLAGS # use pkg-config for getting CFLAGS abd LDLIBS
FFMPEG_LIBS= libavdevice \ FFMPEG_LIBS= libavdevice \
libavformat \ libavformat \
libavfilter \ libavfilter \
...@@ -7,7 +7,7 @@ FFMPEG_LIBS= libavdevice \ ...@@ -7,7 +7,7 @@ FFMPEG_LIBS= libavdevice \
libavutil \ libavutil \
CFLAGS+=-Wall $(shell pkg-config --cflags $(FFMPEG_LIBS)) CFLAGS+=-Wall $(shell pkg-config --cflags $(FFMPEG_LIBS))
LDFLAGS+=$(shell pkg-config --libs $(FFMPEG_LIBS)) LDLIBS+=$(shell pkg-config --libs $(FFMPEG_LIBS))
EXAMPLES= decoding_encoding \ EXAMPLES= decoding_encoding \
filtering_video \ filtering_video \
...@@ -18,7 +18,7 @@ EXAMPLES= decoding_encoding \ ...@@ -18,7 +18,7 @@ EXAMPLES= decoding_encoding \
OBJS=$(addsuffix .o,$(EXAMPLES)) OBJS=$(addsuffix .o,$(EXAMPLES))
%: %.o %: %.o
$(CC) $< $(LDFLAGS) -o $@ $(CC) $< $(LDLIBS) -o $@
%.o: %.c %.o: %.c
$(CC) $< $(CFLAGS) -c -o $@ $(CC) $< $(CFLAGS) -c -o $@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment