-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
51 lines (36 loc) · 854 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
48
49
50
51
#main
BAMTOOLS= $(realpath bamtools/)
LIBGAB= $(realpath libgab/)
PASSVARIABLES=
ifdef CFLAGS
PASSVARIABLES+= CFLAGS="${CFLAGS}"
endif
ifdef LDFLAGS
PASSVARIABLES+= LDFLAGS="${LDFLAGS}"
endif
ifdef BAMTOOLSINC
PASSVARIABLES+= BAMTOOLSINC="${BAMTOOLSINC}"
endif
ifdef BAMTOOLSLIB
PASSVARIABLES+= BAMTOOLSLIB="${BAMTOOLSLIB}"
endif
ifdef LIBGABINC
PASSVARIABLES+= LIBGABINC="${LIBGABINC}"
endif
ifdef LIBGABLIB
PASSVARIABLES+= LIBGABLIB="${LIBGABLIB}"
endif
ifeq ($(CXX),)
CXX := g++ #-g -pg
endif
print-%: ; @echo $*=$($*)
#ifeq ($(strip $(LIBGABINC)),)
# PASSVARIABLES = "BAMTOOLSINC="${BAMTOOLSINC}" BAMTOOLSLIB="${BAMTOOLSLIB}" LIBGABINC="${LIBGABINC}" LIBGABLIB="${LIBGABLIB}""
#endif
all:
make CXX="${CXX}" ${PASSVARIABLES} -C src
clean:
make -C src clean
test: all
cd test/ && bash test.sh && cd ..
.PHONY: all