File: Makefile

package info (click to toggle)
dnaclust 3-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 720 kB
  • sloc: cpp: 3,630; sh: 516; makefile: 64
file content (30 lines) | stat: -rw-r--r-- 1,011 bytes parent folder | download | duplicates (3)
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
#PROFILE_FLAGS = -pg -fprofile-arcs -ftest-coverage -g -O1
CXXFLAGS += -Wall -pedantic -std=c++98 -O2
CXX ?= g++
#-DCHRIS_DEBUG

all: dnaclust fastaselect fastasort

dnaclust: dnaclust.o fasta.o
	$(CXX) $(CXXFLAGS) $(PROFILE_FLAGS) $(LDFLAGS) dnaclust.o fasta.o -lboost_program_options -o $@ -lpthread

dnaclust.o: dnaclust.cpp search_include.cpp utility.hpp ternary_sort.hpp multi_dim.hpp
	$(CXX) -c $(CXXFLAGS) $(PROFILE_FLAGS) dnaclust.cpp

fastaselect: fastaselect.o fasta.o
	$(CXX) $(CXXFLAGS) $(PROFILE_FLAGS) $(LDFLAGS) fastaselect.o fasta.o -lboost_program_options -o $@

fastaselect.o: fastaselect.cpp
	$(CXX) -c $(CXXFLAGS) $(PROFILE_FLAGS) fastaselect.cpp

fastasort: fastasort.o fasta.o
	$(CXX) $(CXXFLAGS) $(PROFILE_FLAGS) $(LDFLAGS) $+ -lboost_program_options -o $@

fastasort.o: fastasort.cpp
	$(CXX) -c $(CXXFLAGS) $(PROFILE_FLAGS) $+ -o $@

fasta.o: fasta.cpp fasta.hpp
	$(CXX) -c $(CXXFLAGS) fasta.cpp

clean:
	rm -f dnaclust.o dnaclust fasta.o fastaselect.o fastaselect fastasort fastasort.o