source: trunk/GDE/RAxML/Makefile

Last change on this file was 19446, checked in by westram, 17 months ago
  • introduce onlyC_flags
    • flags used for C compilation only.
    • similar to cxxflags (references added).
    • pass down onlyC_flags into AxML, CLUSTAL, CLUSTALW, FASTDNAML, FASTTREE, GL, MrBAYES, PHYLIP, PHYML*, RAxML, SINA(unused), SOURCE_TOOLS, SUPPORT, TOOLS, TREEGEN + TREEPUZZLE.
    • set flags to -Werror-implicit-function-declaration
      • error is only effective in a small part of these modules.
      • TODO need to activate warnings → will activate the error as well.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
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
6RAXML_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
7OBJECTS = $(RAXML_OBJECTS)
8RM = rm -f
9
10GLOBAL_DEPS = axml.h globalVariables.h #mem_alloc.h
11CFLAGS_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:
15ifndef ARB
16CC              = gcc
17CFLAGS  = -O3 $(CFLAGS_RAXML)
18
19TARGET  = .
20MAIN    = $(EXE)
21#-xO5
22# -pg
23LDFLAGS = -lm
24
25
26# ----------------------------------------
27# compile for ARB:
28else
29
30CC      = $(A_CC)
31TARGET  = $(ARBHOME)/bin
32LDFLAGS = -lm
33CFLAGS  = $(cflags) $(onlyC_flags) $(CFLAGS_RAXML)
34
35$(MAIN) : all
36
37endif
38
39TARGETS = $(TARGET)/raxmlHPC
40all : $(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
47clean :
48        $(RM) $(OBJECTS) $(TARGETS)
49
50DEPENDS = $(OBJECTS:.o=.depend)
51depends: $(DEPENDS)
52        @cat $(DEPENDS) | grep -v '^#' >>Makefile
53        @rm $(DEPENDS)
54$(DEPENDS): depend.init
55depend.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
67ancestralStates.o: axml.h
68
69axml.o: axml.h
70axml.o: globalVariables.h
71
72bipartitionList.o: axml.h
73
74classify.o: axml.h
75
76evaluateGenericSpecial.o: axml.h
77
78evaluatePartialGenericSpecial.o: axml.h
79
80fastDNAparsimony.o: axml.h
81
82fastSearch.o: axml.h
83
84leaveDropping.o: axml.h
85
86makenewzGenericSpecial.o: axml.h
87
88mem_alloc.o: axml.h
89mem_alloc.o: $(ARBHOME)/INCLUDE/malloc.h
90
91models.o: axml.h
92
93multiple.o: axml.h
94
95newviewGenericSpecial.o: axml.h
96
97optimizeModel.o: axml.h
98
99parsePartitions.o: axml.h
100
101rapidBootstrap.o: axml.h
102
103rogueEPA.o: axml.h
104
105searchAlgo.o: axml.h
106
107topologies.o: axml.h
108
109treeIO.o: axml.h
Note: See TracBrowser for help on using the repository browser.