#http://Evgenii.Rudnyi.Ru/ #This is makefile for Sun - you need to change path to libraries NAME = slicot CC = gcc CCP = g++ FLAGS = #The macros below are to locate Mathlink tools, headers and libraries MLINKDIR = /usr/local/mathematica4/AddOns/MathLink/DevelopersKits SYS = Solaris CADDSDIR = ${MLINKDIR}/${SYS}/CompilerAdditions INCDIR = ${CADDSDIR} LIBDIR = ${CADDSDIR} MPREP = ${CADDSDIR}/mprep SLICOT = -Lpath_to_slicot -lslicot -Lpath_to_lapack_and_atlas -llapack -lcblas -lf77blas -latlas #Sun specific SUNLIB = -lsocket -lnsl $(NAME) : $(NAME)tm.o $(NAME).o ${CCP} -I${INCDIR} $^ $(SLICOT) -L${LIBDIR} -lML -lm -lg2c $(SUNLIB) -o $@ .c.o : ${CC} -c $(FLAGS) -I${INCDIR} $< .cpp.o : ${CC} -c $(FLAGS) -I${INCDIR} $< $(NAME)tm.c : $(NAME).tm ${MPREP} $? -o $@ clean : rm *.o $(NAME)tm.c