forked from physimals/fabber_models_asl
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (38 loc) · 1.42 KB
/
Makefile
File metadata and controls
51 lines (38 loc) · 1.42 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
include ${FSLCONFDIR}/default.mk
PROJNAME = fabber_asl
USRINCFLAGS = -I${INC_NEWMAT} -I${INC_PROB} -I${INC_CPROB} -I${INC_BOOST} -I..
USRLDFLAGS = -L${LIB_NEWMAT} -L${LIB_PROB} -L../fabber_core
FSLVERSION= $(shell cat ${FSLDIR}/etc/fslversion | head -c 1)
ifeq ($(FSLVERSION), 5)
NIFTILIB = -lfslio -lniftiio
MATLIB = -lnewmat
else
UNAME := $(shell uname -s)
ifeq ($(UNAME), Linux)
MATLIB = -lopenblas
endif
NIFTILIB = -lNewNifti
endif
LIBS = -lnewimage -lmiscmaths -lutils -lprob ${MATLIB} ${NIFTILIB} -lznz -lz -ldl
XFILES = fabber_asl
# Forward models
OBJS = fwdmodel_asl_multiphase.o fwdmodel_asl_grase.o asl_models.o fwdmodel_asl_rest.o \
fwdmodel_asl_quasar.o fwdmodel_asl_satrecov.o fwdmodel_asl_satrecovdualfa.o fwdmodel_asl_turboquasar.o \
fwdmodel_asl_2compartment.o fwdmodel_asl_multite.o fwdmodel_asl_velocityselective.o
# For debugging:
#OPTFLAGS = -ggdb
# Pass Git revision details
GIT_SHA1:=$(shell git describe --dirty)
GIT_DATE:=$(shell git log -1 --format=%ad --date=local)
CXXFLAGS += -DGIT_SHA1=\"${GIT_SHA1}\" -DGIT_DATE="\"${GIT_DATE}\""
#
# Build
#
all: ${XFILES} libfabber_models_asl.a
# models in a library
libfabber_models_asl.a : ${OBJS}
${AR} -r $@ ${OBJS}
# fabber built from the FSL fabbercore library including the models specifieid in this project
fabber_asl : fabber_client.o ${OBJS}
${CXX} ${CXXFLAGS} ${LDFLAGS} -o $@ $< ${OBJS} -lfabbercore -lfabberexec ${LIBS}
# DO NOT DELETE