-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
35 lines (23 loc) · 823 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
OBJECTS=gzstream.o RefReader_istr.o RefGenome.o DnaBitStr.o main.o\
ReadQueue.o Read.o CONST.o ShiftAnd.o LevenshtDP.o
PROGNAME=FAME
CXX=g++
CXXFLAGS= -std=c++14 -ggdb -Wshadow -Wall -pedantic -pipe -O3 -fopenmp -march=native -I ./sparsehash/include/usr/local/include/ -I ./hopscotch-map/include/tsl/
GZFLAGS= -lz
.PHONY: all clean profile
all: ${PROGNAME}
profile: ${PROGNAME}Profile
gzstream.o: gzstream/gzstream.C gzstream/gzstream.h
${CXX} ${CXXFLAGS} -c $<
ReadQueue.o: ReadQueue.cpp ReadQueue.h
${CXX} ${CXXFLAGS} -c $<
%.o: %.cpp %.h
${CXX} ${CXXFLAGS} -c $<
%.o: %.cpp
${CXX} ${CXXFLAGS} -c $<
${PROGNAME}: ${OBJECTS}
${CXX} ${CXXFLAGS} ${OBJECTS} ${GZFLAGS} -o $@
${PROGNAME}Profile: ${OBJECTS}
${CXX} ${CXXFLAGS} -pg -rdynamic ${OBJECTS} ${GZFLAGS} -o $@
clean:
rm -f ${OBJECTS} ${PROGNAME}