git.ucc.asn.au
/
uccvend-snackrom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
UART code for a 16550.
[uccvend-snackrom.git]
/
ROM2
/
Makefile
diff --git
a/ROM2/Makefile
b/ROM2/Makefile
index
949e801
..
a7fd90d
100644
(file)
--- a/
ROM2/Makefile
+++ b/
ROM2/Makefile
@@
-1,10
+1,10
@@
# muchly stolen from m68hc1x's example.tar.gz's Makefile
OBJS = \
# muchly stolen from m68hc1x's example.tar.gz's Makefile
OBJS = \
- motors.o keypad.o display.o coinmech.o helpers.o main.o \
+ motors.o keypad.o display_basic.o coinmech.o chime.o \
+ helpers.o server.o main_basic.o comm.o \
vectors.o
vectors.o
-INCLUDES = vend.h
-
+INCLUDES = vend.h keypad.h chime.h asm.h display_basic.h ports.h types.h
CFLAGS = -O3 -m68hc11 -mshort -Wall -Os -g0 \
-msoft-reg-count=0 -ffixed-z
CFLAGS = -O3 -m68hc11 -mshort -Wall -Os -g0 \
-msoft-reg-count=0 -ffixed-z
@@
-16,7
+16,8
@@
LDFLAGS = -m68hc11 -mshort -Wl,-m,m68hc11elfb \
-Wl,-defsym,_misc_input=0x2000 \
-Wl,-defsym,_home_sensors=0x2800 \
-Wl,-defsym,_changer_output=0x3000 \
-Wl,-defsym,_misc_input=0x2000 \
-Wl,-defsym,_home_sensors=0x2800 \
-Wl,-defsym,_changer_output=0x3000 \
- -Wl,-defsym,_misc_output=0x3800
+ -Wl,-defsym,_misc_output=0x3800 \
+ -Wl,-defsym,_uart_regs=0x4000
OBJCOPY_FLAGS=--only-section=.text \
--only-section=.rodata \
OBJCOPY_FLAGS=--only-section=.text \
--only-section=.rodata \
@@
-39,7
+40,7
@@
rom2.elf: $(OBJS) memory.x
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBADD)
clean:
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBADD)
clean:
- rm -f
$(OBJS)
*.elf *.s19 *.b *.a
+ rm -f
*.o
*.elf *.s19 *.b *.a
#
# Some useful rules
#
# Some useful rules
UCC
git Repository :: git.ucc.asn.au