X-Git-Url: https://git.sesse.net/?p=c64tapwav;a=blobdiff_plain;f=Makefile;h=a3cf95f54f78b4e04ebcc84ed0276594877920c3;hp=34b617d9da84b370ceec96cdc4c010443dc02007;hb=381952d4a27b064e7a64e55a739d4e08668525c2;hpb=1501ff12c469c5ac65eeb6c00b08c9646ef11212 diff --git a/Makefile b/Makefile index 34b617d..a3cf95f 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,27 @@ -all: synth decode +CXXFLAGS=--std=gnu++0x -O2 -fno-math-errno -g -Wall +LDLIBS=-lavcodec -lavformat -lavutil -lswresample + +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: 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)