-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (21 loc) · 674 Bytes
/
Copy pathMakefile
File metadata and controls
26 lines (21 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
CC=clang++-3.8
INCLUDES=-I. -I/opt/toolkit -I/usr/include/Eigen3
DEFINES=
CCARGS=-Wall -Werror -g -std=c++14 $(INCLUDES) $(DEFINES)
LIBS=-lstdc++
% : %.cpp
@rm -f ./$@
$(CC) $(CCARGS) -o $@ $< util/name_of.cpp util/c.cpp $(LIBS)
@echo "-----------------------------------------------"
./$@ $(ARGS)
@echo "-----------------------------------------------"
@rm -f ./$@
ALLSRC=$(wildcard *.cpp)
all : $(ALLSRC:.cpp=)
%-thread : %-thread.cpp
@rm -f ./$@
$(CC) $(CCARGS) -I. -Wall -o $@ $< util/name_of.cpp -lstdc++ -lboost_thread-mt
@echo "-----------------------------------------------"
./$@
@echo "-----------------------------------------------"
@rm -f ./$@