1 ###################################################
4 # Created: June 29, 2010
6 ###################################################
12 # Optimize to level 3:
18 ifeq ($(strip $(64BIT_VERSION)),yes)
19 #if you are using centos uncomment the following lines
22 #if you are a mac user use the following line
23 TARGET_ARCH += -arch x86_64
25 #if you are a linux user use the following line
26 #CXXFLAGS += -mtune=native -march=native -m64
28 CXXFLAGS += -DBIT_VERSION
31 MOTHUR_FILES = "\"../release\""
33 RELEASE_DATE = "\"12/10/2010\""
34 VERSION = "\"1.15.0\""
36 CXXFLAGS += -DRELEASE_DATE=${RELEASE_DATE} -DVERSION=${VERSION}
38 ifeq ($(strip $(MOTHUR_FILES)),"\"Enter_your_default_path_here\"")
40 CXXFLAGS += -DMOTHUR_FILES=${MOTHUR_FILES}
44 ifeq ($(strip $(CYGWIN_BUILD)),yes)
45 CXXFLAGS += -mno-cygwin
46 LDFLAGS += -mno-cygwin
49 # if you do not want to use the readline library, set this to no.
50 # make sure you have the library installed
54 ifeq ($(strip $(USEREADLINE)),yes)
55 CXXFLAGS += -DUSE_READLINE
63 ifeq ($(strip $(USEMPI)),yes)
68 # if you want to enable reading and writing of compressed files, set to yes.
69 # The default is no. this may only work on unix-like systems, not for windows.
73 ifeq ($(strip $(USECOMPRESSION)),yes)
74 CXXFLAGS += -DUSE_COMPRESSION
78 # INCLUDE directories for mothur
84 # Get the list of all .cpp files, rename to .o files
87 OBJECTS=$(patsubst %.cpp,%.o,$(wildcard *.cpp))
88 OBJECTS+=$(patsubst %.c,%.o,$(wildcard *.c))
91 $(CXX) $(LDFLAGS) $(TARGET_ARCH) -o $@ $(OBJECTS) $(LIBS)
96 # cp mothur ../Release/mothur
99 $(COMPILE.c) $(OUTPUT_OPTION) $<
101 $(COMPILE.cpp) $(OUTPUT_OPTION) $<
103 $(COMPILE.cpp) $(OUTPUT_OPTION) $<