summaryrefslogtreecommitdiff
path: root/math/lapack/Makefile
blob: f4d7295e73905f40a7044e6df33d4823bbec01fd (plain)
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
# $NetBSD: Makefile,v 1.36 2014/02/28 09:39:56 adam Exp $

.include "Makefile.common"

COMMENT=	Linear Algebra PACKage

BUILD_TARGET=	lapacklib

#FFLAGS+=		-ffloat-store

# With f2c-20090411nb4, libf2c-20090201nb3, we need EXT_ETIME but gcc44-4.4.1nb3
# needs INT_ETIME.  Rather than trying to enumerate all possible fortran compilers,
# just do a test for it.
do-configure:
	@${ECHO_N} "Checking if fortran compiler has etime() as an intrinsic: "
	@cd ${WRKDIR} && ${FC} -o etime_test ${FILESDIR}/etime_test.f >${WRKDIR}/etime_test.log 2>&1; \
	if test $$? -eq 0 ; then \
	${ECHO} "TIMER=INT_ETIME" >> ${WRKSRC}/make.inc ; ${ECHO} "YES" ; else \
	${ECHO} "TIMER=EXT_ETIME" >> ${WRKSRC}/make.inc ; ${ECHO} "NO" ; fi
	@${ECHO} "See ${WRKDIR}/etime_test.log for details on the test"

do-install:
	${LIBTOOL} --mode=install ${INSTALL_DATA} ${WRKSRC}/liblapack.la \
		${DESTDIR}${PREFIX}/lib

.include "../../math/blas/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"