-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmakefile.common
89 lines (79 loc) · 4.13 KB
/
makefile.common
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
85
86
87
88
89
objects = \
./jukebox/Sound/Sound.o ./jukebox/Sound/SoundImpl.o ./jukebox/Sound/Factory.o \
./jukebox/Sound/FileWriterSoundImpl.o \
./jukebox/FileFormats/SoundFile.o ./jukebox/FileFormats/SoundFileImpl.o \
./jukebox/FileFormats/WaveFileImpl.o ./jukebox/FileFormats/VorbisFileImpl.o \
./jukebox/FileFormats/MP3FileImpl.o ./jukebox/FileFormats/MIDIFileImpl.o \
./jukebox/FileFormats/ModFileImpl.o \
./jukebox/FileFormats/FLACFileImpl.o \
./jukebox/Mixer/Mixer.o \
./jukebox/Sound/Decorators/FadeOnStopSoundImpl.o \
./jukebox/Decoders/Decorators/DecoderImplDecorator.o \
./jukebox/Decoders/Decorators/DistortionImpl.o \
./jukebox/Decoders/Decorators/JointStereoImpl.o \
./jukebox/Decoders/Decorators/MovingAverageImpl.o \
./jukebox/Decoders/Decorators/FadeOnStopImpl.o ./jukebox/Decoders/Decorators/FadeImpl.o \
./jukebox/Decoders/Decorators/ReverbImpl.o ./jukebox/Decoders/Decorators/SampleResolutionImpl.o \
./jukebox/Decoders/Decoder.o ./jukebox/Decoders/DecoderImpl.o ./jukebox/Decoders/WaveDecoderImpl.o \
./jukebox/Decoders/VorbisDecoderImpl.o \
./jukebox/Decoders/MP3DecoderImpl.o ./jukebox/Decoders/MIDIDecoderImpl.o ./jukebox/Decoders/FLACDecoderImpl.o \
./jukebox/Decoders/ModDecoderImpl.o \
./jukebox/Decoders/fluidsynth/fs.o \
./jukebox/Decoders/micromod/micromod.o
SRCS = \
./jukebox/Sound/Sound.cpp ./jukebox/Sound/SoundImpl.cpp ./jukebox/Sound/Factory.cpp \
./jukebox/Sound/FileWriterSoundImpl.cpp \
./jukebox/FileFormats/SoundFile.cpp ./jukebox/FileFormats/SoundFileImpl.cpp \
./jukebox/FileFormats/WaveFileImpl.cpp ./jukebox/FileFormats/VorbisFileImpl.cpp \
./jukebox/FileFormats/MP3FileImpl.cpp ./jukebox/FileFormats/MIDIFileImpl.cpp ./jukebox/FileFormats/FLACFileImpl.cpp \
./jukebox/FileFormats/ModFileImpl.cpp \
./jukebox/Mixer/Mixer.cpp \
./jukebox/Decoders/Decorators/DecoderImplDecorator.cpp \
./jukebox/Decoders/Decorators/DistortionImpl.cpp \
./jukebox/Decoders/Decorators/JointStereoImpl.cpp \
./jukebox/Decoders/Decorators/MovingAverageImpl.cpp \
./jukebox/Decoders/Decorators/FadeOnStopImpl.cpp ./jukebox/Decoders/Decorators/FadeImpl.cpp \
./jukebox/Decoders/Decorators/ReverbImpl.cpp ./jukebox/Decoders/Decorators/SampleResolutionImpl.cpp \
./jukebox/Decoders/Decoder.cpp ./jukebox/Decoders/DecoderImpl.cpp ./jukebox/Decoders/WaveDecoderImpl.cpp \
./jukebox/Decoders/VorbisDecoderImpl.cpp \
./jukebox/Decoders/MP3DecoderImpl.cpp ./jukebox/Decoders/MIDIDecoderImpl.cpp ./jukebox/Decoders/FLACDecoderImpl.cpp \
./jukebox/Decoders/ModDecoderImpl.cpp \
./jukebox_test/demo/test.cpp ./jukebox_test/demo/play.cpp ./jukebox_test/demo/loop.cpp \
./jukebox_test/demo/soundfontDemo.cpp \
./jukebox/Decoders/fluidsynth/fs.c \
./jukebox/Decoders/micromod/micromod.c
DEPDIR := .d
$(shell mkdir -p $(DEPDIR) >/dev/null)
$(shell mkdir -p $(DEPDIR)/jukebox >/dev/null)
$(shell mkdir -p $(DEPDIR)/jukebox/Sound >/dev/null)
$(shell mkdir -p $(DEPDIR)/jukebox/Decoders/Decorators >/dev/null)
$(shell mkdir -p $(DEPDIR)/jukebox/Decoders/fluidsynth >/dev/null)
$(shell mkdir -p $(DEPDIR)/jukebox/Decoders/micromod >/dev/null)
$(shell mkdir -p $(DEPDIR)/jukebox/Sound/Decorators >/dev/null)
$(shell mkdir -p $(DEPDIR)/jukebox/Decoders >/dev/null)
$(shell mkdir -p $(DEPDIR)/jukebox/FileFormats >/dev/null)
$(shell mkdir -p $(DEPDIR)/jukebox/Mixer >/dev/null)
$(shell mkdir -p $(DEPDIR)/jukebox_test >/dev/null)
$(shell mkdir -p $(DEPDIR)/jukebox_test/demo >/dev/null)
DEPFLAGS = -MT $@ -MMD -MP -MF $(DEPDIR)/$*.Td
CXXFLAGS += -DJUKEBOX_HAS_MIDI
CFLAGS += -DHAVE_UNISTD_H
COMPILE.c = $(CC) $(DEPFLAGS) $(CFLAGS) $(TARGET_ARCH) -c
COMPILE.cc = $(CXX) $(DEPFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
POSTCOMPILE = @mv -f $(DEPDIR)/$*.Td $(DEPDIR)/$*.d && touch $@
%.o : %.c
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
%.o : %.c $(DEPDIR)/%.d
$(COMPILE.c) $(OUTPUT_OPTION) $<
$(POSTCOMPILE)
%.o : %.cc
%.o : %.cc $(DEPDIR)/%.d
$(COMPILE.cc) $(OUTPUT_OPTION) $<
$(POSTCOMPILE)
%.o : %.cxx
%.o : %.cxx $(DEPDIR)/%.d
$(COMPILE.cc) $(OUTPUT_OPTION) $<
$(POSTCOMPILE)
$(DEPDIR)/%.d: ;
.PRECIOUS: $(DEPDIR)/%.d
include $(wildcard $(patsubst %,$(DEPDIR)/%.d,$(basename $(SRCS))))