source: trunk/GDE/MrBAYES/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.
File size: 1.2 KB
Line 
1# MrBayes Makefile for ARB
2# by Arne Boeckmann (2013)
3
4PROG   = MrBAYES
5SUB    = mrbayes_3.2.1
6FOLDER =$(ARBHOME)/GDE/MrBAYES/$(SUB)
7
8LOCBIN=$(FOLDER)/mb
9LOCDEPS=$(FOLDER)/Makefile $(wildcard $(FOLDER)/*.c) $(wildcard $(FOLDER)/*.h)
10
11INSTBIN=$(ARBHOME)/bin/mb
12
13CC:=$(A_CC) $(onlyC_flags)
14CXX:=$(A_CXX)
15
16# ARBs standard target
17$(MAIN) : $(INSTBIN)
18
19clean :
20        rm -f $(INSTBIN)
21        cd $(FOLDER) && $(MAKE) clean
22
23$(INSTBIN) : $(LOCBIN)
24        cp $(LOCBIN) $(INSTBIN)
25
26$(LOCBIN): $(LOCDEPS)
27        +cd $(FOLDER) && $(MAKE) mb
28
29depends: $(SUB)/$(SUB).depend
30
31%.depend:
32        @cp -p $(@D)/Makefile $(@D)/Makefile.old # save old Makefile
33        @$(MAKE) -C $(@D) -r depends
34        @grep "^# DO NOT DELETE" $(@D)/Makefile >/dev/null || \
35                (echo "$(@D)/Makefile:666: Error: No dependencies in $(@D)/Makefile"; false) # check whether sub Makefile has dependencies
36        @$(ARBHOME)/SOURCE_TOOLS/fix_depends.pl "(from GDE/MrBayes)" < $(@D)/Makefile > $(@D)/Makefile.2
37        @mv $(@D)/Makefile.old $(@D)/Makefile # restore old Makefile
38        @$(ARBHOME)/SOURCE_TOOLS/mv_if_diff $(@D)/Makefile.2 $(@D)/Makefile # update Makefile if changed
39
40.PHONY : clean depends
41
42# DO NOT DELETE
43
44# Do not add dependencies manually - use 'make depend' in $ARBHOME
45# For formatting issues see SOURCE_TOOLS/fix_depends.pl (from GDE)
Note: See TracBrowser for help on using the repository browser.