Commit | Line | Data |
---|---|---|
ea838f99 SS |
1 | # Makefile fragment for GAS. |
2 | ||
3 | s = "{srcdir}" | |
4 | ||
5 | o = : | |
6 | ||
7 | C = C -d MPW_C | |
8 | ||
9 | CROSS = -d CROSS_COMPILE | |
10 | ||
f1c1227a | 11 | CFLAGS = -w -mc68020 -mc68881 -model far {CROSS} -d MPW -d TARGET_BYTES_BIG_ENDIAN -d BFD_ASSEMBLER -i "{topsrcdir}"include: -i "{topsrcdir}"bfd:,"{srcdir}",::bfd:,::extra-include,"{srcroot}"include:mpw: |
ea838f99 SS |
12 | # debug options: -mbg on -sym on |
13 | ||
0f8cb88d | 14 | "{o}" \Option-f : "{s}" |
ea838f99 SS |
15 | |
16 | # Default rule that puts each file into separate segment. | |
17 | ||
0f8cb88d | 18 | .c.o \Option-f .c |
ea838f99 SS |
19 | {C} {DepDir}{Default}.c {CFLAGS} {SymOptions} -s gas-{Default} -o {TargDir}{Default}.c.o |
20 | ||
edd9075c SS |
21 | prefix = usr:local: |
22 | ||
23 | bindir = {prefix}bin: | |
24 | ||
0f8cb88d SS |
25 | OBJECTS = \Option-d |
26 | "{o}"app.c.o \Option-d | |
27 | "{o}"as.c.o \Option-d | |
28 | "{o}"atof-generic.c.o \Option-d | |
29 | "{o}"bignum-copy.c.o \Option-d | |
30 | "{o}"cond.c.o \Option-d | |
31 | "{o}"expr.c.o \Option-d | |
32 | "{o}"flonum-konst.c.o \Option-d | |
33 | "{o}"flonum-copy.c.o \Option-d | |
34 | "{o}"flonum-mult.c.o \Option-d | |
35 | "{o}"frags.c.o \Option-d | |
36 | "{o}"hash.c.o \Option-d | |
37 | "{o}"hex-value.c.o \Option-d | |
38 | "{o}"input-file.c.o \Option-d | |
39 | "{o}"input-scrub.c.o \Option-d | |
40 | "{o}"listing.c.o \Option-d | |
41 | "{o}"messages.c.o \Option-d | |
42 | "{o}"output-file.c.o \Option-d | |
43 | "{o}"read.c.o \Option-d | |
44 | "{o}"stabs.c.o \Option-d | |
45 | "{o}"subsegs.c.o \Option-d | |
46 | "{o}"symbols.c.o \Option-d | |
47 | "{o}"write.c.o \Option-d | |
48 | "{o}"ecoff.c.o \Option-d | |
49 | "{o}"xmalloc.c.o \Option-d | |
ea838f99 SS |
50 | |
51 | INCLUDES = | |
52 | # host.h | |
53 | #"{s}".h | |
54 | ||
0f8cb88d | 55 | all \Option-f as.new |
ea838f99 | 56 | |
0f8cb88d SS |
57 | as.new \Option-f\Option-f {OBJECTS} "{o}"obj-format.c.o "{o}"targ-cpu.c.o "{o}"atof-targ.c.o \Option-d |
58 | ::libiberty:libiberty.o \Option-d | |
59 | ::bfd:libbfd.o \Option-d | |
ea838f99 | 60 | ::opcodes:libopcodes.o |
0f8cb88d SS |
61 | Link -d -model far -c 'MPS ' -t MPST \Option-d |
62 | {OBJECTS} \Option-d | |
63 | "{o}"obj-format.c.o "{o}"targ-cpu.c.o "{o}"atof-targ.c.o \Option-d | |
64 | ::libiberty:libiberty.o \Option-d | |
65 | ::bfd:libbfd.o \Option-d | |
66 | ::opcodes:libopcodes.o \Option-d | |
67 | #"{CLibraries}"CSANELib.o \Option-d | |
68 | #"{CLibraries}"Math.o \Option-d | |
69 | #"{CLibraries}"Complex.o \Option-d | |
70 | "{CLibraries}"StdClib.o \Option-d | |
71 | "{Libraries}"Stubs.o \Option-d | |
72 | "{Libraries}"Runtime.o \Option-d | |
73 | "{Libraries}"Interface.o \Option-d | |
74 | #"{Libraries}"ToolLibs.o \Option-d | |
ea838f99 SS |
75 | -o as.new |
76 | ||
0f8cb88d SS |
77 | "{o}"app.c.o \Option-f "{s}"app.c {INCLUDES} |
78 | "{o}"as.c.o \Option-f "{s}"as.c {INCLUDES} | |
79 | "{o}"atof-generic.c.o \Option-f "{s}"atof-generic.c {INCLUDES} | |
80 | "{o}"bifnum-copy.c.o \Option-f "{s}"bignum-copy.c {INCLUDES} | |
81 | "{o}"cond.c.o \Option-f "{s}"cond.c {INCLUDES} | |
82 | "{o}"expr.c.o \Option-f "{s}"expr.c {INCLUDES} | |
83 | "{o}"flonum-konst.c.o \Option-f "{s}"flonum-konst.c {INCLUDES} | |
84 | "{o}"flonum-copy.c.o \Option-f "{s}"flonum-copy.c {INCLUDES} | |
85 | "{o}"flonum-mult.c.o \Option-f "{s}"flonum-mult.c {INCLUDES} | |
86 | "{o}"frags.c.o \Option-f "{s}"frags.c {INCLUDES} | |
87 | "{o}"hash.c.o \Option-f "{s}"hash.c {INCLUDES} | |
88 | "{o}"hex-value.c.o \Option-f "{s}"hex-value.c {INCLUDES} | |
89 | "{o}"input-file.c.o \Option-f "{s}"input-file.c {INCLUDES} | |
90 | "{o}"input-scrub.c.o \Option-f "{s}"input-scrub.c {INCLUDES} | |
91 | "{o}"listing.c.o \Option-f "{s}"listing.c {INCLUDES} | |
92 | "{o}"messages.c.o \Option-f "{s}"messages.c {INCLUDES} | |
93 | "{o}"output-file.c.o \Option-f "{s}"output-file.c {INCLUDES} | |
94 | "{o}"read.c.o \Option-f "{s}"read.c {INCLUDES} | |
95 | "{o}"subsegs.c.o \Option-f "{s}"subsegs.c {INCLUDES} | |
96 | "{o}"symbols.c.o \Option-f "{s}"symbols.c {INCLUDES} | |
97 | "{o}"write.c.o \Option-f "{s}"write.c {INCLUDES} | |
98 | "{o}"ecoff.c.o \Option-f "{s}"ecoff.c {INCLUDES} | |
99 | "{o}"xmalloc.c.o \Option-f "{s}"xmalloc.c {INCLUDES} | |
edd9075c SS |
100 | |
101 | install \Option-f | |
102 | If "`Exists "{prefix}"`" == "" | |
103 | Echo "{prefix}" does not exist, cannot install anything | |
104 | Exit 1 | |
105 | End If | |
106 | If "`Exists "{bindir}"`" == "" | |
107 | NewFolder "{bindir}" | |
108 | End If | |
109 | Duplicate -y :as.new "{bindir}"as |