-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (35 loc) · 1.23 KB
/
Makefile
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
# ==============================================================================
# Common Variables
# ==============================================================================
# Blue Gene/P
# CC = bgxlc
# CXX = bgxlC
# COPTS = -c -O3
# INCL = -I/bgsys/drivers/ppcfloor/comm/include/
# LOPTS =
# ==============================================================================
# Blue Gene/Q
CC = powerpc64-bgq-linux-gcc
CXX = powerpc64-bgq-linux-g++
MPICXX = mpicxx
COPTS = -c -O3
INCL = -I/bgsys/drivers/ppcfloor/ -I/bgsys/drivers/ppcfloor/spi/include/kernel/cnk/
LOPTS =
# ==============================================================================
# Cray XT5 (Jaguar, Kraken) Cray XE6
# CC = cc
# CXX = CC
# COPTS = -c -O3 -DCMK_CRAYXT=1
# LOPTS = -lrca
all: libtopomgr.a
libtopomgr.a: TopoManager.o CrayNid.o
ar -q libtopomgr.a TopoManager.o CrayNid.o
TopoManager.o: TopoManager.h TopoManager.C BGLTorus.h BGPTorus.h BGQTorus.h XTTorus.h
$(CXX) $(COPTS) $(INCL) -o TopoManager.o TopoManager.C
CrayNid.o: CrayNid.c
$(CC) $(COPTS) $(INCL) -o CrayNid.o CrayNid.c
test: test.C
$(MPICXX) $(COPTS) -o test.o test.C
$(MPICXX) -o test test.o libtopomgr.a $(LOPTS)
clean:
rm -f *.o libtopomgr.a test