source: trunk/GDE/PHYML/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.2 KB
Line 
1# PHYML 2.4.5 Makefile
2# modified for ARB by Ralf Westram (Jun 2006)
3
4.SUFFIXES: .o .c .h .depend
5
6LIBS  = -lm
7PROG  = PHYML
8DFLAG = -DUNIX -D$(PROG)
9OBJS  = main.o utilities.o optimiz.o lk.o bionj.o models.o free.o options.o simu.o eigen.o
10
11ifndef ARB
12# ----------------------------------------
13# original compilation
14
15CC = gcc #cc
16CFLAGS = -O4 -fomit-frame-pointer -Wall
17# CFLAGS = -Wall
18# CFLAGS = -g -Wall
19# CFLAGS = -pg -Wall -fprofile-arcs -static
20
21EXEC = phyml
22
23else
24# ----------------------------------------
25# compilation together with ARB
26
27CC     = $(A_CC)
28CFLAGS = $(cflags) $(onlyC_flags) -fomit-frame-pointer
29EXEC   = $(ARBHOME)/bin/phyml
30
31ifeq ($(DARWIN),1)
32CFLAGS += -fPIC
33endif
34
35# ARBs standard target
36$(MAIN) : $(EXEC)
37
38endif
39
40$(EXEC) : $(OBJS)
41                $(CC) -o $(EXEC) $(OBJS) $(LIBS) $(CFLAGS)
42
43clean :
44                rm -f $(OBJS) $(EXEC)
45
46.c.o:
47                $(CC) $(CFLAGS) $(DFLAG) -c -o $@ $<
48
49######################################################################################################
50
51DEPENDS = $(OBJS:.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# DO NOT DELETE
62
63# Do not add dependencies manually - use 'make depend' in $ARBHOME
64# For formatting issues see SOURCE_TOOLS/fix_depends.pl (from GDE)
65
66bionj.o: bionj.h
67bionj.o: optimiz.h
68bionj.o: utilities.h
69
70eigen.o: eigen.h
71eigen.o: utilities.h
72
73free.o: free.h
74free.o: utilities.h
75
76lk.o: free.h
77lk.o: lk.h
78lk.o: models.h
79lk.o: optimiz.h
80lk.o: utilities.h
81
82main.o: bionj.h
83main.o: free.h
84main.o: lk.h
85main.o: models.h
86main.o: optimiz.h
87main.o: options.h
88main.o: simu.h
89main.o: utilities.h
90
91models.o: eigen.h
92models.o: free.h
93models.o: models.h
94models.o: utilities.h
95
96optimiz.o: free.h
97optimiz.o: lk.h
98optimiz.o: optimiz.h
99optimiz.o: utilities.h
100
101options.o: free.h
102options.o: models.h
103options.o: options.h
104options.o: utilities.h
105
106simu.o: free.h
107simu.o: lk.h
108simu.o: models.h
109simu.o: optimiz.h
110simu.o: simu.h
111simu.o: utilities.h
112
113utilities.o: bionj.h
114utilities.o: free.h
115utilities.o: lk.h
116utilities.o: models.h
117utilities.o: optimiz.h
118utilities.o: simu.h
119utilities.o: utilities.h
Note: See TracBrowser for help on using the repository browser.