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