forked from bringhurst/ib2slurm
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
48 lines (32 loc) · 783 Bytes
/
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
45
46
47
TARGET = ib2slurm
OBJECTS = ib2slurm.o
#
# Where is SLURM installed?
#
SLURM_PREFIX = /usr/local
ib2slurm_VERSION_MAJOR = 0
ib2slurm_VERSION_MINOR = 2
#
##
#
CC = cc
CPPFLAGS = -I/usr/include/infiniband -I$(SLURM_PREFIX)/include \
-Dib2slurm_VERSION_MAJOR=$(ib2slurm_VERSION_MAJOR) \
-Dib2slurm_VERSION_MINOR=$(ib2slurm_VERSION_MINOR) \
-DUSE_SLURM_HOSTLISTS
CFLAGS = -Wextra -Wall -Wno-unused-parameter -g -O1
LDFLAGS = -L$(SLURM_PREFIX)/lib -Wl,-rpath,$(SLURM_PREFIX)/lib
LIBS = -libnetdisc -losmcomp -libmad -lslurm
#
##
#
$(TARGET): $(OBJECTS)
$(CC) -o $@ $+ $(LDFLAGS) $(LIBS)
clean:
$(RM) $(OBJECTS) $(TARGET) ib2slurm-config.h
#
##
#
ib2slurm.o: ib2slurm.c ib2slurm-config.h
ib2slurm-config.h: ib2slurm-config.h.in
touch ib2slurm-config.h