blob: a66bcc6dc8f7d4ed08c418d0f7c020f19f0a5943 (
plain)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
include ../../Makefile.config
CCOMP=../../ccomp
FLAGS=-S
CPP=cpp -P
AS=$(CASM)
CFLAGS=-g
ASFLAGS=
PROGS=fib integr qsort fft sha1 aes almabench manyargs lists \
stopcopy marksweep switchtbl conversions
all_s: $(PROGS:%=%.s)
all: $(PROGS)
$(PROGS:%=%.s): $(CCOMP)
fib: fib.o mainfib.o
$(CC) $(CFLAGS) -o fib fib.o mainfib.o
clean::
rm -f fib
integr: integr.o mainintegr.o
$(CC) $(CFLAGS) -o integr integr.o mainintegr.o
clean::
rm -f integr
qsort: qsort.o mainqsort.o
$(CC) $(CFLAGS) -o qsort qsort.o mainqsort.o
clean::
rm -f qsort
fft: fft.o mainfft.o
$(CC) $(CFLAGS) -o fft fft.o mainfft.o -lm
clean::
rm -f fft
sha1: sha1.o mainsha1.o
$(CC) $(CFLAGS) -o sha1 sha1.o mainsha1.o
clean::
rm -f sha1 sha1.cm
aes: aes.o mainaes.o
$(CC) $(CFLAGS) -o aes aes.o mainaes.o
clean::
rm -f aes aes.cm
almabench: almabench.o mainalmabench.o
$(CC) $(CFLAGS) -o almabench almabench.o mainalmabench.o -lm
clean::
rm -f almabench almabench.cm
manyargs: manyargs.o mainmanyargs.o
$(CC) $(CFLAGS) -o manyargs manyargs.o mainmanyargs.o
clean::
rm -f manyargs
lists: lists.o mainlists.o
$(CC) $(CFLAGS) -o lists lists.o mainlists.o -L../../runtime -lcompcert
clean::
rm -f lists
stopcopy: stopcopy.o maingc.o
$(CC) $(CFLAGS) -o stopcopy stopcopy.o maingc.o $(LIBMATH)
clean::
rm -f stopcopy
marksweep: marksweep.o maingc.o marksweepcheck.o
$(CC) $(CFLAGS) -o marksweep marksweep.o maingc.o marksweepcheck.o $(LIBMATH)
clean::
rm -f marksweep
switchtbl: switchtbl.o mainswitchtbl.o
$(CC) $(CFLAGS) -o switchtbl switchtbl.o mainswitchtbl.o
clean::
rm -f switchtbl
conversions: conversions.o mainconversions.o
$(CC) $(CFLAGS) -o conversions conversions.o mainconversions.o
clean::
rm -f conversions
.SUFFIXES:
.SUFFIXES: .cmp .cm .s .o .c .S
.cmp.s:
$(CPP) $*.cmp > $*.cm
$(CCOMP) $(FLAGS) $*.cm
.cm.s:
$(CCOMP) $(FLAGS) $*.cm
.c.o:
$(CC) $(CFLAGS) -c $<
.s.o:
$(AS) $(ASFLAGS) -o $*.o $<
.S.o:
$(AS) $(ASFLAGS) -o $*.o $<
.SECONDARY: $(PROGS:%=%.s)
clean::
rm -f *.s *.o *~
|