-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (29 loc) · 1 KB
/
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
31
32
33
34
35
36
#### note to vim & Makefile
# 1. set expandtab for Makefile in ~/.vimrc
# autocmd FileType make set tabstop=4 shiftwidth=4 softtabstop=0 expandtab
# 2. use tab only at the begining of make command
# - temp disable expandtab: set noexpandtab
# - use tab manually
TARGET=v4l2dec
LOCAL_INSTALL_DIR=${HOME}/MM_Local/
LOCAL_BUILD_FLAGS= \
-g \
-I./ \
-I../../../include/multimedia/ \
-D__ENABLE_AVFORMAT__ `pkg-config --cflags --libs libavformat libavcodec libavutil`
LOCAL_SOURCE_FILES= \
v4l2decode.cpp \
util.cpp \
input/decodeinput.cpp \
input/decodeinputavformat.cpp
all:${TARGET}
${TARGET}:
g++ \
${LOCAL_SOURCE_FILES} \
${LOCAL_BUILD_FLAGS} \
-ldl \
-o ${TARGET}
clean:
rm -rf ${TARGET}
install:
cp ${TARGET} ${LOCAL_INSTALL_DIR}/usr/bin/