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
23 64BIT_VERSION ?= yes
\r
25 ifeq ($(strip $(64BIT_VERSION)),yes)
\r
26 TARGET_ARCH += -arch x86_64
\r
29 # if you do not want to use the readline library, set this to no.
\r
30 # make sure you have the library installed
\r
34 ifeq ($(strip $(USEREADLINE)),yes)
\r
35 CXXFLAGS += -DUSE_READLINE
\r
44 ifeq ($(strip $(USEMPI)),yes)
\r
46 CXXFLAGS += -DUSE_MPI
\r
50 # INCLUDE directories for mothur
\r
56 # Get the list of all .cpp files, rename to .o files
\r
59 OBJECTS=$(patsubst %.cpp,%.o,$(wildcard *.cpp))
\r
62 $(CXX) $(LDFLAGS) $(TARGET_ARCH) -o $@ $(OBJECTS)
\r
65 cp mothur ../Release/mothur
\r