1 | # Makefile August 2006 by Alexandros Stamatakis |
---|
2 | # Makefile cleanup October 2006, Courtesy of Peter Cordes <peter@cordes.ca> |
---|
3 | |
---|
4 | CC = gcc |
---|
5 | |
---|
6 | CFLAGS = -O3 -fomit-frame-pointer -funroll-loops -D_USE_PTHREADS -D_GNU_SOURCE #-Wall -pedantic |
---|
7 | #-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 |
---|
8 | |
---|
9 | |
---|
10 | LIBRARIES = -lm -pthread |
---|
11 | |
---|
12 | RM = rm -f |
---|
13 | |
---|
14 | objs = 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 |
---|
15 | |
---|
16 | all : raxmlHPC-PTHREADS |
---|
17 | |
---|
18 | GLOBAL_DEPS = axml.h globalVariables.h |
---|
19 | |
---|
20 | raxmlHPC-PTHREADS : $(objs) |
---|
21 | $(CC) -o raxmlHPC-PTHREADS $(objs) $(LIBRARIES) |
---|
22 | |
---|
23 | # Optimization flag -O3 will yield an erroneous code for rev_functions ! |
---|
24 | |
---|
25 | rev_functions.o : rev_functions.c $(GLOBAL_DEPS) |
---|
26 | $(CC) -c -o $@ $< |
---|
27 | |
---|
28 | |
---|
29 | bipartitionList.o : bipartitionList.c $(GLOBAL_DEPS) |
---|
30 | optimizeModel.o : optimizeModel.c $(GLOBAL_DEPS) |
---|
31 | multiple.o : multiple.c $(GLOBAL_DEPS) |
---|
32 | axml.o : axml.c $(GLOBAL_DEPS) |
---|
33 | raxmlParsimony.o : raxmlParsimony.c $(GLOBAL_DEPS) |
---|
34 | searchAlgo.o : searchAlgo.c $(GLOBAL_DEPS) |
---|
35 | topologies.o : topologies.c $(GLOBAL_DEPS) |
---|
36 | parsePartitions.o : parsePartitions.c $(GLOBAL_DEPS) |
---|
37 | treeIO.o : treeIO.c $(GLOBAL_DEPS) |
---|
38 | models.o : models.c $(GLOBAL_DEPS) |
---|
39 | rapidBootstrap.o : rapidBootstrap.c $(GLOBAL_DEPS) |
---|
40 | evaluatePartialGeneric.o : evaluatePartialGeneric.c $(GLOBAL_DEPS) |
---|
41 | evaluateGeneric.o : evaluateGeneric.c $(GLOBAL_DEPS) |
---|
42 | newviewGeneric.o : newviewGeneric.c $(GLOBAL_DEPS) |
---|
43 | makenewzGeneric.o : makenewzGeneric.c $(GLOBAL_DEPS) |
---|
44 | evaluateGenericVector.o : evaluateGenericVector.c $(GLOBAL_DEPS) |
---|
45 | categorizeGeneric.o : categorizeGeneric.c $(GLOBAL_DEPS) |
---|
46 | |
---|
47 | clean : |
---|
48 | $(RM) *.o raxmlHPC-PTHREADS |
---|