source: branches/port5/GDE/RAxML/Makefile

Last change on this file was 5872, checked in by westram, 16 years ago
  • Changed variable transfer to sub-makefiles
    • most variables are now exported via environment (using SOURCE_TOOLS/export2sub or AISC/export2sub)
    • only variables that contain different values for different sub-makefile-calls are passed by cl (e.g. cflags, MAIN)
    • changed flavour of exported variables (recursively expanded → simply expanded variables). Please use VAR := VALUE in Makefiles (not VAR = VALUE). See http://www.gnu.org/software/make/manual/html_node/Flavors.html#Flavors for details
  • removed/fixed all undefined variables in Makefiles (using 'make —warn-undefined-variables')
  • changed names of compile-logs generated in GDE subdir
  • added target 'xmlin' (broken, print warning)
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 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 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
7OBJECTS = $(RAXML_OBJECTS)
8RM = rm -f
9
10GLOBAL_DEPS = axml.h globalVariables.h
11CFLAGS_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:
16ifndef ARB
17CC              = gcc
18CFLAGS  = -O3 $(CFLAGS_RAXML)
19
20TARGET  = .
21MAIN    = $(EXE)
22#-xO5
23# -pg
24LDFLAGS = -lm
25
26
27# ----------------------------------------
28# compile for ARB:
29else
30
31CC      = $(ACC)
32TARGET  = $(ARBHOME)/bin
33LDFLAGS = -lm
34CFLAGS  = $(cflags) $(CFLAGS_RAXML)
35
36$(MAIN) : all
37
38endif
39
40TARGETS = $(TARGET)/raxmlHPC
41all : $(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
48clean :
49        $(RM) $(OBJECTS) $(TARGETS)
50
51DEPENDS = $(OBJECTS:.o=.depend)
52depends: $(DEPENDS)
53        @cat $(DEPENDS) | grep -v '^#' >>Makefile
54        @rm $(DEPENDS)
55$(DEPENDS): depend.init
56depend.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
68axml.o: axml.h
69axml.o: globalVariables.h
70
71bipartitionList.o: axml.h
72
73categorizeGeneric.o: axml.h
74
75evaluateGeneric.o: axml.h
76
77evaluateGenericVector.o: axml.h
78
79evaluatePartialGeneric.o: axml.h
80
81makenewzGeneric.o: axml.h
82
83models.o: axml.h
84
85multiple.o: axml.h
86
87newviewGeneric.o: axml.h
88
89optimizeModel.o: axml.h
90
91parsePartitions.o: axml.h
92
93rapidBootstrap.o: axml.h
94
95raxmlParsimony.o: axml.h
96
97rev_functions.o: axml.h
98
99searchAlgo.o: axml.h
100
101topologies.o: axml.h
102
103treeIO.o: axml.h
Note: See TracBrowser for help on using the repository browser.