X-Git-Url: https://git.sesse.net/?p=c64tapwav;a=blobdiff_plain;f=Makefile;h=a3cf95f54f78b4e04ebcc84ed0276594877920c3;hp=2f1b6728df609e8472b8940abd55e0ef7d7471eb;hb=cec99d15ad920457eea61bc442b5ba610c13430e;hpb=9e9da751d8df66b61d930cdf643c65c61ebb4f8a diff --git a/Makefile b/Makefile index 2f1b672..a3cf95f 100644 --- a/Makefile +++ b/Makefile @@ -1,23 +1,27 @@ -CXXFLAGS=-O2 -g -Wall +CXXFLAGS=--std=gnu++0x -O2 -fno-math-errno -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)