[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / hgm / gsl-t-1 / src

File: [local] / OpenXM / src / hgm / gsl-t-1 / src / Makefile (download)

Revision 1.4, Tue Mar 24 04:59:24 2015 UTC (9 years, 6 months ago) by takayama
Branch: MAIN
Changes since 1.3: +7 -2 lines

Changes to follow the cran policy.
oxprintf -->Rprintf (in R ) | printf (standalone)
oxprintfe --> REprintf (in R) | fprintf(stderr,...)
...

#CC=gcc
AR=ar
RANLIB=ranlib
OBJS=t-control.o t-cstd.o t-evolve.o t-rkf45.o t-step.o t-coerce.o t-error.o 
.c.o: 
	${CC} -c -O2 $<
gsl-t-1.a: make-link-p ${OBJS}
	if [ ${AR} = ar ]; then \
	ar ru gsl-t-1.a *.o ; \
	else \
	libtool -static -o gsl-t-1.a *.o ; \
	fi
	${RANLIB} gsl-t-1.a

make-link-p:
	-if [ ! -f .link_done_p ] ; then \
	ln -s ../../oxprint/oxprint.h . ; \
	touch .link_done_p ; \
	fi
clean:
	rm -f *.o *~ gsl-t-1.a oxprint.h .link_done_p

# Only the MacOS X accepts the above libtool options.
## test implementation including the minimum codes from the gsl 4.47
## @s/2012/12/23-gsl* (gsl 4.47 code).  See ode-initval, err, sys
## h-mle/SO/Prog/hgm

#gsl_errno.h, gsl_math.h, gsl_matrix.h, gsl_odeiv.h, gsl_sys.h