summaryrefslogtreecommitdiff
path: root/synth/Makefile
diff options
context:
space:
mode:
authorFlorian Jung <flo@thinkpad.(none)>2010-12-29 16:55:25 +0100
committerFlorian Jung <flo@thinkpad.(none)>2010-12-29 16:55:25 +0100
commit7113f02ae87482211aec5046f9ac46c3cc9ad017 (patch)
treeb6484b45317e7e80567d9902cf94843d227ce30e /synth/Makefile
Initial commit
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)
+