]> git.sesse.net Git - c64tapwav/blobdiff - Makefile
Split the synth part into a library, with a Makefile.
[c64tapwav] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..50610c3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+all: synth
+
+%.o: %.cpp
+       $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
+
+OBJS=synth.o synth_main.o
+
+DEPS=$(OBJS:.o=.d)
+-include $(DEPS)
+
+synth: synth.o synth_main.o
+       $(CXX) -o $@ $^ $(LDFLAGS)
+
+clean:
+       $(RM) synth $(OBJS) $(DEPS)