forked from PacificBiosciences/DALIGNER
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGNUmakefile
34 lines (29 loc) · 880 Bytes
/
GNUmakefile
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
THISDIR:=$(abspath $(dir $(realpath $(lastword ${MAKEFILE_LIST}))))
LIBDIRS?=${THISDIR}/../DAZZ_DB
CFLAGS+= -O3 -Wall -Wextra -fno-strict-aliasing -Wno-unused-result
CPPFLAGS+= -I${THISDIR}/../DAZZ_DB -I${PREFIX}/include
#CPPFLAGS+= -MMD -MP
LDLIBS+= -ldazzdb -lm -lpthread
LDFLAGS+= $(patsubst %,-L%,${LIBDIRS})
MOST = daligner HPC.daligner LAsort LAmerge LAsplit LAcat LAshow LAdump LAcheck LAindex
ALL:=${MOST} daligner_p LA4Falcon LA4Ice DB2Falcon
vpath %.c ${THISDIR}
vpath %.a ${THISDIR}/../DAZZ_DB
%: %.c
all: ${ALL}
daligner: filter.o
daligner_p: filter_p.o
LA4Falcon: DBX.o
${ALL}: align.o
install:
rsync -av ${ALL} ${PREFIX}/bin
symlink:
ln -sf $(addprefix ${CURDIR}/,${ALL}) ${PREFIX}/bin
clean:
rm -f ${ALL}
rm -f ${DEPS}
rm -fr *.dSYM *.o *.d
.PHONY: clean all
SRCS:=$(notdir $(wildcard ${THISDIR}/*.c))
#DEPS:=$(patsubst %.c,%.d,${SRCS})
#-include ${DEPS}