X-Git-Url: https://git.sesse.net/?p=c64tapwav;a=blobdiff_plain;f=Makefile;h=28ab7bc92dae88340a950b9a7acb5680a8f2b5fc;hp=51c9c7c913388c5ca8f14fad73db77570e823b0d;hb=88155a672594488ef8f7d2f5fc91c608f9f066b3;hpb=3126f15b062dc807bf30b9c752d0ab407d00b072 diff --git a/Makefile b/Makefile index 51c9c7c..28ab7bc 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,27 @@ -CXXFLAGS=-O2 -g -Wall +CXXFLAGS=--std=gnu++0x -O2 -fno-math-errno -g -Wall +LDLIBS=-lavcodec -lavformat -lavutil -lswresample -all: synth decode +all: synth decode sync cleaner %.o: %.cpp $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $< -OBJS=decode.o 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: 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: interpolate.o sync.o + $(CXX) -o $@ $^ $(LDFLAGS) + +cleaner: cleaner.o + $(CXX) -o $@ $^ $(LDFLAGS) + clean: - $(RM) synth decode $(OBJS) $(DEPS) + $(RM) synth decode sync cleaner $(OBJS) $(DEPS)