# Copyright (c) 1987 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
# @(#)Makefile 5.4 (Berkeley) %G%
SRCS
= access_.c alarm_.c chdir_.c chmod_.c ctime_.c dtime_.c etime_.c \
f77lid_.c fdate_.c fgetc_.c fork_.c fputc_.c fseek_.c fstat_.c \
ftell_.c gerror_.c getarg_.c getc_.c getcwd_.c getenv_.c getgid_.c \
getlog_.c getpid_.c getuid_.c gmtime_.c hostnm_.c iargc_.c idate_.c \
ierrno_.c ioinit.f isatty_.c itime_.c kill_.c link_.c loc_.c \
lstat_.c ltime_.c malloc_.c perror_.c putc_.c qsort_.c rename_.c \
sleep_.c stat_.c symlnk_.c system_.c tapeio.c time_.c ttynam_.c \
OBJS
= access_.o alarm_.o chdir_.o chmod_.o ctime_.o dtime_.o etime_.o \
f77lid_.o fdate_.o fgetc_.o fork_.o fputc_.o fseek_.o fstat_.o \
ftell_.o gerror_.o getarg_.o getc_.o getcwd_.o getenv_.o getgid_.o \
getlog_.o getpid_.o getuid_.o gmtime_.o hostnm_.o iargc_.o idate_.o \
ierrno_.o ioinit.o isatty_.o itime_.o kill_.o link_.o loc_.o \
lstat_.o ltime_.o malloc_.o perror_.o putc_.o qsort_.o rename_.o \
sleep_.o stat_.o symlnk_.o system_.o tapeio.o time_.o ttynam_.o \
@
${CC} -p
${CFLAGS} -c
$*.c
@
${FC} -p
${FFLAGS} -c
$*.f
all: ${LIBRARY} ${LIBRARY_P}
${LIBRARY}: ${OBJS} Version
@echo
"Loading normal ${LIBRARY} ... "
@
ar cru
${LIBRARY} ${OBJS} ioinit.f Version
${LIBRARY_P}: ${OBJS} Version
@echo
"Loading profiled ${LIBRARY_P} ... "
@cd profiled
; ar cru ..
/${LIBRARY_P} ${OBJS} Version
.
/mkvers
${LIBRARY} ${SRCS} > Version.c
${CC} -c Version.c
-o Version
ln Version profiled
/Version
rm -f
${OBJS} mkvers profiled
/*.o core
${LIBRARY} ${LIBRARY_P}
rm -f
${MAN} tags .depend
install -o bin
-g bin
-m
644 ${LIBRARY} ${DEST}/${LIBRARY}
ranlib
-t
${DEST}/${LIBRARY}
install -o bin
-g bin
-m
644 ${LIBRARY_P} ${DEST}/${LIBRARY_P}
ranlib
-t
${DEST}/${LIBRARY_P}
@
ar xo
${DEST}/${LIBRARY}; rm -f __.SYMDEF
@cd profiled
; -ar xo
${DEST}/${LIBRARY_P}; rm -f __.SYMDEF
update
${DEST}/${LIBRARY}: FRC
@
-ar xo
${DEST}/${LIBRARY}
@cd profiled
; -ar xo
${DEST}/${LIBRARY_P}
@make DEST
=${DEST} all install clean