source: trunk/GDE/AxML/Makefile

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.
      • 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: 1.0 KB
Line 
1# Makefile February 2002 by Alexandros P. Stamatakis
2
3.SUFFIXES: .o .c .h .depend
4
5OBJECTS = axml.o
6RM         = rm -f
7
8# ----------------------------------------
9# normal compilation:
10ifndef ARB
11
12CC              = gcc
13CFLAGS  = -O3
14TARGET  = axml
15MAIN    = $(EXE)
16
17# ----------------------------------------
18# compile for ARB:
19else
20
21CC      = $(A_CC)
22TARGET  = $(ARBHOME)/bin/axml
23CFLAGS  = $(cflags) $(onlyC_flags)
24
25$(MAIN) : all
26
27endif
28
29# ----------------------------------------
30
31all : $(TARGET)
32
33$(TARGET) : $(OBJECTS)
34        $(CC) $(CFLAGS) -o $@ $< -lm
35
36.c.o:
37        $(CC) $(CFLAGS) -c -o $@ $<
38
39clean :
40        $(RM) $(OBJECTS) $(TARGET)
41
42DEPENDS = $(OBJECTS:.o=.depend)
43depends: $(DEPENDS)
44        @cat $(DEPENDS) | grep -v '^#' >>Makefile
45        @rm $(DEPENDS)
46$(DEPENDS): depend.init
47depend.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
57axml.o: axml.h
Note: See TracBrowser for help on using the repository browser.