-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmake.inc
52 lines (43 loc) · 1.28 KB
/
make.inc
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Confidence Makefile
# setup something like the following to use XDD... however, XDD is a moving target and the will require tweaking
# USE_XDD = -DUSE_XDD -Ixdd/src/compat -Ixdd/src/base -Ixdd/src/common -Ixdd/src/client -Ixdd/src/net -Ixdd/src/fs
# **OR** You may try to use some autodetection for XDD includes and FLAGS, such as:
# USE_XDD = -DUSE_XDD $(shell scripts/get-xdd-flags.sh)
# XDD_TARGETS = read_xdd
# XDD_OBJS = io_test.o
# XDD_LIBS = libxdd.a
# or give up on XDD
# USE_XDD =
# XDD_TARGETS =
# XDD_OBJS =
# XDD_LIBS =
USE_XDD =
XDD_TARGETS =
XDD_OBJS =
XDD_LIBS =
# USE_SHMEM controls the replacement of MPI calls by SHMEM calls.
# build with MPI ONLY:
# USE_SHMEM =
# SHMEM_LIB =
# build with SHMEM ONLY:
# USE_SHMEM = -DSHMEM
# SHMEM_LIBS = -lsma
# USE_SHMEM =
# SHMEM_LIBS =
# USE_SHMEM = -DSHMEM
# SHMEM_LIBS = -lsma
#
# where are the MPI libraries and which to include?
# MPI_LIBDIR = -L/usr/lib64/openmpi/1.3.1-gcc
# MPI_LIBS = -lmpi
MPI_LIBDIR =
MPI_LIBS =
# compiler and flags
CC = mpicc
# CFLAGS -- use the last one
CFLAGS = -m64 -march=core2 -mtune=core2 -O3
CFLAGS = -m64 -O3 $(USE_XDD) $(USE_SHMEM)
# no need for mpi in read_xdd
GCC = gcc
# libraries
LIBS = $(MPI_LIBDIR) $(MPI_LIBS) $(SHMEM_LIBS) $(XDD_LIBS) -lpthread -lrt