-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathMakefile.z80
63 lines (41 loc) · 1.29 KB
/
Makefile.z80
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
all: cc cc0 cc1 cc2 cc2.8080 cc2.6809 copt
.SUFFIXES: .c .rel
OBJS0 = frontend.rel
OBJS1 = body.rel declaration.rel enum.rel error.rel expression.rel header.rel idxdata.rel \
initializer.rel label.rel lex.rel main.rel primary.rel stackframe.rel storage.rel \
struct.rel switch.rel symbol.rel target-8080.rel tree.rel type.rel type_iterator.rel
OBJS2 = backend.rel backend-default.rel
OBJS3 = backend.rel backend-8080.rel
OBJS4 = backend.rel backend-6809.rel
CFLAGS = -O2
.c.rel:
fcc $(CFLAGS) -c $<
INC0 = token.h
INC1 = body.h compiler.h declaration.h enum.h error.h expression.h header.h \
idxdata.h initializer.h label.h lex.h primary.h stackframe.h storage.h \
struct.h switch.h symbol.h target.h token.h tree.h type.h type_iterator.h
INC2 = backend.h
$(OBJS0): $(INC0)
$(OBJS1): $(INC1)
$(OBJS2): $(INC1) $(INC2)
$(OBJS3): $(INC1) $(INC2)
cc: cc.c
fcc cc.c -c
fcc cc.rel -o cc
copt: copt.rel
fcc copt.rel -o copt
cc0: $(OBJS0)
fcc $(OBJS0) -o cc0
cc1: $(OBJS1)
fcc --nostdio $(OBJS1) -o cc1
cc2: $(OBJS2)
fcc $(OBJS2) -o cc2
cc2.8080: $(OBJS3)
fcc $(OBJS3) -o cc2.8080
cc2.6809: $(OBJS4)
fcc $(OBJS4) -o cc2.6809
clean:
rm -f cc cc0 cc1 cc2 cc2.8080 cc2.6809 copt
rm -f *~ *.rel *.asm *.rel *.lnk *.map *.lst *.sym
size:
size.fuzix cc cc0 cc1 cc2.8080 cc2.6809 copt