projects
/
z80.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
z80: uart echo test program (SDCC)
[z80.git]
/
z80
/
uart
/
Makefile
1
# makefile
2
3
OBJS = crt0.rel main.rel
4
5
CC = sdcc -mz80
6
AS = sdasz80
7
CFLAGS = --all-callee-saves --no-std-crt0
8
9
all: main.hex
10
11
main.hex: $(OBJS)
12
@echo -e "\tLD\t$@"
13
@$(CC) $(CFLAGS) -o $@ $(OBJS)
14
15
%.rel: %.c
16
@echo -e "\tCC\t$@"
17
@$(CC) $(CFLAGS) -c -o $@ $^
18
19
%.rel: %.s
20
@echo -e "\tAS\t$@"
21
@$(AS) -o $@ $^
22
23
clean:
24
@echo -e "\tCLEAN"
25
rm -f *.asm *.hex *.lk *.lst *.map *.noi *.rel *.sym
26
27
.PHONY: clean