source: branches/items/GDE/RAxML8/Makefile

Last change on this file was 18140, checked in by westram, 5 years ago
  • full update from child 'fix' into 'trunk'
    • improve target 'cleanRelinkable'
    • fix crash in inotify file tracker (occurred when moving a tracked file)
    • minor tweaks for fts
  • adds: log:branches/fix@18131:18139
File size: 1.5 KB
Line 
1# Wrapper to build RAxML versions
2
3# _PORTABLE_PTHREADS in axml.c to get pthread pinning on linux
4# use approx 1 thread per 500bp
5
6# Versions of RAxML to build
7VERSIONS:=SSE3.PTHREADS PTHREADS
8
9# AVX needs gcc >= 4.6.0
10ifeq ("$(USE_GCC_46_OR_HIGHER)", "yes")
11  VERSIONS+=AVX.PTHREADS
12endif
13
14TARFILE=$(wildcard standard-RAxML-8.*.*gz)
15
16ifeq ($(DARWIN),1)
17  MAKE_SUFFIX=mac
18else
19  MAKE_SUFFIX=gcc
20endif
21
22RAXML_BIN=$(ARBHOME)/bin/raxmlHPC8-
23
24## targets called by "upsteam makefile":
25
26all: install
27
28clean:
29        rm -rf builddir.*
30        rm -f $(RAXML_BIN)*
31        rm -f unpack.*.stamp
32
33wantNoWindowsExecutables:
34        -find . -name "WindowsExecutables*" -type d -exec rm -r {} \;
35
36## internal targets
37
38install: build
39        cp arb_raxml8.sh $(ARBHOME)/bin
40        chmod a+x $(ARBHOME)/bin/arb_raxml8.sh
41        cp raxml8.menu $(ARBHOME)/lib/gde
42
43build:  $(VERSIONS:%=$(RAXML_BIN)%)
44        $(MAKE) wantNoWindowsExecutables
45
46# (MAKEFLAGS need to be unset as ARB sets "-r", suppressing built-in rules,
47#  which are needed by RAxML)
48
49$(RAXML_BIN)%: unpack.%.stamp
50        MAKEFLAGS= $(MAKE) -C $(<:unpack.%.stamp=builddir.%) -f Makefile.$(@:$(RAXML_BIN)%=%).$(MAKE_SUFFIX)
51        cp $(<:unpack.%.stamp=builddir.%)/raxmlHPC-* $@
52
53unpack.%.stamp: $(TARFILE)
54        (DIR=$(@:unpack.%.stamp=builddir.%); \
55        rm -rf $$DIR &&\
56        mkdir $$DIR &&\
57        tar -C $$DIR --strip-components=1 -xzf $(TARFILE) &&\
58        arb_sed -i 's/-march=native//' $$DIR/Makefile*)
59        touch $@ -r $(TARFILE)
60
61%.stamp:
62        echo $@
63
64# prevent make from deleting intermediate targets:
65.SECONDARY:
66
67.PHONY: clean all
Note: See TracBrowser for help on using the repository browser.