NetBSD/gnu/lib/libg2c/Makefile
2003-06-01 02:08:07 +00:00

57 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.20 2003/06/01 02:08:07 thorpej Exp $
REQUIRETOOLS= yes
NOLINT= # defined
.include <bsd.own.mk>
LIB= g2c
.if exists(${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk) && ${MKGCC} != "no"
.include "${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk"
SHLIB_MAJOR= 1
SHLIB_MINOR= 0
DIST= ${NETBSDSRCDIR}/gnu/dist/toolchain
GNUHOSTDIST= ${DIST}
SRCS= ${G_OBJS:.o=.c} ${G_OBJ:.o=.c}
GCPPFLAGS= ${G_ALL_CFLAGS:O:u}
CPPFLAGS+= -I${.CURDIR}/arch/${MACHINE_ARCH} \
${GCPPFLAGS:M-D*} ${GCPPFLAGS:M-I*:N-I.*} \
-DAllow_TYQUAD
.for c in F I U
CLEANFILES+= Version${c}.c
Version${c}.c: ${DIST}/libf2c/lib${c}77/Version.c
cp $> $@
.endfor
.for f in ${G_F2CEXT:N*y2kbug*}
OBJS+= L${f}.o
L${f}.o: f2cext.c
${COMPILE.c} -DL${f} -o $@ ${>:M*.c}
.if ${MKPIC} != "no"
L${f}.so: f2cext.c
${COMPILE.c} ${CPICFLAGS} -DL${f} -o $@ ${>:M*.c}
.endif
.if ${MKPROFILE} != "no"
L${f}.po: f2cext.c
${COMPILE.c} -pg -DL${f} -o $@ ${>:M*.c}
.endif
.endfor
.PATH: ${DIST}/libf2c ${DIST}/libf2c/libF77 ${DIST}/libf2c/libI77 ${DIST}/libf2c/libU77
.include <bsd.lib.mk>
${OBJS}: ${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk
.else
.include <bsd.prog.mk> # do nothing
.endif