1 ###################################################
\r
3 # Makefile for mothur
\r
4 # Created: June 29, 2010
\r
6 ###################################################
\r
12 # Optimize to level 3:
\r
17 ifeq ($(strip $(CYGWIN_BUILD)),yes)
\r
18 CXXFLAGS += -mno-cygwin
\r
19 LDFLAGS += -mno-cygwin
\r
22 64BIT_VERSION ?= yes
\r
24 ifeq ($(strip $(64BIT_VERSION)),yes)
\r
25 TARGET_ARCH += -arch x86_64
\r
26 CXXFLAGS += -DBIT_VERSION
\r
28 #if you are using centos uncomment the following lines
\r
30 #CXXFLAGS += -mtune=native -march=native -m64
\r
33 # if you do not want to use the readline library, set this to no.
\r
34 # make sure you have the library installed
\r
38 ifeq ($(strip $(USEREADLINE)),yes)
\r
39 CXXFLAGS += -DUSE_READLINE
\r
47 ifeq ($(strip $(USEMPI)),yes)
\r
49 CXXFLAGS += -DUSE_MPI
\r
53 # INCLUDE directories for mothur
\r
59 # Get the list of all .cpp files, rename to .o files
\r
62 OBJECTS=$(patsubst %.cpp,%.o,$(wildcard *.cpp))
\r
65 $(CXX) $(LDFLAGS) $(TARGET_ARCH) -o $@ $(OBJECTS)
\r
68 cp mothur ../Release/mothur
\r
71 $(COMPILE.cpp) $(OUTPUT_OPTION) $<
\r
73 $(COMPILE.cpp) $(OUTPUT_OPTION) $<
\r