source: trunk/TREEGEN/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.9 KB
Line 
1# for variables passed from parent makefile see ../SOURCE_TOOLS/parent_make.txt
2
3.SUFFIXES: .c .o .h .depend
4
5OBJECTS = $(subst .c,.o,$(wildcard *.c))
6
7$(MAIN): $(OBJECTS)
8        $(LINK_STATIC_LIB) $(MAIN) $(OBJECTS)
9
10.c.o:
11        $(A_CC) $(cflags) $(onlyC_flags) -c $< $(CC_INCLUDES) $(POST_COMPILE) $<
12
13clean:
14        rm -f $(OBJECTS) *.a
15
16DEPENDS = $(OBJECTS:.o=.depend)
17depends: $(DEPENDS)
18        @cat $(DEPENDS) | grep -v '^#' >>Makefile
19        @rm $(DEPENDS)
20$(DEPENDS): depend.init
21depend.init:
22        $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies
23.c.depend:
24        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
25.cxx.depend:
26        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
27
28# DO NOT DELETE
29
30# Do not add dependencies manually - use 'make depend' in $ARBHOME
31# For formatting issues see SOURCE_TOOLS/fix_depends.pl (from main)
32
33base.o: base.h
34base.o: defines.h
35base.o: $(ARBHOME)/INCLUDE/attributes.h
36base.o: $(ARBHOME)/INCLUDE/gccver.h
37
38defines.o: defines.h
39defines.o: $(ARBHOME)/INCLUDE/attributes.h
40defines.o: $(ARBHOME)/INCLUDE/gccver.h
41
42frand.o: defines.h
43frand.o: frand.h
44frand.o: $(ARBHOME)/INCLUDE/attributes.h
45frand.o: $(ARBHOME)/INCLUDE/gccver.h
46
47readcfg.o: defines.h
48readcfg.o: readcfg.h
49readcfg.o: $(ARBHOME)/INCLUDE/attributes.h
50readcfg.o: $(ARBHOME)/INCLUDE/gccver.h
51
52rns.o: base.h
53rns.o: defines.h
54rns.o: frand.h
55rns.o: rns.h
56rns.o: simcfg.h
57rns.o: spreadin.h
58rns.o: $(ARBHOME)/INCLUDE/attributes.h
59rns.o: $(ARBHOME)/INCLUDE/gccver.h
60
61sim.o: base.h
62sim.o: defines.h
63sim.o: frand.h
64sim.o: rns.h
65sim.o: simcfg.h
66sim.o: $(ARBHOME)/INCLUDE/attributes.h
67sim.o: $(ARBHOME)/INCLUDE/gccver.h
68
69simcfg.o: base.h
70simcfg.o: defines.h
71simcfg.o: frand.h
72simcfg.o: readcfg.h
73simcfg.o: rns.h
74simcfg.o: simcfg.h
75simcfg.o: $(ARBHOME)/INCLUDE/attributes.h
76simcfg.o: $(ARBHOME)/INCLUDE/gccver.h
77
78spreadin.o: defines.h
79spreadin.o: spreadin.h
80spreadin.o: $(ARBHOME)/INCLUDE/attributes.h
81spreadin.o: $(ARBHOME)/INCLUDE/gccver.h
Note: See TracBrowser for help on using the repository browser.