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