Make the global App variable static
[gst-aseq-appsrc.git] / Makefile
1 CFLAGS = -std=c99 -pedantic -pedantic-errors -Wall -g3 -O2
2 CFLAGS += -fno-common \
3         -fvisibility=hidden \
4         -Wall \
5         -Wdeclaration-after-statement \
6         -Wextra \
7         -Wformat=2 \
8         -Winit-self \
9         -Winline \
10         -Wpacked \
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         -Wno-unused-parameter \
28         -Wwrite-strings \
29         -Wp,-D_FORTIFY_SOURCE=2 \
30         -fstack-protector \
31         --param=ssp-buffer-size=4
32
33 # for strdup
34 CFLAGS += -D_POSIX_C_SOURCE=200809L
35
36 CFLAGS += $(shell pkg-config --cflags gstreamer-1.0 gstreamer-app-1.0 alsa)
37 LDLIBS := $(shell pkg-config --libs gstreamer-1.0 gstreamer-app-1.0 alsa)
38
39 gst-aseq-appsrc: gst-aseq-appsrc.o
40
41 clean:
42         rm -f *.o *~ gst-aseq-appsrc