|
|
1.1 root 1: # This makefile may be used to make either the VAX or the 68020 assembler
2:
3: # This makefile must be changed to to compile the 68020 assembler on
4: # the HPUX machines. See the instructions around line 23. (They should
5: # be clearly marked with HPUX.)
6:
7: # To make the 68020 assembler compile as the default, un-comment the next
8: # four lines, and comment out the four lines below the next (text) comment
9: a: a68
10: @rm -f a
11: @ln a68 a
12: lint: lint_68k
13: # To make the VAX assembler compile as the default, un-comment the next four
14: # lines, and comment out the four lines above this comment
15: #a: avax
16: # @rm -f a
17: # @ln avax a
18: #lint: lint_vax
19:
20: # NOTE: m68k.h should be a symlink to either m-sun3.h , m-hpux.h or m-generic.h
21: # depending on which machine you want to compile the 68020 assembler for.
22:
23: # To compile for HPUX, symlink m-hpux.h to m68k.h , un-comment the
24: # next two lines, and comment out the CFLAGS line seven lines (or so) down.
25: # CFLAGS = -g -I../hp-include -I.
26: # LOADLIBES = -lGNU
27:
28: # to include the mc68851 mmu coprocessor instructions un-comment
29: # the next line, and comment out the following line. (68020 only)
30: # CFLAGS = -g -I. -Dm68851
31: CFLAGS = -g -I.
32: LDFLAGS = $(CFLAGS)
33:
34: x =\
35: as.o xrealloc.o xmalloc.o hash.o hex-value.o\
36: atof-generic.o append.o messages.o expr.o app.o\
37: frags.o input-file.o input-scrub.o output-file.o read.o\
38: subsegs.o symbols.o write.o error.o version.o\
39: flonum-const.o flonum-copy.o flonum-mult.o strstr.o bignum-copy.o \
40: gdb.o gdb-file.o gdb-symbols.o gdb-blocks.o obstack.o\
41: gdb-lines.o
42:
43:
44: # files that aren't used flonum-normal.o flonum-print.o cpystr.o
45: y =\
46: m68k.o atof-m68k.o
47: z = \
48: vax.o atof-vax.o
49:
50: a68: $x $y
51: $(CC) -o a68 $(LDFLAGS) $x $y $(LOADLIBES)
52:
53: avax: $x $z
54: $(CC) -o avax $(LDFLAGS) $x $z $(LOADLIBES)
55:
56:
57: m68k.o: a.out.h as.h expr.h flonum.h frags.h hash.h
58: m68k.o: m68k-opcode.h m68k.h md.h obstack.h struc-symbol.h pmmu.h
59:
60: app.o: as.h
61:
62: as.o: a.out.h as.h read.h struc-symbol.h write.h
63: atof-generic.o: flonum.h
64: atof-m68k.o: flonum.h
65: atof-vax.o: as.h flonum.h read.h
66: bignum-copy.o: bignum.h
67: expr.o: a.out.h as.h expr.h flonum.h obstack.h read.h struc-symbol.h
68: expr.o: symbols.h
69: flonum-const.o: flonum.h
70: flonum-copy.o: flonum.h
71: flonum-mult.o: flonum.h
72: flonum-normal.o:flonum.h
73: flonum-print.o: flonum.h
74: frags.o: a.out.h as.h frags.h obstack.h struc-symbol.h subsegs.h
75: gdb.o: as.h
76: gdb-blocks.o: as.h
77: gdb-lines.o: as.h frags.h obstack.h
78: gdb-symbols.o: a.out.h as.h struc-symbol.h
79: hash.o: hash.h
80: input-file.o: input-file.h
81: input-scrub.o: as.h input-file.h read.h
82: messages.o: as.h
83: obstack.o: obstack.h
84: read.o: a.out.h as.h expr.h flonum.h frags.h hash.h md.h obstack.h
85: read.o: read.h struc-symbol.h symbols.h
86: subsegs.o: a.out.h as.h frags.h obstack.h struc-symbol.h subsegs.h write.h
87: symbols.o: a.out.h as.h frags.h hash.h obstack.h struc-symbol.h symbols.h
88: vax.o: a.out.h as.h expr.h flonum.h frags.h md.h obstack.h read.h
89: vax.o: struc-symbol.h symbols.h vax-inst.h vax-opcode.h
90: write.o: a.out.h as.h md.h obstack.h struc-symbol.h subsegs.h
91: write.o: symbols.h write.h
92:
93: flonum.h: bignum.h
94:
95: # app is no longer a separate process.
96: # app: app.c
97: # $(CC) -o app app.c
98: clean:
99: rm -f avax a68 $x $y $z a core gmon.out
100:
101: oprint: oprint.o pp.o
102: $(CC) $(LDFLAGS) -o oprint oprint.o pp.o
103:
104:
105: A =\
106: as.c xrealloc.c xmalloc.c hash.c hex-value.c\
107: atof-generic.c append.c messages.c expr.c bignum-copy.c\
108: frags.c input-file.c input-scrub.c output-file.c read.c\
109: subsegs.c symbols.c write.c error.c strstr.c\
110: flonum-const.c flonum-copy.c flonum-mult.c app.c version.c\
111: gdb.c gdb-file.c gdb-symbols.c gdb-blocks.c obstack.c\
112: gdb-lines.c
113:
114: B =\
115: m68k.c atof-m68k.c
116:
117: C =\
118: vax.c atof-vax.c
119:
120: H = \
121: a.out.h as.h bignum.h expr.h flonum.h \
122: frags.h hash.h input-file.h m68k-opcode.h md.h \
123: obstack.h read.h struc-symbol.h subsegs.h \
124: symbols.h vax-inst.h vax-opcode.h write.h \
125: m-sun3.h m-generic.h pmmu.h m-hpux.h
126:
1.1.1.2 ! root 127: V = \
! 128: make-gas.com objrecdef.h vms.c
! 129:
1.1 root 130: # JF unused flonum-normal.c flonum-print.c cpystr.c
131:
132: lint_68k:
133: lint -I. $A $B
134:
135: lint_vax:
136: lint -I. $A $C
137:
1.1.1.2 ! root 138: gas-dist.tar: COPYING README $A $B $C $H $V Makefile
! 139: tar cvf gas-dist.tar COPYING README $A $B $C $H $V Makefile
1.1 root 140:
141: gas-dist.tar.Z: gas-dist.tar
142: compress < gas-dist.tar > gas-dist.tar.Z
143:
144: dist: gas-dist.tar gas-dist.tar.Z
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.