sit/tests/libs/fastflow/Makefile

19 lines
370 B
Makefile
Raw Permalink Normal View History

2012-03-06 15:07:26 +00:00
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