Browse Source

examples: move API examples to a dedicated dir in doc

tags/n0.8
Stefano Sabatini 14 years ago
parent
commit
9362b50941
5 changed files with 21 additions and 3 deletions
  1. +21
    -0
      doc/examples/Makefile
  2. +0
    -0
      doc/examples/api-example.c
  3. +0
    -0
      doc/examples/output-example.c
  4. +0
    -2
      libavcodec/Makefile
  5. +0
    -1
      libavformat/Makefile

+ 21
- 0
doc/examples/Makefile 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)

libavcodec/api-example.c → doc/examples/api-example.c View File


libavformat/output-example.c → doc/examples/output-example.c View File


+ 0
- 2
libavcodec/Makefile View File

@@ -674,8 +674,6 @@ SKIPHEADERS-$(CONFIG_VAAPI) += vaapi_internal.h
SKIPHEADERS-$(CONFIG_VDPAU) += vdpau.h
SKIPHEADERS-$(CONFIG_XVMC) += xvmc.h

EXAMPLES = api

TESTPROGS = cabac dct eval fft fft-fixed h264 iirfilter rangecoder snow
TESTPROGS-$(HAVE_MMX) += motion
TESTOBJS = dctref.o


+ 0
- 1
libavformat/Makefile View File

@@ -340,7 +340,6 @@ OBJS-$(CONFIG_UDP_PROTOCOL) += udp.o
# libavdevice dependencies
OBJS-$(CONFIG_JACK_INDEV) += timefilter.o

EXAMPLES = output
TESTPROGS = timefilter

include $(SUBDIR)../subdir.mak


Loading…
Cancel
Save