Commit | Line | Data |
---|---|---|
ed100820 KB |
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) %G% | |
08b95b36 KB |
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 | # | |
08b95b36 KB |
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 \ | |
ed100820 KB |
50 | asmain.c asscan.c asparse.c asexpr.c assyms.c asjxxx.c ascode.c \ |
51 | asio.c assizetab.c aspseudo.c | |
08b95b36 KB |
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) | |
08b95b36 | 78 | |
ed100820 | 79 | all: as |
08b95b36 | 80 | |
ed100820 KB |
81 | as: ${OBJS} ${LIBC} |
82 | ${CC} ${CFLAGS} ${OBJS} -o $@ | |
08b95b36 KB |
83 | |
84 | astoks.h: astoks.H astokfix.awk | |
85 | awk -f astokfix.awk < astoks.H > astoks.h | |
86 | ||
ed100820 KB |
87 | aspseudo.o: as.h astoks.h aspseudo.c instrs.h instrs.as |
88 | ${CC} -c -R ${DFLAGS} aspseudo.c | |
08b95b36 KB |
89 | |
90 | instrs.as: instrs | |
91 | (echo FLAVOR AS ; cat instrs) | awk -f instrs > instrs.as | |
92 | ||
ed100820 KB |
93 | clean: FRC |
94 | rm -f ${OBJS} core as | |
95 | ||
96 | depend: FRC | |
97 | mkdep ${CFLAGS} ${SRCS} | |
08b95b36 | 98 | |
ed100820 KB |
99 | install: FRC |
100 | install -s -o bin -g bin as ${DESTDIR}/bin/as | |
08b95b36 | 101 | |
ed100820 KB |
102 | lint: FRC |
103 | lint ${CFLAGS} ${SRCS} | |
08b95b36 | 104 | |
ed100820 KB |
105 | tags: FRC |
106 | ctags ${SRCS} | |
08b95b36 | 107 | |
ed100820 | 108 | FRC: |
08b95b36 | 109 | |
ed100820 KB |
110 | # DO NOT DELETE THIS LINE -- mkdep uses it. |
111 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
08b95b36 | 112 | |
ed100820 KB |
113 | asscan1.o: asscan1.c |
114 | asscan1.o:asscanl.h | |
115 | asscan1.o: /usr/include/stdio.h | |
116 | asscan1.o:as.h | |
117 | asscan1.o: /usr/include/sys/types.h /usr/include/a.out.h | |
118 | asscan1.o: /usr/include/sys/exec.h /usr/include/stab.h | |
119 | asscan1.o:instrs.h | |
120 | asscan1.o:astoks.h | |
121 | asscan1.o:asnumber.h | |
122 | asscan1.o:asscan.h | |
123 | asscan2.o: asscan2.c | |
124 | asscan2.o:asscanl.h | |
125 | asscan2.o: /usr/include/stdio.h | |
126 | asscan2.o:as.h | |
127 | asscan2.o: /usr/include/sys/types.h /usr/include/a.out.h | |
128 | asscan2.o: /usr/include/sys/exec.h /usr/include/stab.h | |
129 | asscan2.o:instrs.h | |
130 | asscan2.o:astoks.h | |
131 | asscan2.o:asnumber.h | |
132 | asscan2.o:asscan.h | |
133 | asscan3.o: asscan3.c | |
134 | asscan3.o:asscanl.h | |
135 | asscan3.o: /usr/include/stdio.h | |
136 | asscan3.o:as.h | |
137 | asscan3.o: /usr/include/sys/types.h /usr/include/a.out.h | |
138 | asscan3.o: /usr/include/sys/exec.h /usr/include/stab.h | |
139 | asscan3.o:instrs.h | |
140 | asscan3.o:astoks.h | |
141 | asscan3.o:asnumber.h | |
142 | asscan3.o:asscan.h | |
143 | asscan4.o: asscan4.c | |
144 | asscan4.o:asscanl.h | |
145 | asscan4.o: /usr/include/stdio.h | |
146 | asscan4.o:as.h | |
147 | asscan4.o: /usr/include/sys/types.h /usr/include/a.out.h | |
148 | asscan4.o: /usr/include/sys/exec.h /usr/include/stab.h | |
149 | asscan4.o:instrs.h | |
150 | asscan4.o:astoks.h | |
151 | asscan4.o:asnumber.h | |
152 | asscan4.o:asscan.h | |
153 | bignum.o: bignum.c /usr/include/errno.h /usr/include/stdio.h | |
154 | bignum.o:as.h | |
155 | bignum.o: /usr/include/sys/types.h /usr/include/a.out.h /usr/include/sys/exec.h | |
156 | bignum.o: /usr/include/stab.h | |
157 | bignum.o:instrs.h | |
158 | bignum.o:astoks.h | |
159 | bignum.o:asnumber.h | |
160 | asmain.o: asmain.c /usr/include/stdio.h /usr/include/ctype.h | |
161 | asmain.o: /usr/include/signal.h | |
162 | asmain.o:as.h | |
163 | asmain.o: /usr/include/sys/types.h /usr/include/a.out.h /usr/include/sys/exec.h | |
164 | asmain.o: /usr/include/stab.h | |
165 | asmain.o:instrs.h | |
166 | asmain.o:astoks.h | |
167 | asmain.o:asnumber.h | |
168 | asmain.o:assyms.h | |
169 | asmain.o:asscan.h | |
170 | asmain.o:asexpr.h | |
171 | asparse.o: asparse.c /usr/include/stdio.h | |
172 | asparse.o:as.h | |
173 | asparse.o: /usr/include/sys/types.h /usr/include/a.out.h | |
174 | asparse.o: /usr/include/sys/exec.h /usr/include/stab.h | |
175 | asparse.o:instrs.h | |
176 | asparse.o:astoks.h | |
177 | asparse.o:asnumber.h | |
178 | asparse.o:asscan.h | |
179 | asparse.o:assyms.h | |
180 | asparse.o:asexpr.h | |
181 | asexpr.o: asexpr.c /usr/include/stdio.h | |
182 | asexpr.o:as.h | |
183 | asexpr.o: /usr/include/sys/types.h /usr/include/a.out.h /usr/include/sys/exec.h | |
184 | asexpr.o: /usr/include/stab.h | |
185 | asexpr.o:instrs.h | |
186 | asexpr.o:astoks.h | |
187 | asexpr.o:asnumber.h | |
188 | asexpr.o:asscan.h | |
189 | asexpr.o:asexpr.h | |
190 | assyms.o: assyms.c /usr/include/stdio.h /usr/include/ctype.h | |
191 | assyms.o:as.h | |
192 | assyms.o: /usr/include/sys/types.h /usr/include/a.out.h /usr/include/sys/exec.h | |
193 | assyms.o: /usr/include/stab.h | |
194 | assyms.o:instrs.h | |
195 | assyms.o:astoks.h | |
196 | assyms.o:asnumber.h | |
197 | assyms.o:asscan.h | |
198 | assyms.o:assyms.h | |
199 | asjxxx.o: asjxxx.c /usr/include/stdio.h | |
200 | asjxxx.o:as.h | |
201 | asjxxx.o: /usr/include/sys/types.h /usr/include/a.out.h /usr/include/sys/exec.h | |
202 | asjxxx.o: /usr/include/stab.h | |
203 | asjxxx.o:instrs.h | |
204 | asjxxx.o:astoks.h | |
205 | asjxxx.o:asnumber.h | |
206 | asjxxx.o:assyms.h | |
207 | ascode.o: ascode.c /usr/include/stdio.h | |
208 | ascode.o:as.h | |
209 | ascode.o: /usr/include/sys/types.h /usr/include/a.out.h /usr/include/sys/exec.h | |
210 | ascode.o: /usr/include/stab.h | |
211 | ascode.o:instrs.h | |
212 | ascode.o:astoks.h | |
213 | ascode.o:asnumber.h | |
214 | ascode.o:assyms.h | |
215 | aspseudo.o: aspseudo.c /usr/include/stdio.h | |
216 | aspseudo.o:as.h | |
217 | aspseudo.o: /usr/include/sys/types.h /usr/include/a.out.h | |
218 | aspseudo.o: /usr/include/sys/exec.h /usr/include/stab.h | |
219 | aspseudo.o:instrs.h | |
220 | aspseudo.o:astoks.h | |
221 | aspseudo.o:asnumber.h | |
222 | aspseudo.o:instrs.as | |
223 | assizetab.o: assizetab.c /usr/include/stdio.h | |
224 | assizetab.o:as.h | |
225 | assizetab.o: /usr/include/sys/types.h /usr/include/a.out.h | |
226 | assizetab.o: /usr/include/sys/exec.h /usr/include/stab.h | |
227 | assizetab.o:instrs.h | |
228 | assizetab.o:astoks.h | |
229 | assizetab.o:asnumber.h | |
230 | assizetab.o:assyms.h | |
231 | asio.o: asio.c /usr/include/stdio.h | |
232 | asio.o:as.h | |
233 | asio.o: /usr/include/sys/types.h /usr/include/a.out.h /usr/include/sys/exec.h | |
234 | asio.o: /usr/include/stab.h | |
235 | asio.o:instrs.h | |
236 | asio.o:astoks.h | |
237 | asio.o:asnumber.h | |
08b95b36 | 238 | |
ed100820 | 239 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |