1# @(#)Makefile 5.11 (Berkeley) 06/08/90 2 3LIB= I77 4SRCS= backspace.c c_dfe.c c_iio.c c_sfe.c close.c dofio.c dolio.c douio.c \ 5 due.c endfile.c err.c f77_abort.c f_errlist.c fmt.c fmtlib.c \ 6 inquire.c lread.c lwrite.c open.c rdfe.c rdfmt.c rewind.c rfi.c \ 7 rsfe.c rsli.c rsnmle.c sue.c util.c wdfe.c wfi.c wrtfmt.c wsfe.c \ 8 wsli.c wsnmle.c 9 10LDADD= Version.o 11CLEANFILES+= Version.c Version.o libI66.o mkvers 12 13all: Version.o libI66.o 14 15Version.o: Version.c 16 ${CC} -c Version.c 17 18Version.c: mkvers ${SRCS} 19 mkvers libI77.a ${.ALLSRC:M*.c} > ${.TARGET} 20 21mkvers: mkvers.c 22 ${CC} ${CFLAGS} ${.CURDIR}/mkvers.c -o ${.TARGET} 23 24f_errlist.o f_errlist.po: f_errlist.c 25 ${CC} ${CFLAGS} -c ${.CURDIR}/f_errlist.c -o ${.TARGET} 26 27beforeinstall: 28 install -o ${BINOWN} -g ${BINGRP} -m ${LIBMODE} libI66.o \ 29 ${DESTDIR}/usr/lib/libI66.a 30 31.include <bsd.lib.mk> 32 33.c.o: 34 ${CC} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET} 35 @${LD} -x -r ${.TARGET} 36 @mv a.out ${.TARGET} 37 38.c.po: 39 ${CC} -p ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET} 40 @${LD} -x -r ${.TARGET} 41 @mv a.out ${.TARGET} 42