-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
24 lines (19 loc) · 865 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
# use pkg-config for getting CFLAGS and LDLIBS
FFMPEG_LIBS= libavdevice \
libavformat \
libavfilter \
libavcodec \
libswresample \
libswscale \
libavutil \
CFLAGS += -Wall -g -O3
CFLAGS := $(shell pkg-config --cflags $(FFMPEG_LIBS)) $(CFLAGS)
CFLAGS := -I/usr/local/opt/gettext/include $(CFLAGS)
LDLIBS := $(shell pkg-config --libs $(FFMPEG_LIBS)) $(LDLIBS)
LDLIBS := -L/usr/local/opt/gettext/lib $(LDLIBS)
# the following examples make explicit use of the math library
split_video: LDLIBS += -lm
.phony: all clean-test clean
all: split_video split_video.o
clean:
$(RM) split_video split_video.o