forked from xobs/ax2xx-code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (40 loc) · 1.25 KB
/
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
41
42
43
44
45
46
47
48
49
# as31 - 8031/8051 Assembler
#
# Maintained at: http://www.pjrc.com/tech/8051/
# Please report problems to: [email protected]
#
#
# REVISION HISTORY:
# Jan. 19, 1990 Created. (Ken Stauffer).
# Jan. 30, 1990 Theo played here.
# Late 1994 Paul Stoffregen updates the code
# Sept 1995 bug fixes, add obsure option for cgi
# April 2000 fix filename handling
# convert everything to ANSI C and bison
# properly handle 0b0h as hex 0xB0, not binary 0
# Make most errors into warning, and modify parser
# to recover and continue to the end of the file
# so that all warning are shown.
# March 2001 fix crash with srecord format
# command line version returns non-zero on error
#Use this CFLAGS line with gcc on linux
CFLAGS=-O3 -Wall
CC=gcc
PROGRAM_SOURCES=A5TestBoot.bin TestBoot.bin dump-rom.bin blink-led.bin \
debugger.bin fuzzer.bin blink-led-ax215.bin romdump.bin
PROGRAMS=$(PROGRAM_SOURCES:.asm=.bin)
DBG_OFFSET=18176
all: as31 ax215 $(PROGRAMS)
as31: src/as31
+make -C src/as31
ax215: src/ax215
+make -C src/ax215
%.bin: progs/%.asm as31
./as31 -Fbin $<
@mv progs/$@ tmp.bin
@dd if=tmp.bin of=$@ bs=$(DBG_OFFSET) skip=1 2> /dev/null
@rm -f tmp.bin
clean:
make -C src/ax215 clean
make -C src/as31 clean
rm -f TestBoot.bin dump-rom.bin blink-led.bin