-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·34 lines (21 loc) · 837 Bytes
/
Copy pathMakefile
File metadata and controls
executable file
·34 lines (21 loc) · 837 Bytes
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
# Set this variable to your static gsl libraries
GSLDIR=/usr/local/lib
GSL=${GSLDIR}/libgsl.a ${GSLDIR}/libgslcblas.a
release : build/release/msmc2
all: debug release decode
debug : build/debug/msmc2
all : debug release
unittest: build/debug/unittest
build/debug/unittest
build/debug/msmc2 : model/*.d powell.d brent.d maximization_step.d expectation_step.d msmc2.d logger.d
dmd -debug ${GSL} -odbuild/test -of$@ $^
build/release/msmc2 : model/*.d powell.d brent.d maximization_step.d expectation_step.d msmc2.d logger.d
dmd -O ${GSL} -odbuild/test -of$@ $^
build/debug/unittest : model/*.d
dmd -unittest ${GSL} -main -odbuild/debug -ofbuild/debug/unittest $^
decode : build/decode
build/decode : model/*.d decode.d
dmd -O ${GSL} -odbuild -of$@ $^
clean :
rm -rf build/debug/* build/release/*
.PHONY : clean unittest