X-Git-Url: https://git.sesse.net/?p=c64tapwav;a=blobdiff_plain;f=Makefile;h=51c9c7c913388c5ca8f14fad73db77570e823b0d;hp=50610c3e8092ec8a3ef86b19b82c9fd71b5e35ed;hb=e63c445e316df590e449aaf8f23461ceabdff5b6;hpb=02cfbb7d322c6a683924ceb3b6277fca33c6b97e diff --git a/Makefile b/Makefile index 50610c3..51c9c7c 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,20 @@ -all: synth +CXXFLAGS=-O2 -g -Wall + +all: synth decode %.o: %.cpp $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $< -OBJS=synth.o synth_main.o +OBJS=decode.o synth.o synth_main.o DEPS=$(OBJS:.o=.d) -include $(DEPS) +decode: decode.o + $(CXX) -o $@ $^ $(LDFLAGS) + synth: synth.o synth_main.o $(CXX) -o $@ $^ $(LDFLAGS) clean: - $(RM) synth $(OBJS) $(DEPS) + $(RM) synth decode $(OBJS) $(DEPS)