X-Git-Url: https://git.sesse.net/?p=c64tapwav;a=blobdiff_plain;f=Makefile;h=2756d4f74f0f9029a37b7afd5add4a43c6bce767;hp=a5c7b66a79a7be95bd37f8378226f1af6f5fd8cc;hb=HEAD;hpb=8d7d0c656008d93b3bf5368863e42720e3753999 diff --git a/Makefile b/Makefile index a5c7b66..2756d4f 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,18 @@ -CXXFLAGS=-O2 -ffast-math -g -Wall +CXXFLAGS=--std=gnu++0x -O2 -fno-math-errno -march=native -g -Wall +LDLIBS=-lavcodec -lavformat -lavutil -lswresample -all: synth decode sync level +all: synth decode sync cleaner %.o: %.cpp $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $< -OBJS=decode.o synth.o synth_main.o interpolate.o sync.o level.o +OBJS=audioreader.o decode.o synth.o synth_main.o interpolate.o sync.o level.o filter.o DEPS=$(OBJS:.o=.d) -include $(DEPS) -decode: interpolate.o 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) @@ -19,8 +20,8 @@ synth: synth.o synth_main.o sync: interpolate.o sync.o $(CXX) -o $@ $^ $(LDFLAGS) -level: level.o +cleaner: cleaner.o $(CXX) -o $@ $^ $(LDFLAGS) clean: - $(RM) synth decode sync level $(OBJS) $(DEPS) + $(RM) synth decode sync cleaner $(OBJS) $(DEPS)