1 ###################################################
4 # Created: June 29, 2010
6 ###################################################
12 # Optimize to level 3:
16 MOTHUR_FILES = "\"../Release\""
18 RELEASE_DATE = "\"9/9/2010\""
19 VERSION = "\"1.13.0\""
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)
64 # if you want to enable reading and writing of compressed files, set to yes.
65 # The default is no. this may only work on unix-like systems.
69 ifeq ($(strip $(USECOMPRESSION)),yes)
70 CXXFLAGS += -DUSE_COMPRESSION
74 # INCLUDE directories for mothur
80 # Get the list of all .cpp files, rename to .o files
83 OBJECTS=$(patsubst %.cpp,%.o,$(wildcard *.cpp))
84 OBJECTS+=$(patsubst %.c,%.o,$(wildcard *.c))
87 $(CXX) $(LDFLAGS) $(TARGET_ARCH) -o $@ $(OBJECTS)
90 cp mothur ../Release/mothur
93 $(COMPILE.c) $(OUTPUT_OPTION) $<
95 $(COMPILE.cpp) $(OUTPUT_OPTION) $<
97 $(COMPILE.cpp) $(OUTPUT_OPTION) $<