|
|
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: # @(#)pcmakefile 5.3 (Berkeley) 10/26/87 ! 7: # ! 8: SCCSID = "@(#)pcmakefile 5.3 10/26/87" ! 9: ! 10: INSTALLDIR = $(DESTDIR)/usr/lib ! 11: INSTALLNAME = ${INSTALLDIR}/pc0 ! 12: BINDIR = ../pc0 ! 13: SRCDIR = ../src ! 14: VPATH= ../src ! 15: WHOAMI = pc ! 16: VERSION = 3.1 ! 17: DATE = 10/26/87 ! 18: ! 19: MKSTR = /usr/ucb/mkstr ! 20: EYACC = ../eyacc/eyacc ! 21: RM = -rm -f ! 22: TOUCH = touch -f ! 23: ! 24: CFLAGS = -O ! 25: LDFLAGS = -z ! 26: ! 27: LIBDIR = ${DESTDIR}/usr/lib ! 28: TMPDIR = tmp ! 29: ! 30: ERRORSTRINGS = ${WHOAMI}${VERSION}strings ! 31: OLDSTRINGS = ${WHOAMI}[0-9]*.[0-9]*strings ! 32: HOWFILE = how_${WHOAMI} ! 33: ! 34: SRCS = ato.c \ ! 35: call.c case.c clas.c const.c conv.c cset.c \ ! 36: error.c fdec.c fend.c fhdr.c flvalue.c forop.c func.c gen.c hash.c \ ! 37: lab.c lookup.c lval.c stklval.c \ ! 38: main.c nl.c proc.c put.c \ ! 39: rec.c rval.c stkrval.c\ ! 40: savenl.c \ ! 41: stat.c string.c subr.c \ ! 42: tmps.c tree.c type.c var.c \ ! 43: TRdata.c \ ! 44: treen.c yycopy.c \ ! 45: yycosts.c yyerror.c yyget.c yyid.c yylex.c yymain.c yyoptions.c \ ! 46: yypanic.c yyparse.c yyprint.c yyput.c yyrecover.c yyseman.c yytree.c \ ! 47: p2put.c stab.c pcproc.c pcfunc.c pccaseop.c pclval.c sconv.c ! 48: ! 49: HDRS = 0.h OPnames.h align.h iorec.h objfmt.h pstab.h pc.h \ ! 50: send.h tree.h whoami.h yy.h config.h ! 51: ! 52: OTHERS = pas.y opc.c CONFIG.c gram pic.c ! 53: ! 54: OBJS = ato.o \ ! 55: call.o case.o clas.o const.o conv.o cset.o \ ! 56: error.o fdec.o fend.o fhdr.o flvalue.o forop.o func.o gen.o hash.o \ ! 57: lab.o lookup.o lval.o stklval.o \ ! 58: main.o nl.o proc.o put.o \ ! 59: rec.o rval.o stkrval.o\ ! 60: savenl.o \ ! 61: stat.o string.o subr.o \ ! 62: tmps.o tree.o type.o var.o \ ! 63: TRdata.o \ ! 64: treen.o yycopy.o \ ! 65: yycosts.o yyerror.o yyget.o yyid.o yylex.o yymain.o yyoptions.o \ ! 66: yypanic.o yyparse.o yyprint.o yyput.o yyrecover.o yyseman.o yytree.o \ ! 67: p2put.o stab.o pcproc.o pcfunc.o pccaseop.o pclval.o sconv.o ! 68: ! 69: a.out: ${OBJS} y.tab.o config.c ! 70: ${CC} ${CFLAGS} ${LDFLAGS} ${OBJS} y.tab.o config.c ! 71: ! 72: ${OBJS}: ! 73: ${RM} `basename $@ .o`.c ! 74: cd ${SRCDIR}; \ ! 75: ${MKSTR} - ${BINDIR}/${ERRORSTRINGS} ${BINDIR}/ `basename $@ .o`.c ! 76: ${CC} ${CFLAGS} -I. -I${SRCDIR} -c `basename $@ .o`.c ! 77: ${RM} `basename $@ .o`.c ! 78: ! 79: lint: ! 80: cd ${SRCDIR}; lint -I. -I${BINDIR} ${SRCS} ${BINDIR}/*.c ! 81: ! 82: y.tab.h: ${SRCDIR}/pas.y ${SRCDIR}/gram ! 83: ${RM} y.tab.h y.tab.c ! 84: ${EYACC} ${SRCDIR}/pas.y > /dev/null ! 85: ex - y.tab.c <${SRCDIR}/gram ! 86: @echo that makes y.tab.h and y.tab.c ! 87: y.tab.o: y.tab.c y.tab.h ! 88: ${RM} x.y.tab.c ! 89: ${MKSTR} - ${ERRORSTRINGS} x. y.tab.c ! 90: ${CC} ${CFLAGS} -I${SRCDIR} -I. -c x.y.tab.c ! 91: mv x.y.tab.o y.tab.o ! 92: ${RM} x.y.tab.c ! 93: ! 94: picture: ${SRCDIR}/OPnames.h ${SRCDIR}/pic.c ! 95: ${RM} picture ! 96: cc ${SRCDIR}/pic.c -o pic ! 97: pic >picture ! 98: ${RM} pic ! 99: ! 100: opcode.h: ${SRCDIR}/OPnames.h ${SRCDIR}/opc.c ! 101: ${RM} opcode.h ! 102: cc ${SRCDIR}/opc.c -o opc ! 103: opc >opcode.h ! 104: ${RM} opc ! 105: ! 106: ${SRCDIR}/0.h: ! 107: ${TOUCH} ${SRCDIR}/0.h ! 108: ! 109: config.c: ${SRCDIR}/CONFIG.c ! 110: sed -e "s?VERSION?${VERSION}?g" \ ! 111: -e "s?DATE?${DATE}?g" \ ! 112: -e "s?INSTALLDIR?${INSTALLDIR}?g" \ ! 113: -e "s?LIBDIR?${LIBDIR}?g" \ ! 114: -e "s?ERRORSTRINGS?${ERRORSTRINGS}?g" \ ! 115: -e "s?HOWFILE?${HOWFILE}?g" \ ! 116: < ${SRCDIR}/CONFIG.c >config.c ! 117: ! 118: clean: ! 119: ${RM} *.o *.c ! 120: ${RM} y.tab.h y.tab.c y.tab.out ! 121: ${RM} ${WHOAMI}*strings ! 122: ${RM} config.c opcode.h picture ! 123: ${RM} a.out core *.list *.bak errs ! 124: ${RM} opc pic tags ! 125: ! 126: install: a.out ! 127: ${RM} ${LIBDIR}/${OLDSTRINGS} ! 128: install -c -m 664 ${ERRORSTRINGS} ${LIBDIR}/${ERRORSTRINGS} ! 129: install -s -m 775 a.out ${INSTALLNAME} ! 130: ! 131: depend: ${SRCS} opcode.h y.tab.h ! 132: mkdep ${CFLAGS} -I. ${SRCS} ! 133: ! 134: # DO NOT DELETE THIS LINE -- mkdep uses it. ! 135: # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. ! 136: ! 137: ato.o: ../src/ato.c whoami.h ../src/0.h /usr/include/stdio.h ! 138: ato.o: /usr/include/sys/types.h ! 139: call.o: ../src/call.c whoami.h ../src/0.h /usr/include/stdio.h ! 140: call.o: /usr/include/sys/types.h ../src/tree.h opcode.h ../src/objfmt.h ! 141: call.o: ../src/align.h ../src/pc.h /usr/include/setjmp.h /usr/include/pcc.h ! 142: call.o: ../src/tmps.h ../src/tree_ty.h ! 143: case.o: ../src/case.c whoami.h ../src/0.h /usr/include/stdio.h ! 144: case.o: /usr/include/sys/types.h ../src/tree.h opcode.h ../src/tree_ty.h ! 145: clas.o: ../src/clas.c whoami.h ../src/0.h /usr/include/stdio.h ! 146: clas.o: /usr/include/sys/types.h ../src/tree.h ../src/tree_ty.h ! 147: const.o: ../src/const.c whoami.h ../src/0.h /usr/include/stdio.h ! 148: const.o: /usr/include/sys/types.h ../src/tree.h ../src/tree_ty.h ! 149: conv.o: ../src/conv.c whoami.h ../src/0.h /usr/include/stdio.h ! 150: conv.o: /usr/include/sys/types.h opcode.h /usr/include/pcc.h ../src/tree_ty.h ! 151: cset.o: ../src/cset.c whoami.h ../src/0.h /usr/include/stdio.h ! 152: cset.o: /usr/include/sys/types.h ../src/tree.h opcode.h ../src/objfmt.h ! 153: cset.o: ../src/tree_ty.h ../src/pc.h /usr/include/setjmp.h /usr/include/pcc.h ! 154: cset.o: ../src/align.h ! 155: error.o: ../src/error.c whoami.h ../src/0.h /usr/include/stdio.h ! 156: error.o: /usr/include/sys/types.h ../src/tree_ty.h ../src/yy.h y.tab.h ! 157: fdec.o: ../src/fdec.c whoami.h ../src/0.h /usr/include/stdio.h ! 158: fdec.o: /usr/include/sys/types.h ../src/tree.h opcode.h ../src/objfmt.h ! 159: fdec.o: ../src/align.h ../src/tmps.h ../src/pc.h /usr/include/setjmp.h ! 160: fdec.o: /usr/include/pcc.h ! 161: fend.o: ../src/fend.c whoami.h ../src/0.h /usr/include/stdio.h ! 162: fend.o: /usr/include/sys/types.h ../src/tree.h opcode.h ../src/objfmt.h ! 163: fend.o: ../src/align.h ../src/tmps.h ../src/pc.h /usr/include/setjmp.h ! 164: fend.o: /usr/include/pcc.h ../src/tree_ty.h ! 165: fhdr.o: ../src/fhdr.c whoami.h ../src/0.h /usr/include/stdio.h ! 166: fhdr.o: /usr/include/sys/types.h ../src/tree.h opcode.h ../src/objfmt.h ! 167: fhdr.o: ../src/align.h ../src/tree_ty.h ../src/pc.h /usr/include/setjmp.h ! 168: flvalue.o: ../src/flvalue.c whoami.h ../src/0.h /usr/include/stdio.h ! 169: flvalue.o: /usr/include/sys/types.h ../src/tree.h opcode.h ../src/objfmt.h ! 170: flvalue.o: ../src/tree_ty.h ../src/pc.h /usr/include/setjmp.h ! 171: flvalue.o: /usr/include/pcc.h ../src/tmps.h ! 172: forop.o: ../src/forop.c whoami.h ../src/0.h /usr/include/stdio.h ! 173: forop.o: /usr/include/sys/types.h opcode.h ../src/tree.h ../src/objfmt.h ! 174: forop.o: ../src/pc.h /usr/include/setjmp.h /usr/include/pcc.h ../src/tmps.h ! 175: forop.o: ../src/tree_ty.h ! 176: func.o: ../src/func.c whoami.h ! 177: gen.o: ../src/gen.c whoami.h ! 178: hash.o: ../src/hash.c whoami.h ../src/0.h /usr/include/stdio.h ! 179: hash.o: /usr/include/sys/types.h ../src/tree_ty.h ../src/yy.h y.tab.h ! 180: lab.o: ../src/lab.c whoami.h ../src/0.h /usr/include/stdio.h ! 181: lab.o: /usr/include/sys/types.h ../src/tree.h opcode.h ../src/objfmt.h ! 182: lab.o: ../src/pc.h /usr/include/setjmp.h /usr/include/pcc.h ../src/tree_ty.h ! 183: lookup.o: ../src/lookup.c whoami.h ../src/0.h /usr/include/stdio.h ! 184: lookup.o: /usr/include/sys/types.h ! 185: lval.o: ../src/lval.c whoami.h ../src/0.h /usr/include/stdio.h ! 186: lval.o: /usr/include/sys/types.h ../src/tree.h opcode.h ../src/objfmt.h ! 187: lval.o: ../src/tree_ty.h ../src/pc.h /usr/include/setjmp.h /usr/include/pcc.h ! 188: stklval.o: ../src/stklval.c whoami.h ../src/0.h /usr/include/stdio.h ! 189: stklval.o: /usr/include/sys/types.h ../src/tree.h opcode.h ../src/objfmt.h ! 190: stklval.o: ../src/tree_ty.h ! 191: main.o: ../src/main.c whoami.h ../src/0.h /usr/include/stdio.h ! 192: main.o: /usr/include/sys/types.h ../src/tree_ty.h ../src/yy.h y.tab.h ! 193: main.o: /usr/include/signal.h /usr/include/machine/trap.h ../src/objfmt.h ! 194: main.o: ../src/config.h ! 195: nl.o: ../src/nl.c whoami.h ../src/0.h /usr/include/stdio.h ! 196: nl.o: /usr/include/sys/types.h opcode.h ../src/objfmt.h ! 197: proc.o: ../src/proc.c whoami.h ! 198: put.o: ../src/put.c whoami.h opcode.h ../src/0.h /usr/include/stdio.h ! 199: put.o: /usr/include/sys/types.h ../src/objfmt.h ../src/pc.h ! 200: put.o: /usr/include/setjmp.h ../src/align.h ../src/OPnames.h ! 201: rec.o: ../src/rec.c whoami.h ../src/0.h /usr/include/stdio.h ! 202: rec.o: /usr/include/sys/types.h ../src/tree.h opcode.h ../src/align.h ! 203: rec.o: ../src/tree_ty.h ! 204: rval.o: ../src/rval.c whoami.h ../src/0.h /usr/include/stdio.h ! 205: rval.o: /usr/include/sys/types.h ../src/tree.h opcode.h ../src/objfmt.h ! 206: rval.o: ../src/pc.h /usr/include/setjmp.h /usr/include/pcc.h ../src/tmps.h ! 207: rval.o: ../src/tree_ty.h ! 208: stkrval.o: ../src/stkrval.c whoami.h ../src/0.h /usr/include/stdio.h ! 209: stkrval.o: /usr/include/sys/types.h ../src/tree.h opcode.h ../src/objfmt.h ! 210: stkrval.o: ../src/align.h /usr/include/pcc.h ../src/tree_ty.h ! 211: savenl.o: ../src/savenl.c whoami.h ! 212: stat.o: ../src/stat.c whoami.h ../src/0.h /usr/include/stdio.h ! 213: stat.o: /usr/include/sys/types.h ../src/tree.h ../src/objfmt.h ! 214: stat.o: /usr/include/pcc.h ../src/pc.h /usr/include/setjmp.h ../src/tmps.h ! 215: stat.o: opcode.h ../src/tree_ty.h ! 216: string.o: ../src/string.c whoami.h ../src/align.h ../src/0.h ! 217: string.o: /usr/include/stdio.h /usr/include/sys/types.h ! 218: subr.o: ../src/subr.c whoami.h ../src/0.h /usr/include/stdio.h ! 219: subr.o: /usr/include/sys/types.h /usr/include/sys/stat.h ! 220: tmps.o: ../src/tmps.c whoami.h ../src/0.h /usr/include/stdio.h ! 221: tmps.o: /usr/include/sys/types.h ../src/objfmt.h ../src/pc.h ! 222: tmps.o: /usr/include/setjmp.h ../src/align.h ../src/tmps.h ! 223: tree.o: ../src/tree.c whoami.h ../src/0.h /usr/include/stdio.h ! 224: tree.o: /usr/include/sys/types.h ! 225: type.o: ../src/type.c whoami.h ../src/0.h /usr/include/stdio.h ! 226: type.o: /usr/include/sys/types.h ../src/tree.h ../src/objfmt.h ../src/tree_ty.h ! 227: var.o: ../src/var.c whoami.h ../src/0.h /usr/include/stdio.h ! 228: var.o: /usr/include/sys/types.h ../src/objfmt.h ../src/align.h ../src/iorec.h ! 229: var.o: /usr/include/stdio.h ../src/pc.h /usr/include/setjmp.h ../src/tmps.h ! 230: var.o: ../src/tree_ty.h ! 231: TRdata.o: ../src/TRdata.c whoami.h ../src/0.h /usr/include/stdio.h ! 232: TRdata.o: /usr/include/sys/types.h ! 233: treen.o: ../src/treen.c ../src/0.h /usr/include/stdio.h ! 234: treen.o: /usr/include/sys/types.h ../src/tree_ty.h ! 235: yycopy.o: ../src/yycopy.c whoami.h ../src/0.h /usr/include/stdio.h ! 236: yycopy.o: /usr/include/sys/types.h ../src/tree_ty.h ../src/yy.h y.tab.h ! 237: yycosts.o: ../src/yycosts.c whoami.h ../src/0.h /usr/include/stdio.h ! 238: yycosts.o: /usr/include/sys/types.h ../src/tree_ty.h ../src/yy.h y.tab.h ! 239: yyerror.o: ../src/yyerror.c whoami.h ../src/0.h /usr/include/stdio.h ! 240: yyerror.o: /usr/include/sys/types.h ../src/tree_ty.h ../src/yy.h y.tab.h ! 241: yyget.o: ../src/yyget.c whoami.h ../src/0.h /usr/include/stdio.h ! 242: yyget.o: /usr/include/sys/types.h ../src/tree_ty.h ../src/yy.h y.tab.h ! 243: yyid.o: ../src/yyid.c whoami.h ../src/0.h /usr/include/stdio.h ! 244: yyid.o: /usr/include/sys/types.h ../src/tree_ty.h ../src/yy.h y.tab.h ! 245: yylex.o: ../src/yylex.c whoami.h ../src/0.h /usr/include/stdio.h ! 246: yylex.o: /usr/include/sys/types.h ../src/tree_ty.h ../src/yy.h y.tab.h ! 247: yymain.o: ../src/yymain.c whoami.h ../src/0.h /usr/include/stdio.h ! 248: yymain.o: /usr/include/sys/types.h ../src/tree_ty.h ../src/yy.h y.tab.h ! 249: yymain.o: /usr/include/a.out.h /usr/include/sys/exec.h ../src/objfmt.h ! 250: yymain.o: /usr/include/signal.h /usr/include/machine/trap.h ../src/config.h ! 251: yyoptions.o: ../src/yyoptions.c whoami.h ../src/0.h /usr/include/stdio.h ! 252: yyoptions.o: /usr/include/sys/types.h ../src/tree_ty.h ../src/yy.h y.tab.h ! 253: yypanic.o: ../src/yypanic.c whoami.h ../src/0.h /usr/include/stdio.h ! 254: yypanic.o: /usr/include/sys/types.h ../src/tree_ty.h ../src/yy.h y.tab.h ! 255: yyparse.o: ../src/yyparse.c whoami.h ../src/0.h /usr/include/stdio.h ! 256: yyparse.o: /usr/include/sys/types.h ../src/tree_ty.h ../src/yy.h y.tab.h ! 257: yyprint.o: ../src/yyprint.c whoami.h ../src/0.h /usr/include/stdio.h ! 258: yyprint.o: /usr/include/sys/types.h ../src/tree_ty.h ../src/yy.h y.tab.h ! 259: yyput.o: ../src/yyput.c whoami.h ../src/0.h /usr/include/stdio.h ! 260: yyput.o: /usr/include/sys/types.h ../src/tree.h ../src/tree_ty.h ../src/yy.h ! 261: yyput.o: y.tab.h ! 262: yyrecover.o: ../src/yyrecover.c whoami.h ../src/0.h /usr/include/stdio.h ! 263: yyrecover.o: /usr/include/sys/types.h ../src/tree_ty.h ../src/yy.h y.tab.h ! 264: yyseman.o: ../src/yyseman.c whoami.h ../src/0.h /usr/include/stdio.h ! 265: yyseman.o: /usr/include/sys/types.h ../src/tree_ty.h ../src/yy.h y.tab.h ! 266: yytree.o: ../src/yytree.c whoami.h ../src/0.h /usr/include/stdio.h ! 267: yytree.o: /usr/include/sys/types.h ../src/tree.h ../src/tree_ty.h ! 268: p2put.o: ../src/p2put.c whoami.h ../src/0.h /usr/include/stdio.h ! 269: p2put.o: /usr/include/sys/types.h ../src/objfmt.h /usr/include/pcc.h ! 270: p2put.o: ../src/pc.h /usr/include/setjmp.h ../src/align.h ../src/tmps.h ! 271: stab.o: ../src/stab.c whoami.h ../src/0.h /usr/include/stdio.h ! 272: stab.o: /usr/include/sys/types.h ../src/objfmt.h ../src/yy.h y.tab.h ! 273: stab.o: /usr/include/stab.h ../src/pstab.h ../src/pc.h /usr/include/setjmp.h ! 274: pcproc.o: ../src/pcproc.c whoami.h ../src/0.h /usr/include/stdio.h ! 275: pcproc.o: /usr/include/sys/types.h ../src/tree.h ../src/objfmt.h opcode.h ! 276: pcproc.o: ../src/pc.h /usr/include/setjmp.h /usr/include/pcc.h ../src/tmps.h ! 277: pcproc.o: ../src/tree_ty.h ! 278: pcfunc.o: ../src/pcfunc.c whoami.h ../src/0.h /usr/include/stdio.h ! 279: pcfunc.o: /usr/include/sys/types.h ../src/tree.h ../src/objfmt.h opcode.h ! 280: pcfunc.o: ../src/pc.h /usr/include/setjmp.h /usr/include/pcc.h ../src/tmps.h ! 281: pcfunc.o: ../src/tree_ty.h ! 282: pccaseop.o: ../src/pccaseop.c whoami.h ../src/0.h /usr/include/stdio.h ! 283: pccaseop.o: /usr/include/sys/types.h ../src/tree.h ../src/objfmt.h ! 284: pccaseop.o: /usr/include/pcc.h ../src/pc.h /usr/include/setjmp.h ../src/tmps.h ! 285: pccaseop.o: ../src/tree_ty.h ! 286: pclval.o: ../src/pclval.c whoami.h ../src/0.h /usr/include/stdio.h ! 287: pclval.o: /usr/include/sys/types.h ../src/tree.h opcode.h ../src/objfmt.h ! 288: pclval.o: ../src/tree_ty.h ../src/pc.h /usr/include/setjmp.h /usr/include/pcc.h ! 289: sconv.o: ../src/sconv.c whoami.h ../src/0.h /usr/include/stdio.h ! 290: sconv.o: /usr/include/sys/types.h /usr/include/pcc.h ! 291: ! 292: # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.