summaryrefslogtreecommitdiff
path: root/synth/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'synth/Makefile')
-rw-r--r--synth/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/synth/Makefile b/synth/Makefile
new file mode 100644
index 0000000..3870262
--- /dev/null
+++ b/synth/Makefile
@@ -0,0 +1,33 @@
+CXX=g++
+CXXFLAGS=-Wall -g
+LDFLAGS=-lm `pkg-config --cflags --libs jack`
+
+OBJ=channel.o cli.o defines.o envelope.o filter.o globals.o jack.o load.o main.o note.o parser.o programs.o readwave.o util.o
+BIN=synth
+
+DEPENDFILE = .depend
+
+
+SRC = $(OBJ:%.o=%.cpp)
+
+all: $(BIN)
+
+
+$(BIN): $(OBJ)
+ $(CXX) $(CFLAGS) -o synth $(OBJ) $(LDFLAGS)
+
+
+dep: $(SRC)
+ $(CC) -MM $(SRC) > $(DEPENDFILE)
+
+-include $(DEPENDFILE)
+
+
+%.o: %.cpp
+ $(CXX) $(CXXFLAGS) -g -c $<
+
+.PHONY: clean
+
+clean:
+ rm -f $(OBJ) $(BIN)
+