19 lines
370 B
Makefile
19 lines
370 B
Makefile
|
CXX = g++
|
||
|
CXXFLAGS = -I $(FASTFLOW_INC_DIR) -pthread
|
||
|
NPES=$(shell cat /proc/cpuinfo | grep -c processor)
|
||
|
|
||
|
.PHONY: default all
|
||
|
default: all
|
||
|
all: matrix matrix-ff
|
||
|
|
||
|
matrix: matrix.cpp
|
||
|
$(CXX) $(CXXFLAGS) -o $@ $<
|
||
|
|
||
|
matrix-ff: matrix.cpp
|
||
|
$(CXX) $(CXXFLAGS) -DFASTFLOW -DNWORKERS=$(NPES) -o $@ $<
|
||
|
|
||
|
.PHONY: clean
|
||
|
clean:
|
||
|
rm -f matrix matrix-ff
|
||
|
rm -f matrix.dat matrix-ff.dat
|