-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsystem.mk
More file actions
55 lines (50 loc) · 1.49 KB
/
system.mk
File metadata and controls
55 lines (50 loc) · 1.49 KB
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
52
53
54
55
# -*- Makefile -*-
#
# Override SYSTEM and other variable definition in user.mk
#
# In order to switch between a debug and an optimized executable, set CFLAGS
# in your 'user.mk' file as follows:
#
# * For an executable with debug information:
# CFLAGS = -g -DDEBUG -O0
#
# * For an optimized executable:
# CFLAGS = -O2
#
# check other platform specific flags below.
#
-include $(WORKDIR)/user.mk
ifndef SYSTEM
SYSTEM = CRAY
endif
ifeq ($(SYSTEM), CRAY)
CC = cc
CXX = CC
LD = CC
CFLAGS += -DBIGBEN
LDFLAGS +=
ifdef IOBUF_INC
CPPFLAGS += -I${IOBUF_INC}
endif
CPPFLAGS += -D_USE_FILE_OFFSET64 -D_FILE_OFFSET_BITS=64 -D_USE_LARGEFILE64
endif
ifeq ($(SYSTEM), MACBOOK)
MPI_DIR = /usr/
MPI_INCLUDE = $(MPI_DIR)/include/openmpi/ompi/mpi/cxx
CC = $(MPI_DIR)/bin/mpicc
CXX = $(MPI_DIR)/bin/mpicxx
LD = $(MPI_DIR)/bin/mpicxx
CXXFLAGS += -DMPICH_IGNORE_CXX_SEEK
CFLAGS += -Wall
CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
endif
ifeq ($(SYSTEM), MAVERICKS)
MPI_DIR = /opt/local/
MPI_INCLUDE = $(MPI_DIR)/include/openmpi-mp/openmpi/ompi/mpi/cxx
CC = $(MPI_DIR)/bin/mpicc-openmpi-mp
CXX = $(MPI_DIR)/bin/mpicxx-openmpi-mp
LD = $(MPI_DIR)/bin/mpicxx-openmpi-mp
CXXFLAGS += -DMPICH_IGNORE_CXX_SEEK
CFLAGS += -Wall
CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
endif