Skip to content
Snippets Groups Projects
Makefile 667 B
Newer Older
Mark Woolrich's avatar
Mark Woolrich committed
# A Makefile for the miscmaths class

David Flitney's avatar
David Flitney committed
include ${FSLCONFDIR}/default.mk
Mark Woolrich's avatar
Mark Woolrich committed

PROJNAME = miscmaths

USRINCFLAGS = -I${INC_NEWMAT} -I${INC_BOOST} -I${INC_PROB}
USRLDFLAGS = -L${LIB_NEWMAT} -L${LIB_PROB}
OBJS = miscmaths.o optimise.o miscprob.o kernel.o histogram.o base2z.o t2z.o f2z.o minimize.o cspline.o sparse_matrix.o sparsefn.o rungekutta.o nonlin.o bfmatrix.o Simplex.o
Mark Woolrich's avatar
Mark Woolrich committed

LIBS = -lutils -lnewmat -lprob -lm
Mark Woolrich's avatar
Mark Woolrich committed

# The target "all" should ALWAYS be provided
#   typically it will just be another target name

all: libmiscmaths.a

quick:${OBJS} quick.o
	${CXX}  ${CXXFLAGS} ${LDFLAGS} -o $@ ${OBJS} quick.o ${LIBS}
Mark Woolrich's avatar
Mark Woolrich committed
libmiscmaths.a: ${OBJS}
	${AR} -r libmiscmaths.a ${OBJS}