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
28 # if you do not want to use the readline library, set this to no.
\r
29 # make sure you have the library installed
\r
33 ifeq ($(strip $(USEREADLINE)),yes)
\r
34 CXXFLAGS += -DUSE_READLINE
\r
42 ifeq ($(strip $(USEMPI)),yes)
\r
44 CXXFLAGS += -DUSE_MPI
\r
48 # INCLUDE directories for mothur
\r
54 # Get the list of all .cpp files, rename to .o files
\r
57 OBJECTS=$(patsubst %.cpp,%.o,$(wildcard *.cpp))
\r
60 $(CXX) $(LDFLAGS) $(TARGET_ARCH) -o $@ $(OBJECTS)
\r
63 cp mothur ../Release/mothur
\r
66 $(COMPILE.cpp) $(OUTPUT_OPTION) $<
\r
68 $(COMPILE.cpp) $(OUTPUT_OPTION) $<
\r