-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (31 loc) · 1.11 KB
/
Makefile
File metadata and controls
43 lines (31 loc) · 1.11 KB
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
37
38
39
40
41
42
43
FLAGS ?= -O2 -g -msse4.1
SRCDIR ?= ..
COMMON_FLAGS = $(FLAGS) -D_GNU_SOURCE -I$(SRCDIR)/src/
MKDIR_P = mkdir -p
vpath %.c $(SRCDIR) $(SRCDIR)/tools
vpath %.cpp $(SRCDIR) $(SRCDIR)/tools
TARGETS=astat_lib astat_test convert decklink_temperature uyvy2yuv422p thumbnailgen
all: $(TARGETS)
%.o : %.c
$(MKDIR_P) $(dir $@)
$(CC) $(COMMON_FLAGS) -c $< -o $@
%.o : %.cpp
$(MKDIR_P) $(dir $@)
$(CXX) -std=c++17 $(COMMON_FLAGS) -c $< -o $@
astat_test: astat.cpp src/compat/platform_pipe.o
c++ -g -DASTAT_DEBUG -DDEFINE_TEST_MAIN $(COMMON_FLAGS) $^ -pthread -o astat_test
astat_lib: astat.a
astat.a: astat.o src/compat/platform_pipe.o
ar rcs astat.a $^
convert: src/pixfmt_conv.o src/video_codec.o convert.o src/debug.o \
src/utils/color_out.o src/utils/misc.o src/video_frame.o \
src/utils/pam.c src/utils/y4m.c
$(CXX) $^ -o convert
decklink_temperature: decklink_temperature.cpp ext-deps/DeckLink/Linux/DeckLinkAPIDispatch.o
$(CXX) $^ -o $@
uyvy2yuv422p: uyvy2yuv422p.c
$(CC) -g -std=c99 -Wall $< -o $@
thumbnailgen: thumbnailgen.o ipc_frame.o ipc_frame_unix.o
$(CXX) $^ -o $@ -ljpeg
clean:
$(RM) $(TARGETS) *o