CXX=g++ #CFLAGS=-Wall -O2 CFLAGS=-Wall -O -g CXXFLAGS=$(CFLAGS) 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 note_loader.o in_synth_cli.o communication.o shared_object_manager.o lfos.o watch_files.o BIN=synth DEPENDFILE = .depend SRC = $(OBJ:%.o=%.cpp) all: $(BIN) $(BIN): $(OBJ) $(CXX) $(CFLAGS) -o $(BIN) $(OBJ) $(LDFLAGS) depend dep: $(SRC) $(CC) -MM $(SRC) > $(DEPENDFILE) -include $(DEPENDFILE) %.o: %.cpp $(CXX) $(CXXFLAGS) -c $< helpstring.h: helpstring.txt echo '#define HELPSTRING \' > helpstring.h && \ cat helpstring.txt | ./text_to_h.sh >> helpstring.h \ || rm helpstring.h .PHONY: clean dep depend clean: rm -f $(OBJ) $(BIN)