-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
56 lines (39 loc) · 1.17 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
50
51
52
53
54
55
56
#===============================================================================
# WDC Tools Assembler Definitions
#-------------------------------------------------------------------------------
AS = wdc816as
LD = wdcln
RM = erase
AS_FLAGS = -g -l -DW65C816SXB
LD_FLAGS = -g -t -C0300
DEBUG = wdcdb.exe
#===============================================================================
# Rules
#-------------------------------------------------------------------------------
.asm.obj:
$(AS) $(AS_FLAGS) $<
#===============================================================================
# Targets
#-------------------------------------------------------------------------------
OBJS = \
w65c816sxb.obj \
sxb-hacker.obj
all: sxb-hacker.bin
clean:
$(RM) $(OBJS)
$(RM) *.bin
$(RM) *.lst
debug:
$(DEBUG)
#===============================================================================
# Dependencies
#-------------------------------------------------------------------------------
sxb-hacker.bin: $(OBJS)
$(LD) $(LD_FLAGS) -O $@ $(OBJS)
w65c816sxb.obj: \
w65c816.inc \
w65c816sxb.inc \
w65c816sxb.asm
sxb-hacker.obj: \
w65c816.inc \
sxb-hacker.asm