1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
|
#
# The archiver and the flag(s) to use when building archive (library)
# If you system has no ranlib, set RANLIB = echo.
#
#ARCH = libtool
#ARCHFLAGS = -o
ARCH = ar
ARCHFLAGS = -rvs
RANLIB = ranlib
#MACOSX_DEPLOYMENT_TARGET=10.4
#export MACOSX_DEPLOYMENT_TARGET
# LOCALLIBDIR = /usr/local/lib
# LIBS = -ldistfit -lmsa -ldssplite -ldltmath -lDLTutils -ltheseus
# SYSLIBS = -lpthread -lgsl -lgslcblas -lm -lc
# LIBDIR = -L./lib
# INSTALLDIR = /usr/local/bin
# #OPT = -O0 -ggdb
# OPT = -O3 -ffast-math -fstrict-aliasing -funroll-loops -fomit-frame-pointer
# WARN = -Werror -Wno-error=unused-result -Wall -pedantic -std=c99
# CFLAGS += $(WARN) #-force_cpusubtype_ALL -mmacosx-version-min=10.4 -arch x86_64 -arch i386 #-DNDEBUG
# # CPPFLAGS are ignored by the rest of the build system but necessary for hardening flags.
# CFLAGS += $(CPPFLAGS)
# # Filter out -O2 which overwrites the default -O3 because OPT is used before CFLAGS
# CFLAGS := $(filter-out -O2,$(CFLAGS))
# CC = gcc
#Mac OSX
LOCALLIBDIR = /usr/local/lib
LIBS = -lgsl -ldistfit -lmsa -ldssplite -ldltmath -lDLTutils -ltheseus
SYSLIBS = -lpthread -lgsl -lgslcblas -lm -lc
LIBDIR = -L./lib
INSTALLDIR = /usr/local/bin
#OPT = -O0 -ggdb
OPT = -ggdb -O3 -ffast-math -fstrict-aliasing -funroll-loops -fomit-frame-pointer -mtune=native
WARN = -Wall -pedantic -std=c99
CFLAGS += $(WARN)
# CPPFLAGS are ignored by the rest of the build system but necessary for hardening flags
CFLAGS += $(CPPFLAGS)
# Filter out -O2 which overwrites the default -O3 because OPT is used before CFLAGS
CFLAGS := $(filter-out -O2,$(CFLAGS))
CC = /usr/bin/gcc
#CC = /usr/local/bin/gcc
# Mac OSX Universal
#
#LOCALLIBDIR = /usr/local/lib
#LIBS = -lgsl -lgslcblas -ldistfit -lmsa -ldssplite -ldltmath -lDLTutils -ltheseus
#SYSLIBS = -lpthread -lgsl -lgslcblas -lm -lc
#LIBDIR = -L./lib
#INSTALLDIR = /usr/local/bin
##OPT = -O0 -ggdb
#OPT = -s -O3 -ffast-math -fstrict-aliasing -funroll-loops -fomit-frame-pointer
##WARN = -Werror -Wno-error=unused-result -Wall -pedantic -std=c99
#WARN = -Werror -Wall -pedantic -std=c99 # for APPLE MACOSX
#CFLAGS += $(WARN) -force_cpusubtype_ALL -mmacosx-version-min=10.4 -arch x86_64 -arch i386 #-DNDEBUG
##CFLAGS += $(WARN)
## CPPFLAGS are ignored by the rest of the build system but necessary for hardening flags
#CFLAGS += $(CPPFLAGS)
## Filter out -O2 which overwrites the default -O3 because OPT is used before CFLAGS
#CFLAGS := $(filter-out -O2,$(CFLAGS))
#CC = /usr/bin/gcc
# Ubuntu LINUX Dual processor Core2 x86_32, gulon (2010-09-07)
#
#LOCALLIBDIR = /usr/local/lib/
#SYSLIBS = -lpthread -lgsl -lgslcblas -lm -lc
##SYSLIBS = -static -Wl,--whole-archive -lpthread -Wl,--no-whole-archive -lgsl -lgslcblas -lm -lc
## --whole-archive is needed for pthread lib, due to static linking -- screwed but true
## see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44927
#LIBS = -ldistfit -lmsa -ldssplite -ldltmath -lDLTutils -ltheseus
#LIBDIR = -L./lib/ -L/usr/lib/
#INCDIR = -I/usr/local/include/
#INSTALLDIR = /usr/local/bin
OPT = -O3 -ffast-math -fstrict-aliasing -funroll-loops -fomit-frame-pointer
## OPT = -m64 -O3 -march=native -funroll-loops -ffast-math -mfpmath=sse
#OPT = -O0 -ggdb
WARN = -Wall -Werror -pedantic -std=c99 -Wno-unused-result -Wformat-truncation=0
CFLAGS = $(WARN) -pthread
#CC = /usr/local/bin/gcc
# LINUX CentOS 5 after "yum install blas-devel lapack-devel atlas-devel gsl-devel" and dependencies
#
# LOCALLIBDIR = /usr/local/lib
# SYSLIBS = -lm -lc -lgsl -lgslcblas
# LIBS = -ldistfit -lmsa -ldssplite -ldltmath -lDLTutils
# LIBDIR = -L./lib
# BLASLIB = -lblas
# LAPACKLIB = -llapack
# INSTALLDIR = /usr/local/bin
# OPT = -O3 -funroll-loops -ffast-math
# WARN = -Wall -pedantic -std=c99
# CFLAGS = $(WARN) -pthread
# CC = gcc
# BROKEN
# Win32 using mingw -- requires win32 pthread library
# SYSLIBS = -static -lpthreadGC2 -lg2c -lm
# LIBS = -ldistfit -lmsa -ldssplite -ldltmath -lDLTutils
# LIBDIR = -L./lib
# BLASLIB = -lblas
# LAPACKLIB = -llapack
# INSTALLDIR = /usr/local/bin
# OPT = -O3 -ffast-math -fstrict-aliasing -funroll-loops
# WARN = -Wall -pedantic -std=c99
# CFLAGS = $(WARN) -DNDEBUG
# CC = /usr/local/cross-tools/i386-mingw32msvc/bin/cc
|