Line | |
---|
1 | # FastTree Makefile for ARB |
---|
2 | # by Arne Boeckmann (2013) |
---|
3 | |
---|
4 | PROG = FASTTREE |
---|
5 | |
---|
6 | CC=$(A_CC) |
---|
7 | |
---|
8 | WFLAGS=-W -Wall |
---|
9 | # WFLAGS=-w |
---|
10 | |
---|
11 | CFLAGS=-O3 -finline-functions -funroll-loops $(onlyC_flags) |
---|
12 | |
---|
13 | LIBS=-lm |
---|
14 | |
---|
15 | SOURCE=FastTree.c |
---|
16 | FORMER_LOCBIN=FastTree |
---|
17 | |
---|
18 | INSTBIN_SP=$(ARBHOME)/bin/FastTree |
---|
19 | INSTBIN_MP=$(ARBHOME)/bin/FastTreeMP |
---|
20 | |
---|
21 | # see ../../Makefile@USE_OPENMP |
---|
22 | ifeq ($(USE_OPENMP),1) |
---|
23 | WANTED_VERSIONS=$(INSTBIN_SP) $(INSTBIN_MP) |
---|
24 | else |
---|
25 | WANTED_VERSIONS=$(INSTBIN_SP) |
---|
26 | endif |
---|
27 | |
---|
28 | # ARBs standard target |
---|
29 | $(MAIN) : $(WANTED_VERSIONS) |
---|
30 | |
---|
31 | $(INSTBIN_SP): $(SOURCE) Makefile |
---|
32 | $(CC) $(CFLAGS) $(WFLAGS) -o $@ $< $(LIBS) |
---|
33 | |
---|
34 | $(INSTBIN_MP): $(SOURCE) Makefile |
---|
35 | $(CC) -DOPENMP -fopenmp $(CFLAGS) $(WFLAGS) -o $@ $< $(LIBS) |
---|
36 | |
---|
37 | clean : |
---|
38 | -rm -f $(INSTBIN_SP) $(INSTBIN_MP) |
---|
39 | @-rm -f $(FORMER_LOCBIN) # remove former local binary (can be removed later) |
---|
40 | |
---|
41 | .PHONY : clean |
---|
42 | |
---|
43 | |
---|
Note: See
TracBrowser
for help on using the repository browser.