# FastTree Makefile for ARB # by Arne Boeckmann (2013) PROG = FASTTREE CC=$(A_CC) WFLAGS=-W -Wall # WFLAGS=-w CFLAGS=-O3 -finline-functions -funroll-loops $(onlyC_flags) LIBS=-lm SOURCE=FastTree.c FORMER_LOCBIN=FastTree INSTBIN_SP=$(ARBHOME)/bin/FastTree INSTBIN_MP=$(ARBHOME)/bin/FastTreeMP # see ../../Makefile@USE_OPENMP ifeq ($(USE_OPENMP),1) WANTED_VERSIONS=$(INSTBIN_SP) $(INSTBIN_MP) else WANTED_VERSIONS=$(INSTBIN_SP) endif # ARBs standard target $(MAIN) : $(WANTED_VERSIONS) $(INSTBIN_SP): $(SOURCE) Makefile $(CC) $(CFLAGS) $(WFLAGS) -o $@ $< $(LIBS) $(INSTBIN_MP): $(SOURCE) Makefile $(CC) -DOPENMP -fopenmp $(CFLAGS) $(WFLAGS) -o $@ $< $(LIBS) clean : -rm -f $(INSTBIN_SP) $(INSTBIN_MP) @-rm -f $(FORMER_LOCBIN) # remove former local binary (can be removed later) .PHONY : clean