X-Git-Url: https://git.sesse.net/?p=c64tapwav;a=blobdiff_plain;f=Makefile;h=a4eaae96daf6f4d9793bbb2eb095c31283718d22;hp=2f1b6728df609e8472b8940abd55e0ef7d7471eb;hb=866751f2909657ee7d62f936e3d2cb2ecb7806fb;hpb=9e9da751d8df66b61d930cdf643c65c61ebb4f8a diff --git a/Makefile b/Makefile index 2f1b672..a4eaae9 100644 --- a/Makefile +++ b/Makefile @@ -1,23 +1,29 @@ -CXXFLAGS=-O2 -g -Wall +CXXFLAGS=--std=gnu++0x -O2 -ffast-math -g -Wall -all: synth decode sync +all: synth decode sync level 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 DEPS=$(OBJS:.o=.d) -include $(DEPS) -decode: decode.o +decode: interpolate.o decode.o $(CXX) -o $@ $^ $(LDFLAGS) synth: synth.o synth_main.o $(CXX) -o $@ $^ $(LDFLAGS) -sync: sync.o +sync: interpolate.o sync.o + $(CXX) -o $@ $^ $(LDFLAGS) + +level: level.o + $(CXX) -o $@ $^ $(LDFLAGS) + +cleaner: cleaner.o $(CXX) -o $@ $^ $(LDFLAGS) clean: - $(RM) synth decode sync $(OBJS) $(DEPS) + $(RM) synth decode sync level cleaner $(OBJS) $(DEPS)