python: update python examples to modern python, Gst, and Glib versions
[experiments/gstreamer.git] / c / gst-basic-example / Makefile
1 CFLAGS = -std=c99 -pedantic -pedantic-errors -Wall -g3 -O2 -D_ANSI_SOURCE_
2 CFLAGS += -fno-common \
3           -Wall \
4           -Wdeclaration-after-statement \
5           -Wextra \
6           -Wformat=2 \
7           -Winit-self \
8           -Winline \
9           -Wpacked \
10           -Wp,-D_FORTIFY_SOURCE=2 \
11           -Wpointer-arith \
12           -Wlarger-than-65500 \
13           -Wmissing-declarations \
14           -Wmissing-format-attribute \
15           -Wmissing-noreturn \
16           -Wmissing-prototypes \
17           -Wnested-externs \
18           -Wold-style-definition \
19           -Wredundant-decls \
20           -Wsign-compare \
21           -Wstrict-aliasing=2 \
22           -Wstrict-prototypes \
23           -Wundef \
24           -Wunreachable-code \
25           -Wunsafe-loop-optimizations \
26           -Wunused-but-set-variable \
27           -Wwrite-strings
28
29 CFLAGS += $(shell pkg-config --cflags gstreamer-1.0)
30 LDLIBS += $(shell pkg-config --libs gstreamer-1.0)
31
32 gst-basic-example: gst-basic-example.o
33
34 clean:
35         rm -f *~ *.o  gst-basic-example
36
37 test: gst-basic-example
38         G_DEBUG=gc-friendly G_SLICE=always-malloc \
39         valgrind --leak-check=full --show-reachable=yes ./gst-basic-example