1 ###################################################
4 # Created: June 29, 2010
6 ###################################################
17 MOTHUR_FILES="\"../release\""
18 RELEASE_DATE = "\"2/7/2011\""
19 VERSION = "\"1.16.0\""
21 # Optimize to level 3:
24 ifeq ($(strip $(64BIT_VERSION)),yes)
25 #if you are using centos uncomment the following lines
28 #if you are a mac user use the following line
29 TARGET_ARCH += -arch x86_64
31 #if you are a linux user use the following line
32 #CXXFLAGS += -mtune=native -march=native -m64
34 CXXFLAGS += -DBIT_VERSION
38 CXXFLAGS += -DRELEASE_DATE=${RELEASE_DATE} -DVERSION=${VERSION}
40 ifeq ($(strip $(MOTHUR_FILES)),"\"Enter_your_default_path_here\"")
42 CXXFLAGS += -DMOTHUR_FILES=${MOTHUR_FILES}
45 ifeq ($(strip $(CYGWIN_BUILD)),yes)
46 CXXFLAGS += -mno-cygwin
47 LDFLAGS += -mno-cygwin
50 # if you do not want to use the readline library, set this to no.
51 # make sure you have the library installed
54 ifeq ($(strip $(USEREADLINE)),yes)
55 CXXFLAGS += -DUSE_READLINE
62 ifeq ($(strip $(USEMPI)),yes)
67 # if you want to enable reading and writing of compressed files, set to yes.
68 # The default is no. this may only work on unix-like systems, not for windows.
71 ifeq ($(strip $(USECOMPRESSION)),yes)
72 CXXFLAGS += -DUSE_COMPRESSION
76 # INCLUDE directories for mothur
82 # Get the list of all .cpp files, rename to .o files
85 OBJECTS=$(patsubst %.cpp,%.o,$(wildcard *.cpp))
86 OBJECTS+=$(patsubst %.c,%.o,$(wildcard *.c))
89 $(CXX) $(LDFLAGS) $(TARGET_ARCH) -o $@ $(OBJECTS) $(LIBS)
94 # cp mothur ../Release/mothur
97 $(COMPILE.c) $(OUTPUT_OPTION) $<
99 $(COMPILE.cpp) $(OUTPUT_OPTION) $<
101 $(COMPILE.cpp) $(OUTPUT_OPTION) $<