]> git.sesse.net Git - c64tapwav/blobdiff - Makefile
Compile in native by default, since AVX helps so much.
[c64tapwav] / Makefile
index 2f1b6728df609e8472b8940abd55e0ef7d7471eb..956b7908d6ea6baf2281aa164a91e1da2052b41a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,23 +1,27 @@
-CXXFLAGS=-O2 -g -Wall
+CXXFLAGS=--std=gnu++0x -O2 -fno-math-errno -march=native -g -Wall
+LDLIBS=-lavcodec -lavformat -lavutil -lswresample
 
-all: synth decode sync
+all: synth decode sync cleaner
 
 %.o: %.cpp
        $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
 
-OBJS=decode.o synth.o synth_main.o
+OBJS=decode.o synth.o synth_main.o interpolate.o sync.o level.o filter.o
 
 DEPS=$(OBJS:.o=.d)
 -include $(DEPS)
 
-decode: decode.o
-       $(CXX) -o $@ $^ $(LDFLAGS)
+decode: interpolate.o audioreader.o decode.o level.o filter.o
+       $(CXX) -o $@ $^ $(LDLIBS) $(LDFLAGS)
 
 synth: synth.o synth_main.o
        $(CXX) -o $@ $^ $(LDFLAGS)
 
-sync: sync.o
+sync: interpolate.o sync.o
+       $(CXX) -o $@ $^ $(LDFLAGS)
+
+cleaner: cleaner.o
        $(CXX) -o $@ $^ $(LDFLAGS)
 
 clean:
-       $(RM) synth decode sync $(OBJS) $(DEPS)
+       $(RM) synth decode sync cleaner $(OBJS) $(DEPS)