-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (25 loc) · 760 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (25 loc) · 760 Bytes
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
34
35
FLAGS = -O3 -std=c++11
INCDIRS = -Iexternal/humlib/min -Iexternal/midifile/include
LIBDIRS = -Lexternal/humlib/lib -Lexternal/midifile/lib
LIBS = -lhumlib -lmidifile -lpugixml
BIN = bin
SRC = src
.PHONY: tests
all: compile
compile:
(cd external; make)
@mkdir -p bin
g++ $(INCDIRS) $(FLAGS) -o $(BIN)/ratioscore $(SRC)/ratioscore.cpp $(LIBDIRS) $(LIBS)
install:
sudo cp bin/ratioscore /usr/local/bin/ && strip /usr/local/bin/ratioscore
tests: test
test:
@echo "Creating test MIDI files in the tests directory..."
for i in tests/*.txt; do bin/ratioscore $$i; done
cleantests: cleantest
cleantest:
@echo "Deleting MIDI files in tests directory..."
rm -f tests/test[0-9][0-9][0-9].mid
update:
(cd external; make update)
git pull