From 3bd4eaa3e8bdffed9b78e84af11d8ac1032b9bae Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Tue, 18 Dec 2018 13:00:44 +0200 Subject: Add Makefile --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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} -- cgit v1.3