#
#  The archiver and the flag(s) to use when building archive (library)
#  If you system has no ranlib, set RANLIB = echo.
#
ARCH     = ar
#ARCH = libtool
#ARCHFLAGS = -o
ARCHFLAGS= -rvs
RANLIB   = ranlib

#MACOSX_DEPLOYMENT_TARGET=10.4
#export MACOSX_DEPLOYMENT_TARGET

# Mac OSX Universal?
LOCALLIBDIR = /usr/local/lib
LIBS = -lgsl -lgslcblas -ldistfit -lmsa -ldssplite -ldltmath -lDLTutils -ltheseus
SYSLIBS = -framework CoreServices #-lmudflap
LIBDIR = -L./lib
#LAPACKLIB = -framework vecLib
INSTALLDIR = /usr/local/bin
#OPT = -O0 -ggdb
OPT = -O3 -ffast-math -fstrict-aliasing -funroll-loops -fomit-frame-pointer 
WARN = -Werror -Wall -pedantic -std=c99 #-Wstrict-aliasing=2
CFLAGS = $(WARN) #-force_cpusubtype_ALL -mmacosx-version-min=10.4 -arch x86_64 -arch i386 #-DNDEBUG
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 = -O0 -ggdb
#WARN = -Wall -pedantic -std=c99 -Wno-unused-result
#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

# IRIX new 32-bit binary -- this probably needs some work to get it to compile
# SYSLIBS = -lm
# LIBS = -ldistfit -lmsa -ldssplite -ldltmath -lDLTutils
# LIBDIR = -L/usr/lib32/ -L./lib
# INSTALLDIR = /home/wuttke/bin/
# OPT = -Ofast -n32 -mips4
# WARN = #-ansi #-fullwarn -woff 1209
# CFLAGS = $(WARN)
# CC = cc

