From af1b7d6e7af7d031a7f081b4d289ed587eaa550d Mon Sep 17 00:00:00 2001 From: kabu4i Date: Wed, 16 Nov 2016 09:10:51 +0400 Subject: [PATCH] Applied FreeBSD support (#37) --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Makefile b/Makefile index d494b9f37..95dd98fd2 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,23 @@ +OS := $(shell uname) + +ifeq ($(OS), Linux) ifndef CXX export CXX = g++ endif export MPICXX = mpicxx export LDFLAGS= -Llib -lrt + +endif + +ifeq ($(OS), FreeBSD) +ifndef CXX +export CXX = g++6 +endif +export MPICXX = /usr/local/mpi/bin/mpicxx +export LDFLAGS= -Llib -Wl,-rpath=/usr/local/lib/gcc6 + +endif + export WARNFLAGS= -Wall -Wextra -Wno-unused-parameter -Wno-unknown-pragmas -std=c++0x export CFLAGS = -O3 -msse2 $(WARNFLAGS)