Skip to content

Commit

Permalink
added smithlab_cpp path in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
amalthomas111 committed Aug 8, 2017
1 parent 205ae8b commit 92d556e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ CXX = g++ -std=c++11
CFLAGS = -Wall -O2
DEBUGFLAGS = -g

# check if a global copy of smithlab_cpp cannot be found and try to
# use a copy that is in the current directory
ifndef SMITHLAB_CPP
SMITHLAB_CPP=$(abspath $(dir $(MAKEFILE_LIST)))/smithlab_cpp
ifeq ("$(wildcard $(SMITHLAB_CPP))","")
$(error SMITHLAB_CPP not set and smithlab_cpp not found)
endif
endif

INCLUDEDIRS = $(SMITHLAB_CPP)
INCLUDEARGS = $(addprefix -I ,$(INCLUDEDIRS))

Expand Down

0 comments on commit 92d556e

Please sign in to comment.