-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (29 loc) · 838 Bytes
/
Makefile
File metadata and controls
36 lines (29 loc) · 838 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
27
28
29
30
31
32
33
34
35
36
#
# Makefile
# Part of 2d-treecodes
#
# Created and authored by Diego Rossinelli on 2015-09-25.
# Copyright 2015. All rights reserved.
#
# Users are NOT authorized
# to employ the present software for their own publications
# before getting a written permission from the author of this file.
#
potential-order=12
force-order=24
mrag-blocksize=32
CXX ?= g++
CXXFLAGS = -std=c++11 -fopenmp \
-DBLOCKSIZE=$(mrag-blocksize)
ifeq "$(gprof)" "1"
CXXFLAGS += -pg
endif
test: main.cpp libraries
$(CXX) $(CXXFLAGS) -g $< lib2d-treecodes-potential.so lib2d-treecodes-force.so -o test
libraries:
make -f libraries.Makefile order=$(potential-order) lib2d-treecodes-potential.so
make -f libraries.Makefile order=$(force-order) mrag-blocksize=32 lib2d-treecodes-force.so
clean:
rm -f test
make -f libraries.Makefile clean
.PHONY = clean