|
|
1.1 root 1: #SUN3
2: #MACHINE = M68
3: #DEFS = -DBSD -DSUN3
4: #CFL = -n -Bstatic -f68881
5: #ASMBLR = as
6:
7: #SONY
8: #MACHINE = M68
9: #DEFS = -DBSD
10: #CFL =
11: #ASMBLR = /mnt/brown/toe/gas/a68 # the GNU assembler, that is
12:
13: #SUN4
14: #MACHINE = SPARC
15: #DEFS = -DBSD
16: #CFL = -n -Bstatic
17: #ASMBLR = as
18:
19: #ENCORE
20: #MACHINE = NS32
21: #DEFS = -DBSD
22: #CFL =
23: #ASMBLR = as -j
24:
25: #NEXT
26: #MACHINE = M68
27: #DEFS = -DBSD -DMACH
28: #CFL =
29: #ASMBLR = as
30:
31: #VAXBSD
32: #MACHINE = VAX
33: #DEFS = -DBSD
34: #CFL =
35: #ASMBLR = as
36:
37: #VAXV9
38: #MACHINE = VAX
39: #DEFS = -DV9
40: #CFL =
41: #ASMBLR = as
42:
43: DEFINES = -D$(MACHINE) $(DEFS)
44: #CFLAGS = -g $(CFL) $(DEFINES)
45: CFLAGS = -O $(CFL) $(DEFINES)
46:
47: # Other possible #define's:
48: # PROFILE: for a run which counts allocs.
49: # GCDEBUG: print extra information during garbage collection,
50: # examine the to_space after a collection for stray pointers,
51: # and check create_b and create_s for zero allocation.
52: # GCPROFILE: for a run which prints out cumulative garbage collector
53: # information as it exits.
54:
55: MDEP = $(MACHINE).dep
56:
57: OBJS = run.o gc.o callgc.o $(MDEP).o prim.o prof.o export.o objects.o \
58: cstruct.o errstrings.o trace.o allmo.o
59:
60: run: $(OBJS)
61: cc $(CFLAGS) -o run $(OBJS)
62:
63: errstrings.o : errstrings.c
64:
65: errstrings.c : make_errors
66: make_errors > errstrings.c
67:
68: make_errors: make_errors.c tags.h
69: cc -o make_errors make_errors.c
70:
71: allmo.o: STUB.allmo.s
72: /lib/cpp $(DEFINES) STUB.allmo.s > allmo.s
73: $(ASMBLR) -o allmo.o allmo.s
74: # linkdata >allmo.o
75:
76: linkdata: linkdata.c
77: cc $(CFLAGS) -o linkdata linkdata.c
78:
79: slinkdata: slinkdata.c
80: cc $(CFLAGS) -o slinkdata slinkdata.c
81:
82: prim.o: $(MACHINE).prim.s tags.h prof.h prim.h
83: /lib/cpp $(DEFINES) $(MACHINE).prim.s > prim.s
84: $(ASMBLR) -o prim.o prim.s
85:
86: callgc.o objects.o gc.o run.o trace.o: descriptor.h tags.h
87:
88: prof.o: prof.h
89:
90: clean:
91: rm -f *.o lint.out prim.s linkdata slinkdata allmo.s errstrings.c make_errors run
92:
93: lint:
94: lint $(DEFINES) run.c gc.c callgc.c prof.c export.c objects.c cstruct.c trace.c | tee lint.out
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.