Last change
on this file was
19446,
checked in by westram, 16 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:
1.0 KB
|
Line | |
---|
1 | # Makefile February 2002 by Alexandros P. Stamatakis |
---|
2 | |
---|
3 | .SUFFIXES: .o .c .h .depend |
---|
4 | |
---|
5 | OBJECTS = axml.o |
---|
6 | RM = rm -f |
---|
7 | |
---|
8 | # ---------------------------------------- |
---|
9 | # normal compilation: |
---|
10 | ifndef ARB |
---|
11 | |
---|
12 | CC = gcc |
---|
13 | CFLAGS = -O3 |
---|
14 | TARGET = axml |
---|
15 | MAIN = $(EXE) |
---|
16 | |
---|
17 | # ---------------------------------------- |
---|
18 | # compile for ARB: |
---|
19 | else |
---|
20 | |
---|
21 | CC = $(A_CC) |
---|
22 | TARGET = $(ARBHOME)/bin/axml |
---|
23 | CFLAGS = $(cflags) $(onlyC_flags) |
---|
24 | |
---|
25 | $(MAIN) : all |
---|
26 | |
---|
27 | endif |
---|
28 | |
---|
29 | # ---------------------------------------- |
---|
30 | |
---|
31 | all : $(TARGET) |
---|
32 | |
---|
33 | $(TARGET) : $(OBJECTS) |
---|
34 | $(CC) $(CFLAGS) -o $@ $< -lm |
---|
35 | |
---|
36 | .c.o: |
---|
37 | $(CC) $(CFLAGS) -c -o $@ $< |
---|
38 | |
---|
39 | clean : |
---|
40 | $(RM) $(OBJECTS) $(TARGET) |
---|
41 | |
---|
42 | DEPENDS = $(OBJECTS:.o=.depend) |
---|
43 | depends: $(DEPENDS) |
---|
44 | @cat $(DEPENDS) | grep -v '^#' >>Makefile |
---|
45 | @rm $(DEPENDS) |
---|
46 | $(DEPENDS): depend.init |
---|
47 | depend.init: |
---|
48 | $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies |
---|
49 | .c.depend: |
---|
50 | $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@ |
---|
51 | |
---|
52 | # DO NOT DELETE |
---|
53 | |
---|
54 | # Do not add dependencies manually - use 'make depend' in $ARBHOME |
---|
55 | # For formatting issues see SOURCE_TOOLS/fix_depends.pl (from GDE) |
---|
56 | |
---|
57 | axml.o: axml.h |
---|
Note: See
TracBrowser
for help on using the repository browser.