source: branches/gcc/GDE/FASTTREE/Makefile

Last change on this file was 19936, checked in by westram, 7 days ago
  • disable some warnings for fasttree.
File size: 924 bytes
Line 
1# FastTree Makefile for ARB
2# by Arne Boeckmann (2013)
3
4PROG = FASTTREE
5
6CC=$(A_CC)
7
8WFLAGS=-W -Wall
9# WFLAGS=-w
10
11# disable some warnings for build together with arb:
12WFLAGS += -Wno-maybe-uninitialized -Wno-stringop-overflow
13
14CFLAGS=-O3 -finline-functions -funroll-loops $(onlyC_flags)
15
16LIBS=-lm
17
18SOURCE=FastTree.c
19FORMER_LOCBIN=FastTree
20
21INSTBIN_SP=$(ARBHOME)/bin/FastTree
22INSTBIN_MP=$(ARBHOME)/bin/FastTreeMP
23
24# see ../../Makefile@USE_OPENMP
25ifeq ($(USE_OPENMP),1)
26        WANTED_VERSIONS=$(INSTBIN_SP) $(INSTBIN_MP)
27else
28        WANTED_VERSIONS=$(INSTBIN_SP)
29endif
30
31# ARBs standard target
32$(MAIN) : $(WANTED_VERSIONS)
33
34$(INSTBIN_SP): $(SOURCE) Makefile
35        $(CC) $(CFLAGS) $(WFLAGS) -o $@ $< $(LIBS)
36
37$(INSTBIN_MP): $(SOURCE) Makefile
38        $(CC) -DOPENMP -fopenmp $(CFLAGS) $(WFLAGS) -o $@ $< $(LIBS)
39
40clean :
41        -rm -f $(INSTBIN_SP) $(INSTBIN_MP)
42        @-rm -f $(FORMER_LOCBIN) # remove former local binary (can be removed later)
43
44.PHONY : clean
45
46
Note: See TracBrowser for help on using the repository browser.