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 optimizeModel.o multiple.o searchAlgo.o topologies.o parsePartitions.o treeIO.o models.o bipartitionList.o rapidBootstrap.o evaluatePartialGenericSpecial.o evaluateGenericSpecial.o newviewGenericSpecial.o makenewzGenericSpecial.o classify.o fastDNAparsimony.o fastSearch.o leaveDropping.o rogueEPA.o ancestralStates.o mem_alloc.o |
---|
7 | OBJECTS = $(RAXML_OBJECTS) |
---|
8 | RM = rm -f |
---|
9 | |
---|
10 | GLOBAL_DEPS = axml.h globalVariables.h #mem_alloc.h |
---|
11 | CFLAGS_RAXML = -fomit-frame-pointer -funroll-loops -O2 -msse #-Wall -Wunused-parameter -Wredundant-decls -Wreturn-type -Wswitch-default -Wunused-value -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wimport -Wunused -Wunused-function -Wunused-label -Wno-int-to-pointer-cast -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -Wpointer-sign -Wextra -Wredundant-decls -Wunused -Wunused-function -Wunused-parameter -Wunused-value -Wunused-variable -Wformat -Wformat-nonliteral -Wparentheses -Wsequence-point -Wuninitialized -Wundef -Wbad-function-cast |
---|
12 | |
---|
13 | # ---------------------------------------- |
---|
14 | # normal compilation: |
---|
15 | ifndef ARB |
---|
16 | CC = gcc |
---|
17 | CFLAGS = -O3 $(CFLAGS_RAXML) |
---|
18 | |
---|
19 | TARGET = . |
---|
20 | MAIN = $(EXE) |
---|
21 | #-xO5 |
---|
22 | # -pg |
---|
23 | LDFLAGS = -lm |
---|
24 | |
---|
25 | |
---|
26 | # ---------------------------------------- |
---|
27 | # compile for ARB: |
---|
28 | else |
---|
29 | |
---|
30 | CC = $(A_CC) |
---|
31 | TARGET = $(ARBHOME)/bin |
---|
32 | LDFLAGS = -lm |
---|
33 | CFLAGS = $(cflags) $(CFLAGS_RAXML) |
---|
34 | |
---|
35 | $(MAIN) : all |
---|
36 | |
---|
37 | endif |
---|
38 | |
---|
39 | TARGETS = $(TARGET)/raxmlHPC |
---|
40 | all : $(TARGETS) |
---|
41 | |
---|
42 | $(TARGET)/raxmlHPC : $(RAXML_OBJECTS) $(GLOBAL_DEPS) |
---|
43 | $(CC) $(CFLAGS) -o $(TARGET)/raxmlHPC $(RAXML_OBJECTS) $(LDFLAGS) |
---|
44 | .c.o: |
---|
45 | $(CC) $(CFLAGS) -c -o $@ $< |
---|
46 | |
---|
47 | clean : |
---|
48 | $(RM) $(OBJECTS) $(TARGETS) |
---|
49 | |
---|
50 | DEPENDS = $(OBJECTS:.o=.depend) |
---|
51 | depends: $(DEPENDS) |
---|
52 | @cat $(DEPENDS) | grep -v '^#' >>Makefile |
---|
53 | @rm $(DEPENDS) |
---|
54 | $(DEPENDS): depend.init |
---|
55 | depend.init: |
---|
56 | $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies |
---|
57 | .c.depend: |
---|
58 | $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@ |
---|
59 | |
---|
60 | |
---|
61 | |
---|
62 | # DO NOT DELETE |
---|
63 | |
---|
64 | # Do not add dependencies manually - use 'make depend' in $ARBHOME |
---|
65 | # For formatting issues see SOURCE_TOOLS/fix_depends.pl (from GDE) |
---|
66 | |
---|
67 | ancestralStates.o: axml.h |
---|
68 | |
---|
69 | axml.o: axml.h |
---|
70 | axml.o: globalVariables.h |
---|
71 | |
---|
72 | bipartitionList.o: axml.h |
---|
73 | |
---|
74 | classify.o: axml.h |
---|
75 | |
---|
76 | evaluateGenericSpecial.o: axml.h |
---|
77 | |
---|
78 | evaluatePartialGenericSpecial.o: axml.h |
---|
79 | |
---|
80 | fastDNAparsimony.o: axml.h |
---|
81 | |
---|
82 | fastSearch.o: axml.h |
---|
83 | |
---|
84 | leaveDropping.o: axml.h |
---|
85 | |
---|
86 | makenewzGenericSpecial.o: axml.h |
---|
87 | |
---|
88 | mem_alloc.o: axml.h |
---|
89 | mem_alloc.o: $(ARBHOME)/INCLUDE/malloc.h |
---|
90 | |
---|
91 | models.o: axml.h |
---|
92 | |
---|
93 | multiple.o: axml.h |
---|
94 | |
---|
95 | newviewGenericSpecial.o: axml.h |
---|
96 | |
---|
97 | optimizeModel.o: axml.h |
---|
98 | |
---|
99 | parsePartitions.o: axml.h |
---|
100 | |
---|
101 | rapidBootstrap.o: axml.h |
---|
102 | |
---|
103 | rogueEPA.o: axml.h |
---|
104 | |
---|
105 | searchAlgo.o: axml.h |
---|
106 | |
---|
107 | topologies.o: axml.h |
---|
108 | |
---|
109 | treeIO.o: axml.h |
---|