File: Makefile

package info (click to toggle)
xa 2.4.1-0.1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,356 kB
  • sloc: ansic: 8,585; asm: 845; makefile: 755; perl: 116; sh: 53
file content (100 lines) | stat: -rw-r--r-- 2,063 bytes parent folder | download
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

XA=../../xa

default: all
all: t01 t02 t03 t11 t12 t13 t21 t22 t23 t31 t32 t33 t41 t42 t43

# BSD only has suffix rules

.SUFFIXES: .o65 .hex .a65

#%.o65: %.s
.a65.o65:
	${XA} -R -c -o $@ $?

#%.hex: %.o65
.o65.hex:
	../hextool $? > $@

###############################################
# text segment correctly aligned

t01: t01.o65
	../hextool -cmp=$@.ok $@.o65

t02: t02.o65
	../hextool -cmp=$@.ok $@.o65

t03: t03.o65
	../hextool -cmp=$@.ok $@.o65

###############################################
# data segment correctly aligned

t11: t11.o65
	../hextool -cmp=$@.ok $@.o65

t12: t12.o65
	../hextool -cmp=$@.ok $@.o65

t13: t13.o65
	../hextool -cmp=$@.ok $@.o65

###############################################
# text segment incorrectly aligned

t21: t01.a65
	${XA} -R -c -bt 1025 -o $@.o65 $? 2> $@.msg
	../hextool -cmp=$@.mok $@.msg
	../hextool -cmp=$@.ok $@.o65

t22: t02.a65
	${XA} -R -c -bt 1025 -o $@.o65 $? 2> $@.msg
	../hextool -cmp=$@.mok $@.msg
	../hextool -cmp=$@.ok $@.o65

t23: t03.a65
	${XA} -R -c -bt 1025 -o $@.o65 $? 2> $@.msg
	../hextool -cmp=$@.mok $@.msg
	../hextool -cmp=$@.ok $@.o65

###############################################
# text segment correctly aligned, but data segment not (even if empty)

t31: t01.a65
	${XA} -R -c -bd 1025 -o $@.o65 $? 2> $@.msg
	../hextool -cmp=$@.mok $@.msg
	../hextool -cmp=$@.ok $@.o65

t32: t02.a65
	${XA} -R -c -bd 1025 -o $@.o65 $? 2> $@.msg
	../hextool -cmp=$@.mok $@.msg
	../hextool -cmp=$@.ok $@.o65

t33: t03.a65
	${XA} -R -c -bd 1025 -o $@.o65 $? 2> $@.msg
	../hextool -cmp=$@.mok $@.msg
	../hextool -cmp=$@.ok $@.o65

###############################################
# data segment incorrectly aligned

t41: t11.a65
	${XA} -R -c -bd 1025 -o $@.o65 $? 2> $@.msg
	../hextool -cmp=$@.mok $@.msg
	../hextool -cmp=$@.ok $@.o65

t42: t12.a65
	${XA} -R -c -bd 1025 -o $@.o65 $? 2> $@.msg
	../hextool -cmp=$@.mok $@.msg
	../hextool -cmp=$@.ok $@.o65

t43: t13.a65
	${XA} -R -c -bd 1025 -o $@.o65 $? 2> $@.msg
	../hextool -cmp=$@.mok $@.msg
	../hextool -cmp=$@.ok $@.o65


clean:
	rm -f *.o65 *.hex