-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
18 lines (12 loc) · 1.29 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.PHONY: all
all: example1 example2 example3 example4
example1:
g++ -std=c++11 -O3 01-remuxing.cpp -lsrt -lpthread -lz -ldl -lswresample -lm -lva -lva-drm /usr/lib64/libavformat.a /usr/lib64/libavcodec.a /usr/lib64/libx264.a /usr/lib64/libswresample.a /usr/lib64/libavutil.a /usr/lib64/libfdk-aac.a -o remux
example2:
g++ -std=c++11 -O3 02-reading-from-memory.cpp -lsrt -lpthread -lcrypto -lz -ldl -lswresample -lm -lva -lva-drm /usr/lib64/libavformat.a /usr/lib64/libavcodec.a /usr/lib64/libx264.a /usr/lib64/libswresample.a /usr/lib64/libavutil.a /usr/lib64/libfdk-aac.a -o read_from_memory
example3:
g++ -std=c++11 -O3 03-writing-to-memory.cpp -lsrt -lpthread -lcrypto -lz -ldl -lswresample -lm -lva -lva-drm /usr/lib64/libavformat.a /usr/lib64/libavcodec.a /usr/lib64/libx264.a /usr/lib64/libswresample.a /usr/lib64/libavutil.a /usr/lib64/libfdk-aac.a -o write_to_memory
example4:
g++ -std=c++11 -O3 04-reading-from-srt.cpp ring_buffer.cpp -I/usr/include/srt -lsrt -lpthread -lcrypto -lz -ldl -lswresample -lm -lva -lva-drm -lstdc++ /usr/lib64/libavformat.a /usr/lib64/libavcodec.a /usr/lib64/libx264.a /usr/lib64/libswresample.a /usr/lib64/libswscale.a /usr/lib64/libx264.a /usr/lib64/libavutil.a /usr/lib64/libfdk-aac.a -o srt_to_flv
clean:
rm -f remux read_from_memory write_to_memory srt_to_flv test.flv