Add a Makefile rule for decode.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 3 May 2013 21:33:38 +0000 (23:33 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 3 May 2013 21:33:38 +0000 (23:33 +0200)
Makefile

index 50610c3..34b617d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,16 @@
-all: synth
+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)