]> git.sesse.net Git - c64tapwav/blobdiff - Makefile
Use float samples internally.
[c64tapwav] / Makefile
index a5c7b66a79a7be95bd37f8378226f1af6f5fd8cc..44e2a5c2a73051cb08c10751ad804e191cca7c83 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
-CXXFLAGS=-O2 -ffast-math -g -Wall
+CXXFLAGS=--std=gnu++0x -O2 -fno-math-errno -g -Wall
+LDLIBS=-lavcodec -lavformat -lavutil -lswresample
 
-all: synth decode sync level
+all: synth decode sync level cleaner
 
 %.o: %.cpp
        $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
@@ -10,8 +11,8 @@ OBJS=decode.o synth.o synth_main.o interpolate.o sync.o level.o
 DEPS=$(OBJS:.o=.d)
 -include $(DEPS)
 
-decode: interpolate.o decode.o
-       $(CXX) -o $@ $^ $(LDFLAGS)
+decode: interpolate.o audioreader.o decode.o
+       $(CXX) -o $@ $^ $(LDLIBS) $(LDFLAGS)
 
 synth: synth.o synth_main.o
        $(CXX) -o $@ $^ $(LDFLAGS)
@@ -22,5 +23,8 @@ sync: interpolate.o sync.o
 level: level.o
        $(CXX) -o $@ $^ $(LDFLAGS)
 
+cleaner: cleaner.o
+       $(CXX) -o $@ $^ $(LDFLAGS)
+
 clean:
-       $(RM) synth decode sync level $(OBJS) $(DEPS)
+       $(RM) synth decode sync level cleaner $(OBJS) $(DEPS)