summaryrefslogtreecommitdiff
path: root/share/mk/bsd.lib.mk
diff options
context:
space:
mode:
authorSteven Mestdagh <steven@cvs.openbsd.org>2005-11-30 13:04:56 +0000
committerSteven Mestdagh <steven@cvs.openbsd.org>2005-11-30 13:04:56 +0000
commit77fefe2c30937a0551eafa623a05ea6dce0943ed (patch)
tree67a13f71890f99155a010d7a2b4ad7a52887ad53 /share/mk/bsd.lib.mk
parent9a093e2daa2f65560a8d842c66e35d2bd15909a9 (diff)
support for Fortran 77 libraries
"go ahead" espie@, "looks reasonable" kettenis@
Diffstat (limited to 'share/mk/bsd.lib.mk')
-rw-r--r--share/mk/bsd.lib.mk27
1 files changed, 26 insertions, 1 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk
index a7893114d76..5dccb09d981 100644
--- a/share/mk/bsd.lib.mk
+++ b/share/mk/bsd.lib.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.lib.mk,v 1.45 2005/11/23 18:34:33 deraadt Exp $
+# $OpenBSD: bsd.lib.mk,v 1.46 2005/11/30 13:04:55 steven Exp $
# $NetBSD: bsd.lib.mk,v 1.67 1996/01/17 20:39:26 mycroft Exp $
# @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91
@@ -73,6 +73,31 @@ SHLIB_MINOR=${minor}
@${LD} -x -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
+# Fortran 77
+.f.o:
+ @echo "${COMPILE.f} ${.IMPSRC} -o ${.TARGET}"
+ @${COMPILE.f} ${.IMPSRC} -o ${.TARGET}.o
+ @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
+ @rm -f ${.TARGET}.o
+
+.f.go:
+ @echo "${COMPILE.f} -g ${.IMPSRC} -o ${.TARGET}"
+ @${COMPILE.f} -g ${.IMPSRC} -o ${.TARGET}.o
+ @${LD} -X -r ${.TARGET}.o -o ${.TARGET}
+ @rm -f ${.TARGET}.o
+
+.f.po:
+ @echo "${COMPILE.f} -p ${.IMPSRC} -o ${.TARGET}"
+ @${COMPILE.f} -p ${.IMPSRC} -o ${.TARGET}.o
+ @${LD} -X -r ${.TARGET}.o -o ${.TARGET}
+ @rm -f ${.TARGET}.o
+
+.f.so:
+ @echo "${COMPILE.f} ${PICFLAG} -DPIC ${.IMPSRC} -o ${.TARGET}"
+ @${COMPILE.f} ${PICFLAG} -DPIC ${.IMPSRC} -o ${.TARGET}.o
+ @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
+ @rm -f ${.TARGET}.o
+
.S.o .s.o:
.if (${MACHINE_ARCH} == "arm")
@echo ${COMPILE.S:Q} ${CPPFLAGS} ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC}