|
|
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 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 ed ! 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: ed: ! 100: ${CC} ${CFLAGS} -DCRYPT -o ed ed.c ! 101: ! 102: # DO NOT DELETE THIS LINE -- make depend uses it ! 103: ! 104: ar: ar.c ! 105: ar: ${INCLDIR}/sys/types.h ! 106: ar: ${INCLDIR}/sys/stat.h ! 107: ar: ${INCLDIR}/sys/time.h ! 108: ar: ${INCLDIR}/stdio.h ! 109: ar: ${INCLDIR}/ar.h ! 110: ar: ${INCLDIR}/signal.h ! 111: cat: cat.c ! 112: cat: ${INCLDIR}/stdio.h ! 113: cat: ${INCLDIR}/sys/types.h ! 114: cat: ${INCLDIR}/sys/stat.h ! 115: cc: cc.c ! 116: cc: ${INCLDIR}/sys/param.h ! 117: cc: ${INCLDIR}/stdio.h ! 118: cc: ${INCLDIR}/ctype.h ! 119: cc: ${INCLDIR}/signal.h ! 120: cc: ${INCLDIR}/sys/dir.h ! 121: chgrp: chgrp.c ! 122: chgrp: ${INCLDIR}/stdio.h ! 123: chgrp: ${INCLDIR}/ctype.h ! 124: chgrp: ${INCLDIR}/sys/types.h ! 125: chgrp: ${INCLDIR}/sys/stat.h ! 126: chgrp: ${INCLDIR}/grp.h ! 127: chgrp: ${INCLDIR}/pwd.h ! 128: chmod: chmod.c ! 129: chmod: ${INCLDIR}/stdio.h ! 130: chmod: ${INCLDIR}/sys/types.h ! 131: chmod: ${INCLDIR}/sys/stat.h ! 132: cmp: cmp.c ! 133: cmp: ${INCLDIR}/stdio.h ! 134: cmp: ${INCLDIR}/ctype.h ! 135: date: date.c ! 136: date: ${INCLDIR}/stdio.h ! 137: date: ${INCLDIR}/sys/time.h ! 138: date: ${INCLDIR}/utmp.h ! 139: dd: dd.c ! 140: dd: ${INCLDIR}/stdio.h ! 141: dd: ${INCLDIR}/signal.h ! 142: du: du.c ! 143: du: ${INCLDIR}/stdio.h ! 144: du: ${INCLDIR}/sys/param.h ! 145: du: ${INCLDIR}/sys/stat.h ! 146: du: ${INCLDIR}/sys/dir.h ! 147: echo: echo.c ! 148: echo: ${INCLDIR}/stdio.h ! 149: ed: ed.c ! 150: ed: ${INCLDIR}/signal.h ! 151: ed: ${INCLDIR}/sgtty.h ! 152: ed: ${INCLDIR}/setjmp.h ! 153: expr: expr.c ! 154: expr: ${INCLDIR}/stdio.h ! 155: grep: grep.c ! 156: grep: ${INCLDIR}/stdio.h ! 157: grep: ${INCLDIR}/ctype.h ! 158: hostid: hostid.c ! 159: hostname: hostname.c ! 160: hostname: ${INCLDIR}/stdio.h ! 161: kill: kill.c ! 162: kill: ${INCLDIR}/signal.h ! 163: kill: ${INCLDIR}/ctype.h ! 164: ld: ld.c ! 165: ld: ${INCLDIR}/sys/types.h ! 166: ld: ${INCLDIR}/signal.h ! 167: ld: ${INCLDIR}/stdio.h ! 168: ld: ${INCLDIR}/ctype.h ! 169: ld: ${INCLDIR}/ar.h ! 170: ld: ${INCLDIR}/a.out.h ! 171: ld: ${INCLDIR}/ranlib.h ! 172: ld: ${INCLDIR}/sys/stat.h ! 173: ln: ln.c ! 174: ln: ${INCLDIR}/stdio.h ! 175: ln: ${INCLDIR}/sys/types.h ! 176: ln: ${INCLDIR}/sys/stat.h ! 177: ln: ${INCLDIR}/errno.h ! 178: login: login.c ! 179: login: ${INCLDIR}/sys/param.h ! 180: login: ${INCLDIR}/sys/quota.h ! 181: login: ${INCLDIR}/sys/stat.h ! 182: login: ${INCLDIR}/sys/time.h ! 183: login: ${INCLDIR}/sys/resource.h ! 184: login: ${INCLDIR}/sgtty.h ! 185: login: ${INCLDIR}/utmp.h ! 186: login: ${INCLDIR}/signal.h ! 187: login: ${INCLDIR}/pwd.h ! 188: login: ${INCLDIR}/stdio.h ! 189: login: ${INCLDIR}/lastlog.h ! 190: login: ${INCLDIR}/errno.h ! 191: ls: ls.c ! 192: ls: ${INCLDIR}/sys/param.h ! 193: ls: ${INCLDIR}/sys/stat.h ! 194: ls: ${INCLDIR}/sys/dir.h ! 195: ls: ${INCLDIR}/stdio.h ! 196: ls: ${INCLDIR}/sgtty.h ! 197: ls: ${INCLDIR}/pwd.h ! 198: ls: ${INCLDIR}/grp.h ! 199: ls: ${INCLDIR}/utmp.h ! 200: mail: mail.c ! 201: mail: ${INCLDIR}/ctype.h ! 202: mail: ${INCLDIR}/stdio.h ! 203: mail: ${INCLDIR}/pwd.h ! 204: mail: ${INCLDIR}/utmp.h ! 205: mail: ${INCLDIR}/signal.h ! 206: mail: ${INCLDIR}/sys/types.h ! 207: mail: ${INCLDIR}/sys/stat.h ! 208: mail: ${INCLDIR}/setjmp.h ! 209: mail: ${INCLDIR}/sysexits.h ! 210: mail: ${INCLDIR}/sys/socket.h ! 211: mail: ${INCLDIR}/netinet/in.h ! 212: mail: ${INCLDIR}/netdb.h ! 213: mkdir: mkdir.c ! 214: mkdir: ${INCLDIR}/stdio.h ! 215: mt: mt.c ! 216: mt: ${INCLDIR}/stdio.h ! 217: mt: ${INCLDIR}/ctype.h ! 218: mt: ${INCLDIR}/sys/types.h ! 219: mt: ${INCLDIR}/sys/mtio.h ! 220: mt: ${INCLDIR}/sys/ioctl.h ! 221: nice: nice.c ! 222: nice: ${INCLDIR}/stdio.h ! 223: nice: ${INCLDIR}/sys/time.h ! 224: nice: ${INCLDIR}/sys/resource.h ! 225: nm: nm.c ! 226: nm: ${INCLDIR}/sys/types.h ! 227: nm: ${INCLDIR}/ar.h ! 228: nm: ${INCLDIR}/stdio.h ! 229: nm: ${INCLDIR}/ctype.h ! 230: nm: ${INCLDIR}/a.out.h ! 231: nm: ${INCLDIR}/stab.h ! 232: nm: ${INCLDIR}/sys/stat.h ! 233: od: od.c ! 234: od: ${INCLDIR}/stdio.h ! 235: od: ${INCLDIR}/sys/types.h ! 236: od: ${INCLDIR}/sys/stat.h ! 237: pagesize: pagesize.c ! 238: passwd: passwd.c ! 239: passwd: ${INCLDIR}/sys/file.h ! 240: passwd: ${INCLDIR}/stdio.h ! 241: passwd: ${INCLDIR}/signal.h ! 242: passwd: ${INCLDIR}/pwd.h ! 243: passwd: ${INCLDIR}/errno.h ! 244: pr: pr.c ! 245: pr: ${INCLDIR}/stdio.h ! 246: pr: ${INCLDIR}/signal.h ! 247: pr: ${INCLDIR}/sys/types.h ! 248: pr: ${INCLDIR}/sys/stat.h ! 249: pwd: pwd.c ! 250: pwd: ${INCLDIR}/stdio.h ! 251: pwd: ${INCLDIR}/sys/param.h ! 252: rm: rm.c ! 253: rm: ${INCLDIR}/stdio.h ! 254: rm: ${INCLDIR}/sys/param.h ! 255: rm: ${INCLDIR}/sys/stat.h ! 256: rm: ${INCLDIR}/sys/dir.h ! 257: rmail: rmail.c ! 258: rmail: ${INCLDIR}/stdio.h ! 259: rmail: ${INCLDIR}/sysexits.h ! 260: rmdir: rmdir.c ! 261: rmdir: ${INCLDIR}/stdio.h ! 262: size: size.c ! 263: size: ${INCLDIR}/stdio.h ! 264: size: ${INCLDIR}/a.out.h ! 265: stty: stty.c ! 266: stty: ${INCLDIR}/stdio.h ! 267: stty: ${INCLDIR}/sgtty.h ! 268: su: su.c ! 269: su: ${INCLDIR}/stdio.h ! 270: su: ${INCLDIR}/pwd.h ! 271: su: ${INCLDIR}/sys/types.h ! 272: su: ${INCLDIR}/sys/time.h ! 273: su: ${INCLDIR}/sys/resource.h ! 274: sync: sync.c ! 275: tar: tar.c ! 276: tar: ${INCLDIR}/stdio.h ! 277: tar: ${INCLDIR}/sys/param.h ! 278: tar: ${INCLDIR}/sys/stat.h ! 279: tar: ${INCLDIR}/sys/dir.h ! 280: tar: ${INCLDIR}/sys/ioctl.h ! 281: tar: ${INCLDIR}/sys/mtio.h ! 282: tar: ${INCLDIR}/sys/time.h ! 283: tar: ${INCLDIR}/signal.h ! 284: tar: ${INCLDIR}/errno.h ! 285: tee: tee.c ! 286: tee: ${INCLDIR}/signal.h ! 287: tee: ${INCLDIR}/sys/types.h ! 288: tee: ${INCLDIR}/sys/stat.h ! 289: tee: ${INCLDIR}/errno.h ! 290: test: test.c ! 291: test: ${INCLDIR}/stdio.h ! 292: test: ${INCLDIR}/sys/types.h ! 293: test: ${INCLDIR}/sys/stat.h ! 294: time: time.c ! 295: time: ${INCLDIR}/stdio.h ! 296: time: ${INCLDIR}/signal.h ! 297: time: ${INCLDIR}/sys/types.h ! 298: time: ${INCLDIR}/sys/time.h ! 299: time: ${INCLDIR}/sys/resource.h ! 300: wall: wall.c ! 301: wall: ${INCLDIR}/stdio.h ! 302: wall: ${INCLDIR}/utmp.h ! 303: wall: ${INCLDIR}/sys/time.h ! 304: wall: ${INCLDIR}/signal.h ! 305: who: who.c ! 306: who: ${INCLDIR}/stdio.h ! 307: who: ${INCLDIR}/utmp.h ! 308: who: ${INCLDIR}/pwd.h ! 309: who: ${INCLDIR}/ctype.h ! 310: write: write.c ! 311: write: ${INCLDIR}/stdio.h ! 312: write: ${INCLDIR}/sys/types.h ! 313: write: ${INCLDIR}/sys/stat.h ! 314: write: ${INCLDIR}/signal.h ! 315: write: ${INCLDIR}/utmp.h ! 316: write: ${INCLDIR}/sys/time.h ! 317: ps: ps.c ! 318: ps: ${INCLDIR}/stdio.h ! 319: ps: ${INCLDIR}/ctype.h ! 320: ps: ${INCLDIR}/nlist.h ! 321: ps: ${INCLDIR}/pwd.h ! 322: ps: ${INCLDIR}/sys/param.h ! 323: ps: ${INCLDIR}/sys/tty.h ! 324: ps: ${INCLDIR}/sys/dir.h ! 325: ps: ${INCLDIR}/sys/user.h ! 326: ps: ${INCLDIR}/sys/proc.h ! 327: ps: ${INCLDIR}/machine/pte.h ! 328: ps: ${INCLDIR}/sys/vm.h ! 329: ps: ${INCLDIR}/sys/text.h ! 330: ps: ${INCLDIR}/sys/stat.h ! 331: ps: ${INCLDIR}/sys/mbuf.h ! 332: ps: ${INCLDIR}/math.h ! 333: df: df.c ! 334: df: ${INCLDIR}/sys/param.h ! 335: df: ${INCLDIR}/sys/fs.h ! 336: df: ${INCLDIR}/sys/stat.h ! 337: df: ${INCLDIR}/stdio.h ! 338: df: ${INCLDIR}/fstab.h ! 339: df: ${INCLDIR}/mtab.h ! 340: # DEPENDENCIES MUST END AT END OF FILE ! 341: # IF YOU PUT STUFF HERE IT WILL GO AWAY ! 342: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.