|
|
1.1 ! root 1: # Makefile 4.17 83/08/19 ! 2: # ! 3: ! 4: DESTDIR= ! 5: AS=/bin/as ! 6: CC=/bin/cc ! 7: LCC=/bin/cc ! 8: LD=/bin/ld ! 9: INCLDIR=${DESTDIR}/usr/include ! 10: LIBDIR=${DESTDIR}/lib ! 11: ULIBDIR=${DESTDIR}/usr/lib ! 12: MAKEPARAM = AS=${AS} CC=${CC} LCC=${LCC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR} ! 13: CFLAGS= -O -I${INCLDIR} ! 14: ! 15: # Programs that live in subdirectories, and have makefiles of their own. ! 16: # ! 17: # SUBDIR= awk csh diff make sed sh tp ! 18: SUBDIR= awk csh diff make sed sh as adb ! 19: ! 20: # Shell scripts that need only be installed and are never removed. ! 21: # ! 22: SCRIPT= false true ! 23: ! 24: # C programs that live in the current directory and do not need ! 25: # explicit make lines. ! 26: # ! 27: STD= ar cat cc chgrp chmod cmp date dd du echo ed expr \ ! 28: grep hostid hostname kill ld ln login ls mail mkdir mt nice \ ! 29: nm od pagesize passwd pr pwd rm rmail rmdir size stty su sync \ ! 30: tar tee test time wall who write ! 31: ! 32: # Programs that must run setuid to root ! 33: # ! 34: SETUID= chgrp df login mail passwd su ! 35: ! 36: # C programs that live in the current directory and need explicit make lines. ! 37: # ! 38: NSTD= ps df ! 39: ! 40: all: ${STD} ${NSTD} cp mv strip ! 41: for i in ${SUBDIR}; do \ ! 42: (cd $$i; /bin/make ${MFLAGS} ${MAKEPARAM} ); done ! 43: ! 44: ${STD} mv cp strip: ! 45: ${CC} ${CFLAGS} -o $@ [email protected] ! 46: ! 47: # take care with cp and mv, install uses them ! 48: install: all ! 49: install -s cp ${DESTDIR}/bin/newcp; \ ! 50: /bin/mv ${DESTDIR}/bin/newcp ${DESTDIR}/bin/cp; ! 51: /bin/rm -f ${DESTDIR}/bin/mv; /bin/cp mv ${DESTDIR}/bin/mv; /bin/rm -f mv; \ ! 52: /bin/strip ${DESTDIR}/bin/mv ! 53: install -c strip ${DESTDIR}/bin; \ ! 54: /bin/strip ${DESTDIR}/bin/strip; \ ! 55: rm strip ! 56: for i in ${SUBDIR}; do \ ! 57: (cd $$i; /bin/make ${MFLAGS} ${MAKEPARAM} install); done ! 58: for i in ${SCRIPT}; do (install -c $$i.sh ${DESTDIR}/bin/$$i); done ! 59: for i in ${STD} ${NSTD}; do (install -s $$i ${DESTDIR}/bin/$$i); done ! 60: for i in ${SETUID}; do (/etc/chown root ${DESTDIR}/bin/$$i; \ ! 61: chmod 4755 ${DESTDIR}/bin/$$i); done ! 62: rm -f ${DESTDIR}/bin/[; ln ${DESTDIR}/bin/test ${DESTDIR}/bin/[ ! 63: rm -f ${DESTDIR}/bin/e; ln ${DESTDIR}/bin/ed ${DESTDIR}/bin/e ! 64: ! 65: clean: ! 66: rm -f a.out core *.s *.o errs ! 67: for i in ${SUBDIR}; do (cd $$i; /bin/make ${MFLAGS} clean); done ! 68: rm -f ${STD} ${NSTD} expr.c ! 69: ! 70: cleansrc: ! 71: rm -f *.c *.y *.sh Makefile ! 72: ! 73: depend: ! 74: cat </dev/null >x.c ! 75: for i in ${STD} ${NSTD}; do \ ! 76: (echo $$i: $$i.c >>makedep; \ ! 77: /bin/grep '^#[ ]*include' x.c $$i.c | sed \ ! 78: -e 's,<\(.*\)>,"$${INCLDIR}/\1",' \ ! 79: -e 's/:[^"]*"\([^"]*\)".*/: \1/' \ ! 80: -e 's/\.c//' >>makedep); done ! 81: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep ! 82: echo '$$r makedep' >>eddep ! 83: echo 'w' >>eddep ! 84: cp Makefile Makefile.bak ! 85: ed - Makefile < eddep ! 86: rm eddep makedep x.c ! 87: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile ! 88: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile ! 89: echo '# see make depend above' >> Makefile ! 90: ! 91: # Files listed in ${NSTD} have explicit make lines given below. ! 92: ! 93: ps: ! 94: ${CC} ${CFLAGS} -o ps ps.c ${ULIBDIR}/libm.a ! 95: ! 96: df: ! 97: ${CC} ${CFLAGS} -o df df.c ! 98: ! 99: # DO NOT DELETE THIS LINE -- make depend uses it ! 100: ! 101: ar: ar.c ! 102: ar: ${INCLDIR}/sys/types.h ! 103: ar: ${INCLDIR}/sys/stat.h ! 104: ar: ${INCLDIR}/sys/time.h ! 105: ar: ${INCLDIR}/stdio.h ! 106: ar: ${INCLDIR}/ar.h ! 107: ar: ${INCLDIR}/signal.h ! 108: cat: cat.c ! 109: cat: ${INCLDIR}/stdio.h ! 110: cat: ${INCLDIR}/sys/types.h ! 111: cat: ${INCLDIR}/sys/stat.h ! 112: cc: cc.c ! 113: cc: ${INCLDIR}/sys/param.h ! 114: cc: ${INCLDIR}/stdio.h ! 115: cc: ${INCLDIR}/ctype.h ! 116: cc: ${INCLDIR}/signal.h ! 117: cc: ${INCLDIR}/sys/dir.h ! 118: chgrp: chgrp.c ! 119: chgrp: ${INCLDIR}/stdio.h ! 120: chgrp: ${INCLDIR}/ctype.h ! 121: chgrp: ${INCLDIR}/sys/types.h ! 122: chgrp: ${INCLDIR}/sys/stat.h ! 123: chgrp: ${INCLDIR}/grp.h ! 124: chgrp: ${INCLDIR}/pwd.h ! 125: chmod: chmod.c ! 126: chmod: ${INCLDIR}/stdio.h ! 127: chmod: ${INCLDIR}/sys/types.h ! 128: chmod: ${INCLDIR}/sys/stat.h ! 129: cmp: cmp.c ! 130: cmp: ${INCLDIR}/stdio.h ! 131: cmp: ${INCLDIR}/ctype.h ! 132: date: date.c ! 133: date: ${INCLDIR}/stdio.h ! 134: date: ${INCLDIR}/sys/time.h ! 135: date: ${INCLDIR}/utmp.h ! 136: dd: dd.c ! 137: dd: ${INCLDIR}/stdio.h ! 138: dd: ${INCLDIR}/signal.h ! 139: du: du.c ! 140: du: ${INCLDIR}/stdio.h ! 141: du: ${INCLDIR}/sys/param.h ! 142: du: ${INCLDIR}/sys/stat.h ! 143: du: ${INCLDIR}/sys/dir.h ! 144: echo: echo.c ! 145: echo: ${INCLDIR}/stdio.h ! 146: ed: ed.c ! 147: ed: ${INCLDIR}/signal.h ! 148: ed: ${INCLDIR}/sgtty.h ! 149: ed: ${INCLDIR}/setjmp.h ! 150: expr: expr.c ! 151: expr: ${INCLDIR}/stdio.h ! 152: grep: grep.c ! 153: grep: ${INCLDIR}/stdio.h ! 154: grep: ${INCLDIR}/ctype.h ! 155: hostid: hostid.c ! 156: hostname: hostname.c ! 157: hostname: ${INCLDIR}/stdio.h ! 158: kill: kill.c ! 159: kill: ${INCLDIR}/signal.h ! 160: kill: ${INCLDIR}/ctype.h ! 161: ld: ld.c ! 162: ld: ${INCLDIR}/sys/types.h ! 163: ld: ${INCLDIR}/signal.h ! 164: ld: ${INCLDIR}/stdio.h ! 165: ld: ${INCLDIR}/ctype.h ! 166: ld: ${INCLDIR}/ar.h ! 167: ld: ${INCLDIR}/a.out.h ! 168: ld: ${INCLDIR}/ranlib.h ! 169: ld: ${INCLDIR}/sys/stat.h ! 170: ln: ln.c ! 171: ln: ${INCLDIR}/stdio.h ! 172: ln: ${INCLDIR}/sys/types.h ! 173: ln: ${INCLDIR}/sys/stat.h ! 174: ln: ${INCLDIR}/errno.h ! 175: login: login.c ! 176: login: ${INCLDIR}/sys/param.h ! 177: login: ${INCLDIR}/sys/quota.h ! 178: login: ${INCLDIR}/sys/stat.h ! 179: login: ${INCLDIR}/sys/time.h ! 180: login: ${INCLDIR}/sys/resource.h ! 181: login: ${INCLDIR}/sgtty.h ! 182: login: ${INCLDIR}/utmp.h ! 183: login: ${INCLDIR}/signal.h ! 184: login: ${INCLDIR}/pwd.h ! 185: login: ${INCLDIR}/stdio.h ! 186: login: ${INCLDIR}/lastlog.h ! 187: login: ${INCLDIR}/errno.h ! 188: ls: ls.c ! 189: ls: ${INCLDIR}/sys/param.h ! 190: ls: ${INCLDIR}/sys/stat.h ! 191: ls: ${INCLDIR}/sys/dir.h ! 192: ls: ${INCLDIR}/stdio.h ! 193: ls: ${INCLDIR}/sgtty.h ! 194: ls: ${INCLDIR}/pwd.h ! 195: ls: ${INCLDIR}/grp.h ! 196: ls: ${INCLDIR}/utmp.h ! 197: mail: mail.c ! 198: mail: ${INCLDIR}/ctype.h ! 199: mail: ${INCLDIR}/stdio.h ! 200: mail: ${INCLDIR}/pwd.h ! 201: mail: ${INCLDIR}/utmp.h ! 202: mail: ${INCLDIR}/signal.h ! 203: mail: ${INCLDIR}/sys/types.h ! 204: mail: ${INCLDIR}/sys/stat.h ! 205: mail: ${INCLDIR}/setjmp.h ! 206: mail: ${INCLDIR}/sysexits.h ! 207: mail: ${INCLDIR}/sys/socket.h ! 208: mail: ${INCLDIR}/netinet/in.h ! 209: mail: ${INCLDIR}/netdb.h ! 210: mkdir: mkdir.c ! 211: mkdir: ${INCLDIR}/stdio.h ! 212: mt: mt.c ! 213: mt: ${INCLDIR}/stdio.h ! 214: mt: ${INCLDIR}/ctype.h ! 215: mt: ${INCLDIR}/sys/types.h ! 216: mt: ${INCLDIR}/sys/mtio.h ! 217: mt: ${INCLDIR}/sys/ioctl.h ! 218: nice: nice.c ! 219: nice: ${INCLDIR}/stdio.h ! 220: nice: ${INCLDIR}/sys/time.h ! 221: nice: ${INCLDIR}/sys/resource.h ! 222: nm: nm.c ! 223: nm: ${INCLDIR}/sys/types.h ! 224: nm: ${INCLDIR}/ar.h ! 225: nm: ${INCLDIR}/stdio.h ! 226: nm: ${INCLDIR}/ctype.h ! 227: nm: ${INCLDIR}/a.out.h ! 228: nm: ${INCLDIR}/stab.h ! 229: nm: ${INCLDIR}/sys/stat.h ! 230: od: od.c ! 231: od: ${INCLDIR}/stdio.h ! 232: od: ${INCLDIR}/sys/types.h ! 233: od: ${INCLDIR}/sys/stat.h ! 234: pagesize: pagesize.c ! 235: passwd: passwd.c ! 236: passwd: ${INCLDIR}/sys/file.h ! 237: passwd: ${INCLDIR}/stdio.h ! 238: passwd: ${INCLDIR}/signal.h ! 239: passwd: ${INCLDIR}/pwd.h ! 240: passwd: ${INCLDIR}/errno.h ! 241: pr: pr.c ! 242: pr: ${INCLDIR}/stdio.h ! 243: pr: ${INCLDIR}/signal.h ! 244: pr: ${INCLDIR}/sys/types.h ! 245: pr: ${INCLDIR}/sys/stat.h ! 246: pwd: pwd.c ! 247: pwd: ${INCLDIR}/stdio.h ! 248: pwd: ${INCLDIR}/sys/param.h ! 249: rm: rm.c ! 250: rm: ${INCLDIR}/stdio.h ! 251: rm: ${INCLDIR}/sys/param.h ! 252: rm: ${INCLDIR}/sys/stat.h ! 253: rm: ${INCLDIR}/sys/dir.h ! 254: rmail: rmail.c ! 255: rmail: ${INCLDIR}/stdio.h ! 256: rmail: ${INCLDIR}/sysexits.h ! 257: rmdir: rmdir.c ! 258: rmdir: ${INCLDIR}/stdio.h ! 259: size: size.c ! 260: size: ${INCLDIR}/stdio.h ! 261: size: ${INCLDIR}/a.out.h ! 262: stty: stty.c ! 263: stty: ${INCLDIR}/stdio.h ! 264: stty: ${INCLDIR}/sgtty.h ! 265: su: su.c ! 266: su: ${INCLDIR}/stdio.h ! 267: su: ${INCLDIR}/pwd.h ! 268: su: ${INCLDIR}/sys/types.h ! 269: su: ${INCLDIR}/sys/time.h ! 270: su: ${INCLDIR}/sys/resource.h ! 271: sync: sync.c ! 272: tar: tar.c ! 273: tar: ${INCLDIR}/stdio.h ! 274: tar: ${INCLDIR}/sys/param.h ! 275: tar: ${INCLDIR}/sys/stat.h ! 276: tar: ${INCLDIR}/sys/dir.h ! 277: tar: ${INCLDIR}/sys/ioctl.h ! 278: tar: ${INCLDIR}/sys/mtio.h ! 279: tar: ${INCLDIR}/sys/time.h ! 280: tar: ${INCLDIR}/signal.h ! 281: tar: ${INCLDIR}/errno.h ! 282: tee: tee.c ! 283: tee: ${INCLDIR}/signal.h ! 284: tee: ${INCLDIR}/sys/types.h ! 285: tee: ${INCLDIR}/sys/stat.h ! 286: tee: ${INCLDIR}/errno.h ! 287: test: test.c ! 288: test: ${INCLDIR}/stdio.h ! 289: test: ${INCLDIR}/sys/types.h ! 290: test: ${INCLDIR}/sys/stat.h ! 291: time: time.c ! 292: time: ${INCLDIR}/stdio.h ! 293: time: ${INCLDIR}/signal.h ! 294: time: ${INCLDIR}/sys/types.h ! 295: time: ${INCLDIR}/sys/time.h ! 296: time: ${INCLDIR}/sys/resource.h ! 297: wall: wall.c ! 298: wall: ${INCLDIR}/stdio.h ! 299: wall: ${INCLDIR}/utmp.h ! 300: wall: ${INCLDIR}/sys/time.h ! 301: wall: ${INCLDIR}/signal.h ! 302: who: who.c ! 303: who: ${INCLDIR}/stdio.h ! 304: who: ${INCLDIR}/utmp.h ! 305: who: ${INCLDIR}/pwd.h ! 306: who: ${INCLDIR}/ctype.h ! 307: write: write.c ! 308: write: ${INCLDIR}/stdio.h ! 309: write: ${INCLDIR}/sys/types.h ! 310: write: ${INCLDIR}/sys/stat.h ! 311: write: ${INCLDIR}/signal.h ! 312: write: ${INCLDIR}/utmp.h ! 313: write: ${INCLDIR}/sys/time.h ! 314: ps: ps.c ! 315: ps: ${INCLDIR}/stdio.h ! 316: ps: ${INCLDIR}/ctype.h ! 317: ps: ${INCLDIR}/nlist.h ! 318: ps: ${INCLDIR}/pwd.h ! 319: ps: ${INCLDIR}/sys/param.h ! 320: ps: ${INCLDIR}/sys/tty.h ! 321: ps: ${INCLDIR}/sys/dir.h ! 322: ps: ${INCLDIR}/sys/user.h ! 323: ps: ${INCLDIR}/sys/proc.h ! 324: ps: ${INCLDIR}/machine/pte.h ! 325: ps: ${INCLDIR}/sys/vm.h ! 326: ps: ${INCLDIR}/sys/text.h ! 327: ps: ${INCLDIR}/sys/stat.h ! 328: ps: ${INCLDIR}/sys/mbuf.h ! 329: ps: ${INCLDIR}/math.h ! 330: df: df.c ! 331: df: ${INCLDIR}/sys/param.h ! 332: df: ${INCLDIR}/sys/fs.h ! 333: df: ${INCLDIR}/sys/stat.h ! 334: df: ${INCLDIR}/stdio.h ! 335: df: ${INCLDIR}/fstab.h ! 336: df: ${INCLDIR}/mtab.h ! 337: # DEPENDENCIES MUST END AT END OF FILE ! 338: # IF YOU PUT STUFF HERE IT WILL GO AWAY ! 339: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.