forked from BigEd/verilog-6502
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
79 lines (53 loc) · 2.11 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#===============================================================================
# Portable 6502/65C02/65816 Assembler Definitions
#-------------------------------------------------------------------------------
# Update the followiung line to reflect where you have installed the ZIP file
# containing the JAVA classes.
65016_DIR = C:\Users\AV/\Desktop\65016PVBRAM5
#===============================================================================
65016_JAR = $(65016_DIR)/65xx.jar
AS65_CLASS = org.x6502.x65016.As65016
LK65_CLASS = org.x6502.x65016.Lk65016
LB65_CLASS = org.x6502.x65016.Lb65016
AS65 = java -cp $(65016_JAR) $(AS65_CLASS)
LK65 = java -cp $(65016_JAR) $(LK65_CLASS)
LB65 = java -cp $(65016_JAR) $(LB65_CLASS)
RM = erase
#===============================================================================
# Rules
#-------------------------------------------------------------------------------
.asm.obj:
$(AS65) $(AS65_FLAGS) $<
#===============================================================================
# Configuration
#-------------------------------------------------------------------------------
OBJS = \
boot.obj
LK65_FLAGS = \
-bss $$00010000-$$EFFFFFFF -code $$FFFFF000-$$FFFFFFFF
#===============================================================================
# Targets
#-------------------------------------------------------------------------------
all: boot.hex boot.bin boot.coe
boot.hex: $(OBJS)
$(LK65) $(LK65_FLAGS) -hex -output $@ $(OBJS)
boot.bin: $(OBJS)
$(LK65) $(LK65_FLAGS) -bin -output $@ $(OBJS)
#===============================================================================
# Utilities
#-------------------------------------------------------------------------------
clean:
$(RM) $(OBJS)
$(RM) *.bin
$(RM) *.s19
$(RM) *.lst
$(RM) *.map
$(RM) *.hex
$(RM) *.coe
#===============================================================================
# Dependencies
#-------------------------------------------------------------------------------
boot.obj: \
boot.asm
boot.coe: boot.bin
bin2hex -2 boot