examples: move API examples to a dedicated dir in doc

This commit is contained in:
Stefano Sabatini
2011-05-29 12:47:40 +02:00
parent f712f6c8a4
commit 9362b50941
5 changed files with 21 additions and 3 deletions

21
doc/examples/Makefile Normal file
View File

@ -0,0 +1,21 @@
# use pkg-config for getting CFLAGS abd LDFLAGS
FFMPEG_LIBS=libavdevice libavformat libavfilter libavcodec libswscale libavutil
CFLAGS+=$(shell pkg-config --cflags $(FFMPEG_LIBS))
LDFLAGS+=$(shell pkg-config --libs $(FFMPEG_LIBS))
EXAMPLES=api-example output-example
OBJS=$(addsuffix .o,$(EXAMPLES))
%: %.o
$(CC) $< $(LDFLAGS) -o $@
%.o: %.c
$(CC) $< $(CFLAGS) -c -o $@
.phony: all clean
all: $(OBJS) $(EXAMPLES)
clean:
rm -rf $(EXAMPLES) $(OBJS)