1 ###################################################
4 # Created: June 29, 2010
6 ###################################################
12 # Optimize to level 3:
16 MOTHUR_FILES = "\"Enter_your_default_path_here\""
17 ifeq ($(strip $(MOTHUR_FILES)),"\"Enter_your_default_path_here\"")
19 CXXFLAGS += -DMOTHUR_FILES=${MOTHUR_FILES}
23 ifeq ($(strip $(CYGWIN_BUILD)),yes)
24 CXXFLAGS += -mno-cygwin
25 LDFLAGS += -mno-cygwin
30 ifeq ($(strip $(64BIT_VERSION)),yes)
31 TARGET_ARCH += -arch x86_64
32 CXXFLAGS += -DBIT_VERSION
34 #if you are using centos uncomment the following lines
36 #CXXFLAGS += -mtune=native -march=native -m64
39 # if you do not want to use the readline library, set this to no.
40 # make sure you have the library installed
44 ifeq ($(strip $(USEREADLINE)),yes)
45 CXXFLAGS += -DUSE_READLINE
53 ifeq ($(strip $(USEMPI)),yes)
59 # INCLUDE directories for mothur
65 # Get the list of all .cpp files, rename to .o files
68 OBJECTS=$(patsubst %.cpp,%.o,$(wildcard *.cpp))
71 $(CXX) $(LDFLAGS) $(TARGET_ARCH) -o $@ $(OBJECTS)
74 cp mothur ../Release/mothur
77 $(COMPILE.cpp) $(OUTPUT_OPTION) $<
79 $(COMPILE.cpp) $(OUTPUT_OPTION) $<