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.
- 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 | |
---|
6 | LIBS = -lm |
---|
7 | PROG = PHYML |
---|
8 | DFLAG = -DUNIX -D$(PROG) |
---|
9 | OBJS = main.o utilities.o optimiz.o lk.o bionj.o models.o free.o options.o simu.o eigen.o |
---|
10 | |
---|
11 | ifndef ARB |
---|
12 | # ---------------------------------------- |
---|
13 | # original compilation |
---|
14 | |
---|
15 | CC = gcc #cc |
---|
16 | CFLAGS = -O4 -fomit-frame-pointer -Wall |
---|
17 | # CFLAGS = -Wall |
---|
18 | # CFLAGS = -g -Wall |
---|
19 | # CFLAGS = -pg -Wall -fprofile-arcs -static |
---|
20 | |
---|
21 | EXEC = phyml |
---|
22 | |
---|
23 | else |
---|
24 | # ---------------------------------------- |
---|
25 | # compilation together with ARB |
---|
26 | |
---|
27 | CC = $(A_CC) |
---|
28 | CFLAGS = $(cflags) $(onlyC_flags) -fomit-frame-pointer |
---|
29 | EXEC = $(ARBHOME)/bin/phyml |
---|
30 | |
---|
31 | ifeq ($(DARWIN),1) |
---|
32 | CFLAGS += -fPIC |
---|
33 | endif |
---|
34 | |
---|
35 | # ARBs standard target |
---|
36 | $(MAIN) : $(EXEC) |
---|
37 | |
---|
38 | endif |
---|
39 | |
---|
40 | $(EXEC) : $(OBJS) |
---|
41 | $(CC) -o $(EXEC) $(OBJS) $(LIBS) $(CFLAGS) |
---|
42 | |
---|
43 | clean : |
---|
44 | rm -f $(OBJS) $(EXEC) |
---|
45 | |
---|
46 | .c.o: |
---|
47 | $(CC) $(CFLAGS) $(DFLAG) -c -o $@ $< |
---|
48 | |
---|
49 | ###################################################################################################### |
---|
50 | |
---|
51 | DEPENDS = $(OBJS:.o=.depend) |
---|
52 | depends: $(DEPENDS) |
---|
53 | @cat $(DEPENDS) | grep -v '^#' >>Makefile |
---|
54 | @rm $(DEPENDS) |
---|
55 | $(DEPENDS): depend.init |
---|
56 | depend.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 | |
---|
66 | bionj.o: bionj.h |
---|
67 | bionj.o: optimiz.h |
---|
68 | bionj.o: utilities.h |
---|
69 | |
---|
70 | eigen.o: eigen.h |
---|
71 | eigen.o: utilities.h |
---|
72 | |
---|
73 | free.o: free.h |
---|
74 | free.o: utilities.h |
---|
75 | |
---|
76 | lk.o: free.h |
---|
77 | lk.o: lk.h |
---|
78 | lk.o: models.h |
---|
79 | lk.o: optimiz.h |
---|
80 | lk.o: utilities.h |
---|
81 | |
---|
82 | main.o: bionj.h |
---|
83 | main.o: free.h |
---|
84 | main.o: lk.h |
---|
85 | main.o: models.h |
---|
86 | main.o: optimiz.h |
---|
87 | main.o: options.h |
---|
88 | main.o: simu.h |
---|
89 | main.o: utilities.h |
---|
90 | |
---|
91 | models.o: eigen.h |
---|
92 | models.o: free.h |
---|
93 | models.o: models.h |
---|
94 | models.o: utilities.h |
---|
95 | |
---|
96 | optimiz.o: free.h |
---|
97 | optimiz.o: lk.h |
---|
98 | optimiz.o: optimiz.h |
---|
99 | optimiz.o: utilities.h |
---|
100 | |
---|
101 | options.o: free.h |
---|
102 | options.o: models.h |
---|
103 | options.o: options.h |
---|
104 | options.o: utilities.h |
---|
105 | |
---|
106 | simu.o: free.h |
---|
107 | simu.o: lk.h |
---|
108 | simu.o: models.h |
---|
109 | simu.o: optimiz.h |
---|
110 | simu.o: simu.h |
---|
111 | simu.o: utilities.h |
---|
112 | |
---|
113 | utilities.o: bionj.h |
---|
114 | utilities.o: free.h |
---|
115 | utilities.o: lk.h |
---|
116 | utilities.o: models.h |
---|
117 | utilities.o: optimiz.h |
---|
118 | utilities.o: simu.h |
---|
119 | utilities.o: utilities.h |
---|
Note: See
TracBrowser
for help on using the repository browser.