-
Notifications
You must be signed in to change notification settings - Fork 37
/
Makefile
30 lines (23 loc) · 913 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
include ffmpeg/config.mak
# CXXFLAGS += -Wconversion -Wno-sign-conversion
#-O3
CXXFLAGS += -fsanitize=address -std=c++1y -Wall -g -I. -I./ffmpeg \
$(shell pkg-config --cflags protobuf)
LDLIBS = -fsanitize=address -L./ffmpeg/libavdevice -lavdevice \
-L./ffmpeg/libavformat -lavformat \
-L./ffmpeg/libavfilter -lavfilter \
-L./ffmpeg/libavcodec -lavcodec \
-L./ffmpeg/libswresample -lswresample \
-L./ffmpeg/libswscale -lswscale \
-L./ffmpeg/libavutil -lavutil \
$(EXTRALIBS) \
$(shell pkg-config --libs protobuf) \
-lstdc++
recode: recode.o recode.pb.o ffmpeg/libavcodec/libavcodec.a
recode.o: recode.cpp recode.pb.h arithmetic_code.h cabac_code.h
recode.pb.cc recode.pb.h: recode.proto
protoc --cpp_out=. $<
test/arithmetic_code: test/arithmetic_code.o
test/arithmetic_code.o: test/arithmetic_code.cpp arithmetic_code.h cabac_code.h
clean:
rm -f recode recode.o recode.pb.{cc,h,o}