2003-10-21 14:01:19 +04:00
|
|
|
# $NetBSD: Makefile,v 1.5 2003/10/21 10:01:19 lukem Exp $
|
2003-07-25 20:32:23 +04:00
|
|
|
|
|
|
|
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"
|
|
|
|
|
2003-08-04 05:53:51 +04:00
|
|
|
SHLIB_MAJOR= 2
|
2003-07-25 20:32:23 +04:00
|
|
|
SHLIB_MINOR= 0
|
|
|
|
|
|
|
|
DIST= ${NETBSDSRCDIR}/gnu/dist/gcc
|
|
|
|
GNUHOSTDIST= ${DIST}
|
|
|
|
|
|
|
|
SRCS= ${G_OBJS:.lo=.c}
|
|
|
|
|
|
|
|
GCPPFLAGS= ${G_ALL_CFLAGS:O:u}
|
|
|
|
CPPFLAGS+= -I${.CURDIR}/arch/${MACHINE_ARCH} \
|
|
|
|
${GCPPFLAGS:M-D*} ${GCPPFLAGS:M-I*:N-I.*} \
|
|
|
|
-DAllow_TYQUAD
|
|
|
|
|
|
|
|
.for f in etime_.c dtime_.c
|
2003-10-11 03:34:20 +04:00
|
|
|
${f:.c=.d} ${f:.c=.o} ${f:.c=.so} ${f:.c=.po}: ${DIST}/libf2c/libU77/$f
|
2003-07-25 20:32:23 +04:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.for c in F I U
|
|
|
|
CLEANFILES+= Version${c}.c
|
|
|
|
Version${c}.c: ${DIST}/libf2c/lib${c}77/Version.c
|
2003-10-21 14:01:19 +04:00
|
|
|
${_MKTARGET_CREATE}
|
2003-07-25 20:32:23 +04:00
|
|
|
cp $> $@
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.for f in ${G_F2CEXT:N*y2kbug*}
|
|
|
|
OBJS+= L${f}.o
|
|
|
|
|
|
|
|
L${f}.o: f2cext.c
|
2003-10-21 14:01:19 +04:00
|
|
|
${_MKTARGET_COMPILE}
|
2003-07-25 20:32:23 +04:00
|
|
|
${COMPILE.c} -DL${f} -o $@ ${>:M*.c}
|
|
|
|
|
|
|
|
.if ${MKPIC} != "no"
|
|
|
|
L${f}.so: f2cext.c
|
2003-10-21 14:01:19 +04:00
|
|
|
${_MKTARGET_COMPILE}
|
2003-07-25 20:32:23 +04:00
|
|
|
${COMPILE.c} ${CPICFLAGS} -DL${f} -o $@ ${>:M*.c}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MKPROFILE} != "no"
|
|
|
|
L${f}.po: f2cext.c
|
2003-10-21 14:01:19 +04:00
|
|
|
${_MKTARGET_COMPILE}
|
2003-07-25 20:32:23 +04:00
|
|
|
${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
|