summaryrefslogtreecommitdiff
path: root/synth/Makefile
blob: 791e62a9508ef136a044b2da1b002284174f6aa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 note_skel.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)