+LDFLAGS = -m68hc11 -mshort -Wl,-m,m68hc11elfb \
+ -nostartfiles \
+ -Wl,-defsym,_io_ports=0x1000 \
+ -Wl,-defsym,_switch_input=0x1800 \
+ -Wl,-defsym,_misc_input=0x2000 \
+ -Wl,-defsym,_home_sensors=0x2800 \
+ -Wl,-defsym,_changer_output=0x3000 \
+ -Wl,-defsym,_misc_output=0x3800 \
+ -Wl,-defsym,_uart_regs=0x4000
+
+OBJCOPY_FLAGS=--only-section=.text \
+ --only-section=.rodata \
+ --only-section=.vectors \
+ --only-section=.data
+
+
+DEVC_PREFIX = m68hc11-
+CC = $(DEVC_PREFIX)gcc
+AS = $(DEVC_PREFIX)as
+AR = $(DEVC_PREFIX)ar
+SIZE = $(DEVC_PREFIX)size
+OBJCOPY = $(DEVC_PREFIX)objcopy
+OBJDUMP = $(DEVC_PREFIX)objdump
+LD = $(DEVC_PREFIX)ld
+
+all: rom2.b rom2.elf rom2.s19
+
+rom2.elf: $(OBJS) memory.x
+ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBADD)