|
|
1.1 ! root 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 1.2 (Berkeley) 6/6/87 ! 7: # ! 8: # as.h Definitions for data structures ! 9: # asnumber.h Definitions for all numbers: byte .. G format float ! 10: # asscan.h Definitions for the character scanner ! 11: # asscanl.h Definitions for the character scanner; ! 12: # local to asscan?.c ! 13: # astokfix.awk ! 14: # astoks.H The defines for tokens that yacc produced ! 15: # This is processed by astokfix.awk to yield: ! 16: # astoks.h Included implicitly in as.h ! 17: # asexpr.h The macros for parsing and expressions ! 18: # assyms.h Macros for dealing with the symbol table ! 19: # instrs.h Definitions to make instrs more readable ! 20: # ! 21: # asscan1.c buffer management, yylex, and buffer drainer ! 22: # asscan2.c character scanner, and buffer filler ! 23: # asscan3.c character sets definitions (initialized data) ! 24: # asscan4.c constructs normal integers; interfaces with bignum.c ! 25: # ! 26: # bignum.c constructs large integers; utility routines ! 27: # ! 28: # asparse.c parser ! 29: # asexpr.c parses expressions, constructs and evaluates ! 30: # expression trees ! 31: # ! 32: # asmain.c main body ! 33: # assyms.c symbol table processing routines ! 34: # asjxxx.c Fixes jxxx instructions ! 35: # ascode.c Emits code ! 36: # assizetab.c Converts internal ordinal #'s into sizes, strings, etc ! 37: # asio.c Does block I/O and faster versions of fwrite ! 38: # ! 39: # aspseudo.c Symbol table definitions for reserved words ! 40: # instrs included in pseudo.c; instructions and semantic info ! 41: # for each instructions ! 42: # ! 43: HDRS= astoks.H astokfix.awk as.h asscan.h assyms.h asexpr.h ! 44: SRCS= asscan1.c asscan2.c asscan3.c asscan4.c bignum.c asmain.c asparse.c \ ! 45: asexpr.c assyms.c asjxxx.c ascode.c aspseudo.c assizetab.c asio.c ! 46: OBJS= asscan1.o asscan2.o asscan3.o asscan4.o bignum.o asparse.o asexpr.o \ ! 47: asmain.o assyms.o asjxxx.o ascode.o aspseudo.o assizetab.o asio.o ! 48: GRIND = astoks.h as.h asscan.h assyms.h asexpr.h instrs.h asnumber.h \ ! 49: asscanl.h asscan1.c asscan2.c asscan3.c asscan4.c bignum.c \ ! 50: asmain.c asscan.c asparse.c asexpr.c assyms.c asjxxx.c ascode.c \ ! 51: asio.c assizetab.c aspseudo.c ! 52: # ! 53: # available flags: ! 54: # ! 55: # AS This is the assembler; always set ! 56: # (UNIX and VMS are mutually exclusive.) ! 57: # UNIX Must be set if the assembler is to produce a.out ! 58: # files for UNIX. ! 59: # ! 60: # VMS Must be set if the assembler is to produce executables ! 61: # for VMS (Thanks to David Kashtan, SRI for these fixes) ! 62: # ! 63: # if VMS is set, then these two flags are also valid: ! 64: # (necessary to frob system calls and '$' conventions ! 65: # VMSDEVEL The assembler is being compiled under VMS ! 66: # UNIXDEVEL The assembler is being compiled under UNIX ! 67: # ! 68: # ! 69: # DEBUG print out various debugging information ! 70: # in the first pass ! 71: # ! 72: # FLEXNAMES All names are stored internally as true character ! 73: # strings, null terminated, and can be no more ! 74: # than BUFSIZ long. ! 75: # ! 76: DFLAGS= -DAS ! 77: CFLAGS= -O $(DFLAGS) ! 78: ! 79: all: as ! 80: ! 81: as: ${OBJS} ${LIBC} ! 82: ${CC} ${CFLAGS} ${OBJS} -o $@ ! 83: ! 84: astoks.h: astoks.H astokfix.awk ! 85: awk -f astokfix.awk < astoks.H > astoks.h ! 86: ! 87: aspseudo.o: as.h astoks.h aspseudo.c instrs.h instrs.as ! 88: ${CC} -c -R ${DFLAGS} aspseudo.c ! 89: ! 90: instrs.as: instrs ! 91: (echo FLAVOR AS ; cat instrs) | awk -f instrs > instrs.as ! 92: ! 93: clean: FRC ! 94: rm -f ${OBJS} core as ! 95: ! 96: depend: FRC ! 97: mkdep ${CFLAGS} ${SRCS} ! 98: ! 99: install: FRC ! 100: install -s -o bin -g bin as ${DESTDIR}/bin/as ! 101: ! 102: lint: FRC ! 103: lint ${CFLAGS} ${SRCS} ! 104: ! 105: tags: FRC ! 106: ctags ${SRCS} ! 107: ! 108: FRC: ! 109: ! 110: # DO NOT DELETE THIS LINE -- mkdep uses it. ! 111: # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. ! 112: ! 113: asscan1.o: asscan1.c asscanl.h /usr/include/stdio.h as.h ! 114: asscan1.o: /usr/include/sys/types.h /usr/include/a.out.h ! 115: asscan1.o: /usr/include/sys/exec.h /usr/include/stab.h instrs.h astoks.h ! 116: asscan1.o: asnumber.h asscan.h ! 117: asscan2.o: asscan2.c asscanl.h /usr/include/stdio.h as.h ! 118: asscan2.o: /usr/include/sys/types.h /usr/include/a.out.h ! 119: asscan2.o: /usr/include/sys/exec.h /usr/include/stab.h instrs.h astoks.h ! 120: asscan2.o: asnumber.h asscan.h ! 121: asscan3.o: asscan3.c asscanl.h /usr/include/stdio.h as.h ! 122: asscan3.o: /usr/include/sys/types.h /usr/include/a.out.h ! 123: asscan3.o: /usr/include/sys/exec.h /usr/include/stab.h instrs.h astoks.h ! 124: asscan3.o: asnumber.h asscan.h ! 125: asscan4.o: asscan4.c asscanl.h /usr/include/stdio.h as.h ! 126: asscan4.o: /usr/include/sys/types.h /usr/include/a.out.h ! 127: asscan4.o: /usr/include/sys/exec.h /usr/include/stab.h instrs.h astoks.h ! 128: asscan4.o: asnumber.h asscan.h ! 129: bignum.o: bignum.c /usr/include/errno.h /usr/include/stdio.h as.h ! 130: bignum.o: /usr/include/sys/types.h /usr/include/a.out.h /usr/include/sys/exec.h ! 131: bignum.o: /usr/include/stab.h instrs.h astoks.h asnumber.h ! 132: asmain.o: asmain.c /usr/include/stdio.h /usr/include/ctype.h ! 133: asmain.o: /usr/include/signal.h /usr/include/machine/trap.h as.h ! 134: asmain.o: /usr/include/sys/types.h /usr/include/a.out.h /usr/include/sys/exec.h ! 135: asmain.o: /usr/include/stab.h instrs.h astoks.h asnumber.h assyms.h asscan.h ! 136: asmain.o: asexpr.h ! 137: asparse.o: asparse.c /usr/include/stdio.h as.h /usr/include/sys/types.h ! 138: asparse.o: /usr/include/a.out.h /usr/include/sys/exec.h /usr/include/stab.h ! 139: asparse.o: instrs.h astoks.h asnumber.h asscan.h assyms.h asexpr.h ! 140: asexpr.o: asexpr.c /usr/include/stdio.h as.h /usr/include/sys/types.h ! 141: asexpr.o: /usr/include/a.out.h /usr/include/sys/exec.h /usr/include/stab.h ! 142: asexpr.o: instrs.h astoks.h asnumber.h asscan.h asexpr.h ! 143: assyms.o: assyms.c /usr/include/stdio.h /usr/include/ctype.h as.h ! 144: assyms.o: /usr/include/sys/types.h /usr/include/a.out.h /usr/include/sys/exec.h ! 145: assyms.o: /usr/include/stab.h instrs.h astoks.h asnumber.h asscan.h assyms.h ! 146: asjxxx.o: asjxxx.c /usr/include/stdio.h as.h /usr/include/sys/types.h ! 147: asjxxx.o: /usr/include/a.out.h /usr/include/sys/exec.h /usr/include/stab.h ! 148: asjxxx.o: instrs.h astoks.h asnumber.h assyms.h ! 149: ascode.o: ascode.c /usr/include/stdio.h as.h /usr/include/sys/types.h ! 150: ascode.o: /usr/include/a.out.h /usr/include/sys/exec.h /usr/include/stab.h ! 151: ascode.o: instrs.h astoks.h asnumber.h assyms.h ! 152: aspseudo.o: aspseudo.c /usr/include/stdio.h as.h /usr/include/sys/types.h ! 153: aspseudo.o: /usr/include/a.out.h /usr/include/sys/exec.h /usr/include/stab.h ! 154: aspseudo.o: instrs.h astoks.h asnumber.h instrs.as ! 155: assizetab.o: assizetab.c /usr/include/stdio.h as.h /usr/include/sys/types.h ! 156: assizetab.o: /usr/include/a.out.h /usr/include/sys/exec.h /usr/include/stab.h ! 157: assizetab.o: instrs.h astoks.h asnumber.h assyms.h ! 158: asio.o: asio.c /usr/include/stdio.h as.h /usr/include/sys/types.h ! 159: asio.o: /usr/include/a.out.h /usr/include/sys/exec.h /usr/include/stab.h ! 160: asio.o: instrs.h astoks.h asnumber.h ! 161: ! 162: # 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.