1# 2# Copyright (c) 1987 Regents of the University of California. 3# All rights reserved. The Berkeley software License Agreement 4# specifies the terms and conditions for redistribution. 5# 6# @(#)Makefile 5.3 (Berkeley) 05/21/88 7# 8CFLAGS= -O 9LIBC= /lib/libc.a 10DEST= ${DESTDIR}/usr/lib 11LIBRARY= libU77.a 12LIBRARY_P= libU77_p.a 13SRCS= access_.c alarm_.c chdir_.c chmod_.c ctime_.c dtime_.c etime_.c \ 14 f77lid_.c fdate_.c fgetc_.c fork_.c fputc_.c fseek_.c fstat_.c \ 15 ftell_.c gerror_.c getarg_.c getc_.c getcwd_.c getenv_.c getgid_.c \ 16 getlog_.c getpid_.c getuid_.c gmtime_.c hostnm_.c iargc_.c idate_.c \ 17 ierrno_.c ioinit.f isatty_.c itime_.c kill_.c link_.c loc_.c \ 18 lstat_.c ltime_.c malloc_.c perror_.c putc_.c qsort_.c rename_.c \ 19 sleep_.c stat_.c symlnk_.c system_.c tapeio.c time_.c ttynam_.c \ 20 unlink_.c wait_.c 21OBJS= access_.o alarm_.o chdir_.o chmod_.o ctime_.o dtime_.o etime_.o \ 22 f77lid_.o fdate_.o fgetc_.o fork_.o fputc_.o fseek_.o fstat_.o \ 23 ftell_.o gerror_.o getarg_.o getc_.o getcwd_.o getenv_.o getgid_.o \ 24 getlog_.o getpid_.o getuid_.o gmtime_.o hostnm_.o iargc_.o idate_.o \ 25 ierrno_.o ioinit.o isatty_.o itime_.o kill_.o link_.o loc_.o \ 26 lstat_.o ltime_.o malloc_.o perror_.o putc_.o qsort_.o rename_.o \ 27 sleep_.o stat_.o symlnk_.o system_.o tapeio.o time_.o ttynam_.o \ 28 unlink_.o wait_.o 29 30.c.o: 31 ${CC} -p ${CFLAGS} -c $*.c 32 -ld -x -r $*.o 33 mv a.out profiled/$*.o 34 ${CC} ${CFLAGS} -c $*.c 35 -ld -x -r $*.o 36 mv a.out $*.o 37 38.f.o: 39 ${FC} -p ${FFLAGS} -c $*.f 40 -ld -x -r $*.o 41 mv a.out profiled/$*.o 42 ${FC} ${FFLAGS} -c $*.f 43 -ld -x -r $*.o 44 mv a.out $*.o 45 46all: ${LIBRARY} ${LIBRARY_P} 47 48${LIBRARY}: ${OBJS} Version 49 @echo "Loading ${LIBRARY} ... " 50 @ar cru ${LIBRARY} ${OBJS} ioinit.f Version 51 @ranlib ${LIBRARY} 52 53${LIBRARY_P}: ${OBJS} Version 54 @echo "Loading ${LIBRARY_P} ... " 55 @cd profiled; ar cru ../${LIBRARY_P} ${OBJS} Version 56 @ranlib ${LIBRARY_P} 57 58Version: ${SRCS} mkvers 59 @rm -f Version.c 60 ./mkvers ${LIBRARY} ${SRCS} > Version.c 61 ${CC} -c Version.c -o Version 62 @rm -f profiled/Version 63 ln Version profiled/Version 64 65mkvers: mkvers.c 66 ${CC} mkvers.c -o $@ 67 68clean: FRC 69 rm -f ${OBJS} mkvers profiled/*.o core ${LIBRARY} ${LIBRARY_P} 70 71depend: FRC 72 mkdep ${CFLAGS} ${SRCS} 73 74install: FRC 75 install -o bin -g bin -m 644 ${LIBRARY} ${DEST}/${LIBRARY} 76 ranlib ${DEST}/${LIBRARY} 77 install -o bin -g bin -m 644 ${LIBRARY_P} ${DEST}/${LIBRARY_P} 78 ranlib ${DEST}/${LIBRARY_P} 79 80lint: FRC 81 lint ${CFLAGS} ${SRCS} 82 83tags: FRC 84 ctags ${SRCS} 85 86extract: FRC 87 @ar xo ${DEST}/${LIBRARY}; rm -f __.SYMDEF 88 @cd profiled; -ar xo ${DEST}/${LIBRARY_P}; rm -f __.SYMDEF 89 90update ${DEST}/${LIBRARY}: FRC 91 @-ar xo ${DEST}/${LIBRARY} 92 @cd profiled; -ar xo ${DEST}/${LIBRARY_P} 93 @make DEST=${DEST} all install clean 94 95FRC: 96 97# DO NOT DELETE THIS LINE -- mkdep uses it. 98# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 99 100access_.o: access_.c ../libI77/f_errno.h /usr/include/errno.h 101access_.o: /usr/include/sys/param.h /usr/include/sys/types.h 102access_.o: /usr/include/signal.h /usr/include/machine/machparam.h 103alarm_.o: alarm_.c /usr/include/signal.h 104chdir_.o: chdir_.c ../libI77/f_errno.h /usr/include/errno.h 105chdir_.o: /usr/include/sys/param.h /usr/include/sys/types.h 106chdir_.o: /usr/include/signal.h /usr/include/machine/machparam.h 107chmod_.o: chmod_.c ../libI77/f_errno.h /usr/include/errno.h 108chmod_.o: /usr/include/sys/param.h /usr/include/sys/types.h 109chmod_.o: /usr/include/signal.h /usr/include/machine/machparam.h 110ctime_.o: ctime_.c 111dtime_.o: dtime_.c /usr/include/sys/types.h /usr/include/sys/times.h 112etime_.o: etime_.c /usr/include/sys/types.h /usr/include/sys/times.h 113f77lid_.o: f77lid_.c 114fdate_.o: fdate_.c 115fgetc_.o: fgetc_.c ../libI77/fiodefs.h /usr/include/stdio.h ../libI77/f_errno.h 116fgetc_.o: /usr/include/errno.h ../libI77/f_errno.h /usr/include/errno.h 117fork_.o: fork_.c ../libI77/fiodefs.h /usr/include/stdio.h ../libI77/f_errno.h 118fork_.o: /usr/include/errno.h 119fputc_.o: fputc_.c ../libI77/fiodefs.h /usr/include/stdio.h ../libI77/f_errno.h 120fputc_.o: /usr/include/errno.h ../libI77/f_errno.h /usr/include/errno.h 121fseek_.o: fseek_.c /usr/include/stdio.h ../libI77/f_errno.h 122fseek_.o: /usr/include/errno.h ../libI77/fiodefs.h /usr/include/stdio.h 123fseek_.o: ../libI77/f_errno.h /usr/include/errno.h 124fstat_.o: fstat_.c /usr/include/sys/types.h /usr/include/sys/stat.h 125fstat_.o: ../libI77/f_errno.h /usr/include/errno.h ../libI77/fiodefs.h 126fstat_.o: /usr/include/stdio.h ../libI77/f_errno.h /usr/include/errno.h 127ftell_.o: ftell_.c ../libI77/fiodefs.h /usr/include/stdio.h ../libI77/f_errno.h 128ftell_.o: /usr/include/errno.h ../libI77/f_errno.h /usr/include/errno.h 129gerror_.o: gerror_.c /usr/include/stdio.h ../libI77/f_errno.h 130gerror_.o: /usr/include/errno.h 131getarg_.o: getarg_.c 132getc_.o: getc_.c ../libI77/f_errno.h /usr/include/errno.h ../libI77/fiodefs.h 133getc_.o: /usr/include/stdio.h ../libI77/f_errno.h /usr/include/errno.h 134getcwd_.o: getcwd_.c /usr/include/sys/param.h /usr/include/sys/types.h 135getcwd_.o: /usr/include/signal.h /usr/include/machine/machparam.h 136getenv_.o: getenv_.c 137getgid_.o: getgid_.c 138getlog_.o: getlog_.c 139getpid_.o: getpid_.c 140getuid_.o: getuid_.c 141gmtime_.o: gmtime_.c 142hostnm_.o: hostnm_.c 143iargc_.o: iargc_.c 144idate_.o: idate_.c /usr/include/sys/types.h /usr/include/sys/time.h 145idate_.o: /usr/include/time.h 146ierrno_.o: ierrno_.c 147ioinit.o: ioinit.f 148isatty_.o: isatty_.c ../libI77/fiodefs.h /usr/include/stdio.h 149isatty_.o: ../libI77/f_errno.h /usr/include/errno.h 150itime_.o: itime_.c /usr/include/sys/types.h /usr/include/sys/time.h 151itime_.o: /usr/include/time.h 152kill_.o: kill_.c ../libI77/f_errno.h /usr/include/errno.h 153link_.o: link_.c ../libI77/f_errno.h /usr/include/errno.h 154link_.o: /usr/include/sys/param.h /usr/include/sys/types.h 155link_.o: /usr/include/signal.h /usr/include/machine/machparam.h 156loc_.o: loc_.c 157lstat_.o: lstat_.c /usr/include/sys/param.h /usr/include/sys/types.h 158lstat_.o: /usr/include/signal.h /usr/include/machine/machparam.h 159lstat_.o: /usr/include/sys/stat.h ../libI77/f_errno.h /usr/include/errno.h 160ltime_.o: ltime_.c 161malloc_.o: malloc_.c 162perror_.o: perror_.c /usr/include/stdio.h ../libI77/fiodefs.h 163perror_.o: /usr/include/stdio.h ../libI77/f_errno.h /usr/include/errno.h 164perror_.o: ../libI77/f_errno.h /usr/include/errno.h 165putc_.o: putc_.c ../libI77/f_errno.h /usr/include/errno.h ../libI77/fiodefs.h 166putc_.o: /usr/include/stdio.h ../libI77/f_errno.h /usr/include/errno.h 167qsort_.o: qsort_.c 168rename_.o: rename_.c ../libI77/f_errno.h /usr/include/errno.h 169rename_.o: /usr/include/sys/param.h /usr/include/sys/types.h 170rename_.o: /usr/include/signal.h /usr/include/machine/machparam.h 171sleep_.o: sleep_.c 172stat_.o: stat_.c /usr/include/sys/param.h /usr/include/sys/types.h 173stat_.o: /usr/include/signal.h /usr/include/machine/machparam.h 174stat_.o: /usr/include/sys/stat.h ../libI77/f_errno.h /usr/include/errno.h 175symlnk_.o: symlnk_.c /usr/include/sys/param.h /usr/include/sys/types.h 176symlnk_.o: /usr/include/signal.h /usr/include/machine/machparam.h 177symlnk_.o: ../libI77/f_errno.h /usr/include/errno.h 178system_.o: system_.c ../libI77/fiodefs.h /usr/include/stdio.h 179system_.o: ../libI77/f_errno.h /usr/include/errno.h ../libI77/f_errno.h 180system_.o: /usr/include/errno.h /usr/include/sys/param.h 181system_.o: /usr/include/sys/types.h /usr/include/signal.h 182system_.o: /usr/include/machine/machparam.h /usr/include/signal.h 183tapeio.o: tapeio.c /usr/include/ctype.h /usr/include/sys/ioctl.h 184tapeio.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h 185tapeio.o: /usr/include/sys/types.h /usr/include/sys/mtio.h ../libI77/f_errno.h 186tapeio.o: /usr/include/errno.h 187time_.o: time_.c 188ttynam_.o: ttynam_.c ../libI77/fiodefs.h /usr/include/stdio.h 189ttynam_.o: ../libI77/f_errno.h /usr/include/errno.h 190unlink_.o: unlink_.c ../libI77/f_errno.h /usr/include/errno.h 191unlink_.o: /usr/include/sys/param.h /usr/include/sys/types.h 192unlink_.o: /usr/include/signal.h /usr/include/machine/machparam.h 193wait_.o: wait_.c 194 195# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 196