aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJan Tuomi <jan.tuomi@eficode.com>2018-12-18 13:00:44 +0200
committerJan Tuomi <jan.tuomi@eficode.com>2018-12-18 13:00:44 +0200
commit3bd4eaa3e8bdffed9b78e84af11d8ac1032b9bae (patch)
tree6d11f162359b6fffcb23dcbd0e747c1bf57303d4 /Makefile
parentbf92d2a62089e68a478c9e6290adc49002f65358 (diff)
Add Makefilemaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d8f8c9b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+CC=g++
+CFLAGS=-Wall
+OUT=synth
+CPP=main.cpp RtAudio.cpp player.cpp maximilian.cpp
+INSTALLPATH=/usr/local/bin/${OUT}
+
+osx:
+ ${CC} ${CFLAGS} -D__MACOSX_CORE__ -o ${OUT} ${CPP} -framework CoreAudio -framework CoreFoundation -lpthread
+
+linux:
+ ${CC} ${CFLAGS} -D__LINUX_ALSA__ -o ${OUT} ${CPP} -lasound -lpthread
+
+install:
+ cp ${OUT} ${INSTALLPATH}