|
|
1.1 ! root 1: # ! 2: # Copyright (c) 1980 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.7 (Berkeley) 3/26/86 ! 7: # ! 8: # Several routines have been rewritten in assembly language for the VAX. ! 9: # If you are not running on a VAX, you should use the original C sources ! 10: # which are included in this directory. Regretably we do not have a C ! 11: # version of the bstring(3) routines. ! 12: # ! 13: #ifndef vax ! 14: #SRCS= ${STDSRC} ${VAXSRC} ! 15: #OBJS= ${STDOBJ} ${VAXOBJ} ! 16: #else ! 17: SRCS= ${STDSRC} ! 18: OBJS= ${STDOBJ} ! 19: #endif not vax ! 20: ! 21: CFLAGS= -O ${DEFS} ! 22: STDSRC= abort.c alarm.c atoi.c atol.c calloc.c closedir.c crypt.c \ ! 23: ctime.c ctype_.c errlst.c execvp.c fakcu.c fstab.c gcvt.c getenv.c \ ! 24: getgrent.c getgrgid.c getgrnam.c getlogin.c getpass.c getpwent.c \ ! 25: getpwnamuid.c getttyent.c getttynam.c getusershell.c getwd.c \ ! 26: initgroups.c isatty.c malloc.c mkstemp.c mktemp.c ndbm.c nlist.c \ ! 27: opendir.c perror.c popen.c psignal.c qsort.c random.c readdir.c \ ! 28: regex.c scandir.c seekdir.c setgid.c setegid.c setrgid.c setuid.c \ ! 29: seteuid.c setruid.c siglist.c signal.c siginterrupt.c sleep.c \ ! 30: swab.c syslog.c system.c telldir.c time.c timezone.c ttyname.c \ ! 31: ttyslot.c ualarm.c usleep.c valloc.c ! 32: VAXSRC= index.c rindex.c strcat.c strcmp.c strcpy.c strlen.c \ ! 33: strncat.c strncmp.c strncpy.c ! 34: STDOBJ= abort.o alarm.o atoi.o atol.o calloc.o closedir.o crypt.o \ ! 35: ctime.o ctype_.o errlst.o execvp.o fakcu.o fstab.o gcvt.o getenv.o \ ! 36: getgrent.o getgrgid.o getgrnam.o getlogin.o getpass.o getpwent.o \ ! 37: getpwnamuid.o getttyent.o getttynam.o getusershell.o getwd.o \ ! 38: initgroups.o isatty.o malloc.o mkstemp.o mktemp.o ndbm.o nlist.o \ ! 39: opendir.o perror.o popen.o psignal.o qsort.o random.o readdir.o \ ! 40: regex.o scandir.o seekdir.o setgid.o setegid.o setrgid.o setuid.o \ ! 41: seteuid.o setruid.o siglist.o signal.o siginterrupt.o sleep.o \ ! 42: swab.o syslog.o system.o telldir.o time.o timezone.o ttyname.o \ ! 43: ttyslot.o ualarm.o usleep.o valloc.o ! 44: VAXOBJ= index.o rindex.o strcat.o strcmp.o strcpy.o strlen.o \ ! 45: strncat.o strncmp.o strncpy.o ! 46: TAGSFILE=tags ! 47: ! 48: .c.o: ! 49: ${CC} -p ${CFLAGS} -c $*.c ! 50: -ld -X -r $*.o ! 51: mv a.out profiled/$*.o ! 52: ${CC} ${CFLAGS} -c $*.c ! 53: -ld -x -r $*.o ! 54: mv a.out $*.o ! 55: ! 56: genlib genlib_p: ${OBJS} ! 57: @echo "building profiled genlib" ! 58: @cd profiled; ar cru ../genlib_p ${OBJS} ! 59: @echo "buiding normal genlib" ! 60: @ar cru genlib ${OBJS} ! 61: ! 62: errlst.o: errlst.c ! 63: cc -S ${DEFS} errlst.c ! 64: ed - <:errfix errlst.s ! 65: as -o errlst.o errlst.s ! 66: cp errlst.o profiled/errlst.o ! 67: rm errlst.s ! 68: ! 69: tags: ! 70: cwd=`pwd`; \ ! 71: for i in ${SRCS}; do \ ! 72: ctags -a -f ${TAGSFILE} $$cwd/$$i; \ ! 73: done ! 74: ! 75: clean: ! 76: rm -f genlib genlib_p *.o profiled/*.o tags Makefile.bak ! 77: ! 78: depend: ! 79: for i in ${SRCS}; do \ ! 80: cc -M ${CFLAGS} $$i | awk ' { if ($$1 != prev) \ ! 81: { if (rec != "") print rec; rec = $$0; prev = $$1; } \ ! 82: else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ ! 83: else rec = rec " " $$2 } } \ ! 84: END { print rec } ' >> makedep; done ! 85: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep ! 86: echo '$$r makedep' >>eddep ! 87: echo 'w' >>eddep ! 88: cp Makefile Makefile.bak ! 89: ed - Makefile < eddep ! 90: rm eddep makedep ! 91: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile ! 92: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile ! 93: echo '# see make depend above' >> Makefile ! 94: ! 95: # DO NOT DELETE THIS LINE -- make depend uses it ! 96: ! 97: abort.o: abort.c /usr/include/signal.h ! 98: alarm.o: alarm.c /usr/include/sys/time.h /usr/include/time.h ! 99: atoi.o: atoi.c ! 100: atol.o: atol.c ! 101: calloc.o: calloc.c ! 102: closedir.o: closedir.c /usr/include/sys/param.h ! 103: closedir.o: /usr/include/machine/machparam.h /usr/include/signal.h ! 104: closedir.o: /usr/include/sys/types.h /usr/include/sys/dir.h ! 105: crypt.o: crypt.c ! 106: ctime.o: ctime.c /usr/include/sys/time.h /usr/include/time.h ! 107: ctime.o: /usr/include/sys/types.h /usr/include/sys/timeb.h ! 108: ctype_.o: ctype_.c /usr/include/ctype.h ! 109: errlst.o: errlst.c ! 110: execvp.o: execvp.c /usr/include/errno.h ! 111: fakcu.o: fakcu.c ! 112: fstab.o: fstab.c /usr/include/fstab.h /usr/include/stdio.h /usr/include/ctype.h ! 113: gcvt.o: gcvt.c ! 114: getenv.o: getenv.c ! 115: getgrent.o: getgrent.c /usr/include/stdio.h /usr/include/grp.h ! 116: getgrgid.o: getgrgid.c /usr/include/grp.h ! 117: getgrnam.o: getgrnam.c /usr/include/grp.h ! 118: getlogin.o: getlogin.c /usr/include/utmp.h ! 119: getpass.o: getpass.c /usr/include/stdio.h /usr/include/signal.h ! 120: getpass.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h ! 121: getpass.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h ! 122: getpwent.o: getpwent.c /usr/include/stdio.h /usr/include/pwd.h ! 123: getpwent.o: /usr/include/ndbm.h ! 124: getpwnamuid.o: getpwnamuid.c /usr/include/stdio.h /usr/include/pwd.h ! 125: getpwnamuid.o: /usr/include/ndbm.h /usr/include/sys/file.h ! 126: getttyent.o: getttyent.c /usr/include/stdio.h /usr/include/strings.h ! 127: getttyent.o: /usr/include/ttyent.h ! 128: getttynam.o: getttynam.c /usr/include/ttyent.h ! 129: getusershell.o: getusershell.c /usr/include/sys/param.h ! 130: getusershell.o: /usr/include/machine/machparam.h /usr/include/signal.h ! 131: getusershell.o: /usr/include/sys/types.h /usr/include/sys/file.h ! 132: getusershell.o: /usr/include/sys/stat.h /usr/include/ctype.h ! 133: getusershell.o: /usr/include/stdio.h ! 134: getwd.o: getwd.c /usr/include/sys/param.h /usr/include/machine/machparam.h ! 135: getwd.o: /usr/include/signal.h /usr/include/sys/types.h /usr/include/sys/stat.h ! 136: getwd.o: /usr/include/sys/dir.h ! 137: initgroups.o: initgroups.c /usr/include/stdio.h /usr/include/sys/param.h ! 138: initgroups.o: /usr/include/machine/machparam.h /usr/include/signal.h ! 139: initgroups.o: /usr/include/sys/types.h /usr/include/grp.h ! 140: isatty.o: isatty.c /usr/include/sgtty.h /usr/include/sys/ioctl.h ! 141: isatty.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h ! 142: malloc.o: malloc.c /usr/include/sys/types.h ! 143: mkstemp.o: mkstemp.c /usr/include/sys/file.h ! 144: mktemp.o: mktemp.c ! 145: ndbm.o: ndbm.c /usr/include/sys/types.h /usr/include/sys/stat.h ! 146: ndbm.o: /usr/include/sys/file.h /usr/include/stdio.h /usr/include/errno.h ! 147: ndbm.o: /usr/include/ndbm.h ! 148: nlist.o: nlist.c /usr/include/sys/types.h /usr/include/a.out.h ! 149: nlist.o: /usr/include/sys/exec.h /usr/include/stdio.h ! 150: opendir.o: opendir.c /usr/include/sys/param.h /usr/include/machine/machparam.h ! 151: opendir.o: /usr/include/signal.h /usr/include/sys/types.h ! 152: opendir.o: /usr/include/sys/dir.h ! 153: perror.o: perror.c /usr/include/sys/types.h /usr/include/sys/uio.h ! 154: popen.o: popen.c /usr/include/stdio.h /usr/include/signal.h ! 155: psignal.o: psignal.c /usr/include/signal.h ! 156: qsort.o: qsort.c ! 157: random.o: random.c /usr/include/stdio.h ! 158: readdir.o: readdir.c /usr/include/sys/param.h /usr/include/machine/machparam.h ! 159: readdir.o: /usr/include/signal.h /usr/include/sys/types.h ! 160: readdir.o: /usr/include/sys/dir.h ! 161: regex.o: regex.c ! 162: scandir.o: scandir.c /usr/include/sys/types.h /usr/include/sys/stat.h ! 163: scandir.o: /usr/include/sys/dir.h ! 164: seekdir.o: seekdir.c /usr/include/sys/param.h /usr/include/machine/machparam.h ! 165: seekdir.o: /usr/include/signal.h /usr/include/sys/types.h ! 166: seekdir.o: /usr/include/sys/dir.h ! 167: setgid.o: setgid.c ! 168: setegid.o: setegid.c ! 169: setrgid.o: setrgid.c ! 170: setuid.o: setuid.c ! 171: seteuid.o: seteuid.c ! 172: setruid.o: setruid.c ! 173: siglist.o: siglist.c /usr/include/signal.h ! 174: signal.o: signal.c /usr/include/signal.h ! 175: siginterrupt.o: siginterrupt.c /usr/include/signal.h ! 176: sleep.o: sleep.c /usr/include/sys/time.h /usr/include/time.h ! 177: sleep.o: /usr/include/signal.h ! 178: swab.o: swab.c ! 179: syslog.o: syslog.c /usr/include/sys/types.h /usr/include/sys/socket.h ! 180: syslog.o: /usr/include/sys/file.h /usr/include/sys/signal.h ! 181: syslog.o: /usr/include/sys/syslog.h /usr/include/netdb.h /usr/include/strings.h ! 182: system.o: system.c /usr/include/signal.h ! 183: telldir.o: telldir.c /usr/include/sys/param.h /usr/include/machine/machparam.h ! 184: telldir.o: /usr/include/signal.h /usr/include/sys/types.h ! 185: telldir.o: /usr/include/sys/dir.h ! 186: time.o: time.c /usr/include/sys/types.h /usr/include/sys/time.h ! 187: time.o: /usr/include/time.h ! 188: timezone.o: timezone.c ! 189: ttyname.o: ttyname.c /usr/include/sys/param.h /usr/include/machine/machparam.h ! 190: ttyname.o: /usr/include/signal.h /usr/include/sys/types.h ! 191: ttyname.o: /usr/include/sys/dir.h /usr/include/sys/stat.h ! 192: ttyslot.o: ttyslot.c /usr/include/ttyent.h ! 193: ualarm.o: ualarm.c /usr/include/sys/time.h /usr/include/time.h ! 194: usleep.o: usleep.c /usr/include/sys/time.h /usr/include/time.h ! 195: usleep.o: /usr/include/signal.h ! 196: valloc.o: valloc.c ! 197: # DEPENDENCIES MUST END AT END OF FILE ! 198: # IF YOU PUT STUFF HERE IT WILL GO AWAY ! 199: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.