-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (31 loc) · 820 Bytes
/
Makefile
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
CC65:=cc65/bin-$(shell uname -m)
AS=$(CC65)/ca65
ASFLAGS=-l [email protected] -I $(shell pwd)
rom.bin: main.o ramtest.o maze/maze.o spislave.o librt.a
$(CC65)/ld65 --config eater.cfg -m rom.map -o $@ $^
librt.a: reg.o via.o led.o lcd.o lfsr.o
$(CC65)/ar65 r $@ $^
.PHONY: test
test: rom.bin
make -C test
.PHONY: netprogram
netprogram: rom.bin
ssh bokonon minipro -p AT28C256 -w /n/user/richard/src/6502/rom.bin -u
.PHONY: program
program: rom.bin
minipro -p AT28C256 -w rom.bin -u
.PHONY: hexdump
hexdump: rom.bin
hexdump -C $<
.PHONY: cc65
cc65:
rm -rf $(CC65) cc65/bin cc65/wrk
make -C cc65
mv cc65/bin $(CC65)
.PHONY: tags
tags:
find . -name '*.s' | xargs awk '/^.proc/{ OFS="\t"; print $$2, FILENAME, "/" $$0 "/" }' | LC_ALL=C sort > tags
.PHONY: clean
clean:
rm -f rom.bin librt.a *.o
make -C test clean