aboutsummaryrefslogtreecommitdiffstats
path: root/biology/fasttree/files/Makefile
blob: ada070cda53be5f75f42d62dc2d3cb0e7ce1e796 (plain) (blame)
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
BIN =		FastTree
SRC =		FastTree*.c
CC ?=		gcc
CFLAGS ?=	-O3
CFLAGS +=	-DOPENMP -fopenmp -finline-functions -funroll-loops

MKDIR ?=	mkdir
INSTALL ?=	install
PREFIX ?=	/usr/local
DESTDIR ?=	.

.PHONY:	all install clean

all:	${BIN}

${BIN}: ${SRC} Makefile
	${CC} ${CFLAGS} ${SRC} -o ${BIN} -lm

install: ${BIN}
	${MKDIR} -p ${DESTDIR}${PREFIX}/bin
	${INSTALL} -s -c ${BIN} ${DESTDIR}${PREFIX}/bin

clean:
	${RM} -f ${BIN}