Debian Codegraph @

makefile

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 #
2 # Makefie for ParsInsert
3 #
4 # ParsInsert efficiently produces both a phylogenetic tree and taxonomic classification
5 # for sequences for microbial community sequence analysis.
6 #
7 # This is a C++ implementation of the Parsimonious Insertion algorithm.
8 #
9 PROGRAM = ParsInsert
10 OBJECTS = AttrList.o Knox_Stddef.o PNode.o SeqList.o Taxonomy.o ParsInsert.o
11
•12 CXX ?= g++
13 INCLUDES =
14 LIBS = -lm -lc
15
16 .SUFFIXES: .o .cpp
17
18 .cpp.o:
•19 $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
20
21 all: $(PROGRAM)
22
23 clean:
24 rm -f $(PROGRAM) $(OBJECTS) *.fasta *.log *.results *.tree
25
26 TEST_OBJECTS = PNode.o AttrList.o Knox_Stddef.o Test.o
27 test: $(TEST_OBJECTS)
•28 $(CXX) $(CPPFLAGS) $(CXXFLAGS) -o Test $(TEST_OBJECTS) $(LIBS) $(LDFLAGS)
29
30 Knox_Stddef.o: Knox_Stddef.cpp Knox_Stddef.h
31
32 $(PROGRAM): $(OBJECTS)
•33 $(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $(PROGRAM) $(OBJECTS) $(LIBS) $(LDFLAGS)
34
35 TEST_DIR = ./TestData
36 test_short = short1000_NAST
37 test_set = set1000
38
39 TAXONOMY = $(TEST_DIR)/rdp.taxonomy
40 TREE = $(TEST_DIR)/core_rdp.ntree
41 TREE_SEQ = $(TEST_DIR)/core_rdp.fasta
42
43 # create compressed version of the release
44 RELEASE_VER = 1.04
45 RELEASE:
46 tar -czf ../ParsInsert.$(RELEASE_VER).tgz *
47
48 # use simple scoring function (-d0), threshold cutoff at 80% (-c80), only display best location (-n1)
49 test_options = -d0 -c80 -n1
50
51 TEST: $(PROGRAM)
52 rm -f $(test_set).fasta
53 cp TestData/$(test_set).fasta .
54 ./$(PROGRAM) $(test_options) \
55 -m $(TEST_DIR)/lanemask.txt\
56 -x $(TAXONOMY) \
57 -l $(test_set).log \
58 -o $(test_set).results \
59 -t $(TREE) \
60 -s $(TREE_SEQ) \
61 $(test_set).fasta
62 diff $(test_set).results TestData/$(test_set).results
63 echo Differences:
64 diff $(test_set).results TestData/$(test_set).results | wc -l
65