1 | # Makefile August 2006 by Alexandros Stamatakis |
---|
2 | # Modified for compilation in ARB, Harald Meier 2008-01-21 |
---|
3 | |
---|
4 | .SUFFIXES: .o .c .h .depend |
---|
5 | |
---|
6 | RAXML_OBJECTS = axml.o raxmlParsimony.o rev_functions.o optimizeModel.o multiple.o searchAlgo.o topologies.o parsePartitions.o treeIO.o models.o bipartitionList.o rapidBootstrap.o evaluatePartialGeneric.o evaluateGeneric.o newviewGeneric.o makenewzGeneric.o evaluateGenericVector.o categorizeGeneric.o |
---|
7 | OBJECTS = $(RAXML_OBJECTS) |
---|
8 | RM = rm -f |
---|
9 | |
---|
10 | GLOBAL_DEPS = axml.h globalVariables.h |
---|
11 | CFLAGS_RAXML = -fomit-frame-pointer -funroll-loops |
---|
12 | #-Wall -pedantic -Wunused-parameter -Wredundant-decls -Wreturn-type -Wswitch-default -Wunused-value -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wimport -pedantic-errors -Wunused -Wunused-function -Wunused-label -Wno-int-to-pointer-cast -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-sign -Wextra -Wmissing-noreturn -Wredundant-decls -Wunused -Wunused-function -Wunused-parameter -Wunused-value -Wunused-variable |
---|
13 | |
---|
14 | # ---------------------------------------- |
---|
15 | # normal compilation: |
---|
16 | ifndef ARB |
---|
17 | CC = gcc |
---|
18 | CFLAGS = -O3 $(CFLAGS_RAXML) |
---|
19 | |
---|
20 | TARGET = . |
---|
21 | MAIN = $(EXE) |
---|
22 | #-xO5 |
---|
23 | # -pg |
---|
24 | LDFLAGS = -lm |
---|
25 | |
---|
26 | |
---|
27 | # ---------------------------------------- |
---|
28 | # compile for ARB: |
---|
29 | else |
---|
30 | |
---|
31 | CC = $(ACC) |
---|
32 | TARGET = $(ARBHOME)/bin |
---|
33 | LDFLAGS = -lm |
---|
34 | CFLAGS = $(cflags) $(CFLAGS_RAXML) |
---|
35 | |
---|
36 | $(MAIN) : all |
---|
37 | |
---|
38 | endif |
---|
39 | |
---|
40 | TARGETS = $(TARGET)/raxmlHPC |
---|
41 | all : $(TARGETS) |
---|
42 | |
---|
43 | $(TARGET)/raxmlHPC : $(RAXML_OBJECTS) $(GLOBAL_DEPS) |
---|
44 | $(CC) $(CFLAGS) -o $(TARGET)/raxmlHPC $(RAXML_OBJECTS) $(LDFLAGS) |
---|
45 | .c.o: |
---|
46 | $(CC) $(CFLAGS) -c -o $@ $< |
---|
47 | |
---|
48 | clean : |
---|
49 | $(RM) $(OBJECTS) $(TARGETS) |
---|
50 | |
---|
51 | DEPENDS = $(OBJECTS:.o=.depend) |
---|
52 | depends: $(DEPENDS) |
---|
53 | @cat $(DEPENDS) | grep -v '^#' >>Makefile |
---|
54 | @rm $(DEPENDS) |
---|
55 | $(DEPENDS): depend.init |
---|
56 | depend.init: |
---|
57 | $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies |
---|
58 | .c.depend: |
---|
59 | $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@ |
---|
60 | |
---|
61 | |
---|
62 | |
---|
63 | # DO NOT DELETE |
---|
64 | |
---|
65 | # Do not add dependencies manually - use 'make depend' in $ARBHOME |
---|
66 | # For formatting issues see SOURCE_TOOLS/fix_depends.pl |
---|
67 | |
---|
68 | axml.o: axml.h |
---|
69 | axml.o: globalVariables.h |
---|
70 | |
---|
71 | bipartitionList.o: axml.h |
---|
72 | |
---|
73 | categorizeGeneric.o: axml.h |
---|
74 | |
---|
75 | evaluateGeneric.o: axml.h |
---|
76 | |
---|
77 | evaluateGenericVector.o: axml.h |
---|
78 | |
---|
79 | evaluatePartialGeneric.o: axml.h |
---|
80 | |
---|
81 | makenewzGeneric.o: axml.h |
---|
82 | |
---|
83 | models.o: axml.h |
---|
84 | |
---|
85 | multiple.o: axml.h |
---|
86 | |
---|
87 | newviewGeneric.o: axml.h |
---|
88 | |
---|
89 | optimizeModel.o: axml.h |
---|
90 | |
---|
91 | parsePartitions.o: axml.h |
---|
92 | |
---|
93 | rapidBootstrap.o: axml.h |
---|
94 | |
---|
95 | raxmlParsimony.o: axml.h |
---|
96 | |
---|
97 | rev_functions.o: axml.h |
---|
98 | |
---|
99 | searchAlgo.o: axml.h |
---|
100 | |
---|
101 | topologies.o: axml.h |
---|
102 | |
---|
103 | treeIO.o: axml.h |
---|