Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-29 14:47:40 +0400
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-30 11:20:06 +0400
commit9362b5094114bd2f0cea74691ad900b19dac64f8 (patch)
treeb086f7827b6ec71ab965fe48df268d6c6b7b4a0e /doc/examples/Makefile
parentf712f6c8a4bd14bae3c41118af642b5dae7f6e2b (diff)
examples: move API examples to a dedicated dir in doc
Diffstat (limited to 'doc/examples/Makefile')
-rw-r--r--doc/examples/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/examples/Makefile b/doc/examples/Makefile
new file mode 100644
index 0000000000..facbd7e178
--- /dev/null
+++ b/doc/examples/Makefile
@@ -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)