forked from DocMarty84/sacd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (46 loc) · 3.21 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
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
CXX = g++
VPATH = libdstdec:libdsd2pcm:libsacd
CXXFLAGS = -std=c++17 -Wall -Wno-unknown-pragmas -Ilibdstdec -Ilibdsd2pcm -Ilibsacd -Ofast -msse3 -flto
LDFLAGS = -Llibdstdec -Llibdsd2pcm -Llibsacd -liconv -lpthread
.PHONY: all clean install
all: clean str_data ac_data coded_table frame_reader dst_decoder dst_decoder_mt \
upsampler dsd_pcm_converter \
scarletbook sacd_disc sacd_media sacd_dsdiff sacd_dsf \
main converter_core \
sacd2wav
str_data: dst_defs.h str_data.h str_data.cpp
$(CXX) $(CXXFLAGS) -c libdstdec/str_data.cpp -o libdstdec/str_data.o
ac_data: dst_defs.h ac_data.h ac_data.cpp
$(CXX) $(CXXFLAGS) -c libdstdec/ac_data.cpp -o libdstdec/ac_data.o
coded_table: dst_defs.h coded_table.h coded_table.cpp
$(CXX) $(CXXFLAGS) -c libdstdec/coded_table.cpp -o libdstdec/coded_table.o
frame_reader: str_data.h coded_table.h frame_reader.h frame_reader.cpp
$(CXX) $(CXXFLAGS) -c libdstdec/frame_reader.cpp -o libdstdec/frame_reader.o
dst_decoder: str_data.h ac_data.h coded_table.h frame_reader.h dst_decoder.h dst_decoder.cpp
$(CXX) $(CXXFLAGS) -c libdstdec/dst_decoder.cpp -o libdstdec/dst_decoder.o
dst_decoder_mt: dst_decoder.h dst_decoder_mt.h dst_decoder_mt.cpp
$(CXX) $(CXXFLAGS) -c libdstdec/dst_decoder_mt.cpp -o libdstdec/dst_decoder_mt.o
upsampler: dither.h upsampler.h upsampler.cpp
$(CXX) $(CXXFLAGS) -c libdsd2pcm/upsampler.cpp -o libdsd2pcm/upsampler.o
dsd_pcm_converter: upsampler.h dsd_pcm_converter.h dsd_pcm_converter.cpp
$(CXX) $(CXXFLAGS) -c libdsd2pcm/dsd_pcm_converter.cpp -o libdsd2pcm/dsd_pcm_converter.o
scarletbook: scarletbook.h scarletbook.cpp
$(CXX) $(CXXFLAGS) -c libsacd/scarletbook.cpp -o libsacd/scarletbook.o
sacd_disc: endianess.h scarletbook.h sacd_reader.h sacd_disc.h sacd_disc.cpp
$(CXX) $(CXXFLAGS) -c libsacd/sacd_disc.cpp -o libsacd/sacd_disc.o
sacd_media: scarletbook.h scarletbook.h sacd_media.h sacd_media.cpp
$(CXX) $(CXXFLAGS) -c libsacd/sacd_media.cpp -o libsacd/sacd_media.o
sacd_dsdiff: scarletbook.h sacd_dsd.h sacd_reader.h endianess.h sacd_dsdiff.h sacd_dsdiff.cpp
$(CXX) $(CXXFLAGS) -c libsacd/sacd_dsdiff.cpp -o libsacd/sacd_dsdiff.o
sacd_dsf: scarletbook.h sacd_dsd.h sacd_reader.h endianess.h sacd_dsf.h sacd_dsf.cpp
$(CXX) $(CXXFLAGS) -c libsacd/sacd_dsf.cpp -o libsacd/sacd_dsf.o
main: version.h sacd_reader.h sacd_disc.h sacd_dsdiff.h sacd_dsf.h dsd_pcm_converter.h main.cpp
$(CXX) $(CXXFLAGS) -c main.cpp -o main.o
converter_core: version.h sacd_reader.h sacd_disc.h sacd_dsdiff.h sacd_dsf.h dsd_pcm_converter.h converter_core.cpp
$(CXX) $(CXXFLAGS) -c converter_core.cpp -o converter_core.o
sacd2wav: frame_reader.o ac_data.o str_data.o coded_table.o dst_decoder.o dst_decoder_mt.o dsd_pcm_converter.o sacd_media.o sacd_dsf.o sacd_dsdiff.o sacd_disc.o main.o converter_core.o
$(CXX) $(CXXFLAGS) -o sacd2wav libdsd2pcm/upsampler.o libdsd2pcm/dsd_pcm_converter.o libdstdec/frame_reader.o libdstdec/ac_data.o libdstdec/str_data.o libdstdec/coded_table.o libdstdec/dst_decoder.o libdstdec/dst_decoder_mt.o libsacd/sacd_media.o libsacd/sacd_dsf.o libsacd/sacd_dsdiff.o libsacd/scarletbook.o libsacd/sacd_disc.o main.o converter_core.o $(LDFLAGS)
clean:
rm -f sacd2wav *.o libdstdec/*.o libdsd2pcm/*.o libsacd/*.o
install: sacd2wav
install ./sacd2wav /usr/local/bin