MIDI-based live visualization and other music tools
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

89 lines
2.4 KiB

# Building Tests:
# jam clean
# jam -j4 -q
# Building Windows:
# jam clean
# jam -j4 -q -sWINDOWS=true
# (if building the same target repeatedly, don't clean, if that wasn't obvious)
##
## Compiler
##
CC = gcc ;
# GCC
#C++ = g++ ;
#LINK = g++ ;
# Clang
C++ = clang++ ;
LINK = clang++ ;
##
## Compiler arguments
##
## Argument explanation
#
# g = debug symbols
# -O0 = compile without optimizations for debugging
#
# -Wall -Wextra = Error detection/tolerance
# -Wno-unused-parameter = I should probably get rid of this at some point
# Arguments used on all projects, regardless of any variables
# Define ALSA for RtMidi (http://www.music.mcgill.ca/~gary/rtmidi/)
C++FLAGS = -std=c++11 -Wall -Wextra -Wno-unused-parameter -D__LINUX_ALSA__ ;
ALLLIBSC++FLAGS = -g ;
# Required arguments for linux
LINUXC++FLAGS = -g ;
# Required arguments for Windows
#WINDOWSC++FLAGS = -g -stdlib=libc++ -fPIC -D__WINDOWS_MM__;
#WINDOWSC++FLAGS = -g -stdlib=libc++ -target x86_64-win32 -D__WINDOWS_MM__;
#WINDOWSC++FLAGS = -g -stdlib=libc++ -target x86_64-w64-mingw32 -D__WINDOWS_MM__;
LINKLIBS = -lsfml-audio -lsfml-graphics -lsfml-window -lsfml-system -lasound -lpthread ;
KEEPOBJS = true ; # This doesn't actually fix anything, though it seems like it should
NOARSCAN = true ; # This actually fixes the problem
#AR = ar rUu ; # I was thinking maybe the AR command was wrong (always outputting deterministically)
# It doesn't seem like this is the problem though
AR = ar cr ;
LINKFLAGS = -Wl,-rpath,. ;
WINDOWSC++FLAGS = -g -Iwin/SFML-2.4.0/include -lstdc++11 -std=c++11 ;
# ALLLIBSC++FLAGS should be used for all libraries which might be used by both tests and WINDOWS
if $(WINDOWS)
{
# C++ = x86_64-w64-mingw32-g++ ;
C++ = i686-w64-mingw32-g++ ;
ALLLIBSC++FLAGS = $(WINDOWSC++FLAGS) ;
# LINK = x86_64-w64-mingw32-g++ ;
LINK = i686-w64-mingw32-g++ ;
LINKLIBS = -Lwin/SFML-2.4.0/lib -lsfml-audio -lsfml-graphics -lsfml-window -lsfml-system ;
AR = i686-w64-mingw32-ar cr ;
}
else
{
ALLLIBSC++FLAGS = $(LINUXC++FLAGS) ;
}
OPTIM = -O0 ;
#HDRS = libs/base2.0 ;
HDRS = ThirdParty/rtmidi ThirdParty/base2.0 src ;
# Some helpful Jam commands
# -q : stop on failed target
# -jN : use N cores
# -sVAR=VAL : Set VAR to VAL. Note that setting WINDOWS=false is the same as setting UNREAL=true,
# frustratingly
# -dx : print commands being used
# -n : don't actually run commands