Applied FreeBSD support (#37)
This commit is contained in:
parent
a9a2a69dc1
commit
af1b7d6e7a
15
Makefile
15
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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user