Permalink
Browse files

Applied FreeBSD support (#37)

  • Loading branch information...
1 parent a9a2a69 commit af1b7d6e7af7d031a7f081b4d289ed587eaa550d @kabu4i kabu4i committed with tqchen Nov 16, 2016
Showing with 15 additions and 0 deletions.
  1. +15 −0 Makefile
View
@@ -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)

0 comments on commit af1b7d6

Please sign in to comment.