-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
56 lines (36 loc) · 1.63 KB
/
Makefile
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
CXX ?= g++
MPICXX ?= mpicxx
CXXFLAGS ?= -g -O3 -std=c++11 -DHAVE_CLOCK_NANOSLEEP
LOFLAGS = -I$$HOME/local/include -L$$HOME/local/lib
PBCPNNBASE=../pbcpnn
.PHONY: all mpi server test
all: mpi server test
server: miditoudp udptomidi
mpi: udpin udpout
test: simproxy filetobrain braintofile
udpin: udpin.cc OurUDPProtocol.hh
$(MPICXX) $(CXXFLAGS) -o udpin udpin.cc -lmusic
udpout: udpout.cc OurUDPProtocol.hh
$(MPICXX) $(CXXFLAGS) -o udpout udpout.cc -lmusic
udptoosc: udptoosc.cc
$(CXX) $(CXXFLAGS) -o udptoosc udptoosc.cc
osctoudp: osctoudp.cc rtclock.o rtclock.h
$(CXX) $(CXXFLAGS) -o osctoudp rtclock.o osctoudp.cc -lpthread
rtclock.o: rtclock.h rtclock.cpp
$(CXX) $(CXXFLAGS) -c rtclock.cpp
simproxy: simproxy.cc OurUDPProtocol.hh
$(MPICXX) $(CXXFLAGS) -o simproxy simproxy.cc -lmusic
filetobrain: filetobrain.cc OurUDPProtocol.hh
$(MPICXX) $(CXXFLAGS) -o filetobrain filetobrain.cc -lmusic
braintofile: braintofile.cc
$(MPICXX) $(CXXFLAGS) -o braintofile braintofile.cc -lmusic
oscout: oscout.cc
$(MPICXX) $(CXXFLAGS) -o oscout $(LOFLAGS) oscout.cc -lmusic -llo
oscin: oscin.cc
$(MPICXX) $(CXXFLAGS) -o oscin $(LOFLAGS) oscin.cc -lmusic -llo
minimalbrain: minimalbrain.cpp
$(MPICXX) $(CXXFLAGS) -fopenmp -I ${PBCPNNBASE} -I ${PBCPNNBASE}/build-music -o minimalbrain $(LOFLAGS) minimalbrain.cpp -L ${PBCPNNBASE}/build-music/base -lpbcpnn -lmusic
udptomidi: udptomidi.cpp OurUDPProtocol.hh
${CXX} $(CXXFLAGS) -I /usr/include/rtmidi -o udptomidi udptomidi.cpp -l rtmidi
miditoudp: miditoudp.cpp OurUDPProtocol.hh rtclock.h rtclock.o
${CXX} $(CXXFLAGS) -I /usr/include/rtmidi -o miditoudp rtclock.o miditoudp.cpp -l rtmidi -l pthread