-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
84 lines (67 loc) · 1.54 KB
/
Makefile
File metadata and controls
84 lines (67 loc) · 1.54 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
CFLAGS += -Wall -Wextra -std=c17 -pedantic
CXXFLAGS += -Wall -Wextra -std=c++20 -pedantic
CPPFLAGS += -Ilibcuefile/include -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_DEFAULT_SOURCE
LIBS += -lFLAC -lFLAC++ -lboost_program_options -lboost_stacktrace_basic -lebur128 -licuuc -lsndfile
#CFLAGS += -g -O0
#CXXFLAGS += -g -O0
OBJS = \
decode.o \
encode.o \
errors.o \
loudness.o \
main.o \
replaygain_writer.o \
sanitize.o \
transcode.o \
libcuefile.a \
#
all: recursive-all flacsplit
recursive-all:
@if [ ! -f libcuefile/Makefile ]; then (cd libcuefile && cmake .); fi
@make -C libcuefile
libcuefile.a: recursive-all
ln -sf libcuefile/src/libcuefile.a
flacsplit: $(OBJS)
$(CXX) $(LDFLAGS) $^ $(LIBS) -o $@
decode.o: decode.cpp \
decode.hpp \
errors.hpp \
transcode.hpp
encode.o: encode.cpp \
encode.hpp \
errors.hpp \
replaygain_writer.hpp \
transcode.hpp
errors.o: errors.cpp \
errors.hpp
loudness.o: \
loudness.cpp \
errors.hpp \
loudness.hpp
main.o: main.cpp \
decode.hpp \
encode.hpp \
errors.hpp \
loudness.hpp \
replaygain_writer.hpp \
sanitize.hpp \
transcode.hpp
replaygain_writer.o: replaygain_writer.cpp \
loudness.hpp \
replaygain_writer.hpp
sanitize.o: sanitize.cpp \
sanitize.hpp
transcode.o: transcode.cpp \
transcode.hpp
compile_commands.json:
bear -- $(MAKE) clean all
clean:
rm -f $(OBJS) flacsplit
distclean: clean
@if [ -f libcuefile/Makefile ]; then make clean -C libcuefile; fi
find libcuefile \
-name CMakeFiles -o \
-name CMakeCache.txt -o \
-name Makefile -o \
-name cmake_install.cmake | \
xargs rm -rf