Add Makefiles for all C demos

This commit is contained in:
Nirbheek Chauhan 2018-03-23 12:10:26 +05:30
parent 2d2bc0fe0e
commit 0e1be2a63f
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,6 @@
CC := gcc
LIBS := $(shell pkg-config --libs --cflags gstreamer-webrtc-1.0 gstreamer-sdp-1.0 libsoup-2.4 json-glib-1.0)
CFLAGS := -O0 -ggdb -Wall -fno-omit-frame-pointer
mp-webrtc-sendrecv: mp-webrtc-sendrecv.c
"$(CC)" $(CFLAGS) $^ $(LIBS) -o $@

View file

@ -0,0 +1,6 @@
CC := gcc
LIBS := $(shell pkg-config --libs --cflags gstreamer-webrtc-1.0 gstreamer-sdp-1.0 libsoup-2.4 json-glib-1.0)
CFLAGS := -O0 -ggdb -Wall -fno-omit-frame-pointer
webrtc-sendrecv: webrtc-sendrecv.c
"$(CC)" $(CFLAGS) $^ $(LIBS) -o $@