]> git.sesse.net Git - c64tapwav/blob - Makefile
Fix some compatibility issues in level.cpp, and possibly also a tiny accuracy improve...
[c64tapwav] / Makefile
1 CXXFLAGS=--std=gnu++0x -O2 -ffast-math -g -Wall
2
3 all: synth decode sync level cleaner
4
5 %.o: %.cpp
6         $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
7
8 OBJS=decode.o synth.o synth_main.o interpolate.o sync.o level.o
9
10 DEPS=$(OBJS:.o=.d)
11 -include $(DEPS)
12
13 decode: interpolate.o decode.o
14         $(CXX) -o $@ $^ $(LDFLAGS)
15
16 synth: synth.o synth_main.o
17         $(CXX) -o $@ $^ $(LDFLAGS)
18
19 sync: interpolate.o sync.o
20         $(CXX) -o $@ $^ $(LDFLAGS)
21
22 level: level.o
23         $(CXX) -o $@ $^ $(LDFLAGS)
24
25 cleaner: cleaner.o
26         $(CXX) -o $@ $^ $(LDFLAGS)
27
28 clean:
29         $(RM) synth decode sync level cleaner $(OBJS) $(DEPS)