1 ###################################################
4 # Created: June 29, 2010
6 ###################################################
17 MOTHUR_FILES="\"Enter_your_default_path_here\""
18 RELEASE_DATE = "\"7/9/2012\""
19 VERSION = "\"1.26.0\""
20 FORTAN_COMPILER = gfortran
23 # Optimize to level 3:
26 ifeq ($(strip $(64BIT_VERSION)),yes)
27 #if you are using centos uncomment the following lines
30 #if you are a mac user use the following line
31 TARGET_ARCH += -arch x86_64
33 #if you using cygwin to build Windows the following line
34 #CXX = x86_64-w64-mingw32-g++
35 #CC = x86_64-w64-mingw32-g++
36 #FORTAN_COMPILER = x86_64-w64-mingw32-gfortran
37 #TARGET_ARCH += -m64 -static
39 #if you are a linux user use the following line
40 #CXXFLAGS += -mtune=native -march=native -m64
42 CXXFLAGS += -DBIT_VERSION
47 CXXFLAGS += -DRELEASE_DATE=${RELEASE_DATE} -DVERSION=${VERSION}
49 ifeq ($(strip $(MOTHUR_FILES)),"\"Enter_your_default_path_here\"")
51 CXXFLAGS += -DMOTHUR_FILES=${MOTHUR_FILES}
54 ifeq ($(strip $(CYGWIN_BUILD)),yes)
55 CXXFLAGS += -mno-cygwin
56 LDFLAGS += -mno-cygwin
59 # if you do not want to use the readline library, set this to no.
60 # make sure you have the library installed
63 ifeq ($(strip $(USEREADLINE)),yes)
64 CXXFLAGS += -DUSE_READLINE
71 ifeq ($(strip $(USEMPI)),yes)
76 # if you want to enable reading and writing of compressed files, set to yes.
77 # The default is no. this may only work on unix-like systems, not for windows.
80 ifeq ($(strip $(USECOMPRESSION)),yes)
81 CXXFLAGS += -DUSE_COMPRESSION
85 # INCLUDE directories for mothur
91 # Get the list of all .cpp files, rename to .o files
94 OBJECTS=$(patsubst %.cpp,%.o,$(wildcard *.cpp))
95 OBJECTS+=$(patsubst %.c,%.o,$(wildcard *.c))
96 OBJECTS+=$(patsubst %.f,%.o,$(wildcard *.f))
98 mothur : fortranSource $(OBJECTS) uchime
99 $(CXX) $(LDFLAGS) $(TARGET_ARCH) -o $@ $(OBJECTS) $(LIBS)
104 cd uchime_src && ./mk && mv uchime .. && cd ..
107 ${FORTAN_COMPILER} -c $(FORTRAN_FLAGS) *.f
110 # cp mothur ../Release/mothur
113 $(COMPILE.c) $(OUTPUT_OPTION) $<
115 $(COMPILE.cpp) $(OUTPUT_OPTION) $<
117 $(COMPILE.cpp) $(OUTPUT_OPTION) $<