Files
videostreamer/cmd/remux_example/Makefile
Will Storey 7f16d84882 Initial import
This works for streaming mp4 from rtsp. But only to the first client as
it is unable to recognize discrete frames correctly. It needs further
work.
2016-12-31 13:12:45 -08:00

59 lines
1.2 KiB
Makefile

CC=gcc
# Reviewed warnings for gcc 6.2.1
CFLAGS = \
-std=c11 -g -ggdb -pedantic -pedantic-errors \
-Werror -Wall -Wextra \
-Wformat=2 \
-Wformat-signedness \
-Wnull-dereference \
-Winit-self \
-Wmissing-include-dirs \
-Wshift-overflow=2 \
-Wswitch-default \
-Wswitch-enum \
-Wunused-const-variable=2 \
-Wuninitialized \
-Wunknown-pragmas \
-Wstrict-overflow=5 \
-Wsuggest-attribute=pure \
-Wsuggest-attribute=const \
-Wsuggest-attribute=noreturn \
-Wsuggest-attribute=format \
-Warray-bounds=2 \
-Wduplicated-cond \
-Wfloat-equal \
-Wundef \
-Wshadow \
-Wbad-function-cast \
-Wcast-qual \
-Wcast-align \
-Wwrite-strings \
-Wconversion \
-Wjump-misses-init \
-Wlogical-op \
-Waggregate-return \
-Wcast-align \
-Wstrict-prototypes \
-Wold-style-definition \
-Wmissing-prototypes \
-Wmissing-declarations \
-Wpacked \
-Wredundant-decls \
-Wnested-externs \
-Winline \
-Winvalid-pch \
-Wstack-protector
TARGETS=remux_example
all: $(TARGETS)
remux_example: remux_example.c \
../../videostreamer.c ../../videostreamer.h
$(CC) $(CFLAGS) -I../../ -o $@ $< ../../videostreamer.c -lavformat \
-lavdevice -lavcodec -lavutil
clean:
rm -f $(TARGETS)