You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
920 B

2 years ago
OBJCOPY ?= objcopy
LDFLAGS := -Ttext=0x2000
.PHONY: all
all: mathtest.prg report03.prg monitor.prg bios.prg grlinfsrv.prg monitor02.prg mixtest.prg
diff mathtest.prg ../GRLTS01/MATHTEST.PRG
diff report03.prg ../GRLTS01/REPORT03.PRG
diff monitor.prg ../GRLTS01/MONITOR.PRG
diff bios.prg ../GRLTS01/BIOS.PRG
diff grlinfsrv.prg ../GRLINFSRV/GRLINFSRV.PRG
diff monitor02.prg ../GRLTS02/MONITOR.PRG
diff mixtest.prg ../GRLTS02/MIXTEST.PRG
.PHONY: clean
clean:
rm -f *.elf *.prg custom/*.prg
.INTERMEDIATE: monitor.elf
monitor.elf: LDFLAGS := -Ttext=0xE000
.INTERMEDIATE: bios.elf
bios.elf: LDFLAGS := -Ttext=0x0000
.INTERMEDIATE: grlinfsrv.elf
grlinfsrv.elf: LDFLAGS := -Ttext=0xF000
.INTERMEDIATE: monitor02.elf
monitor02.elf: LDFLAGS := -Ttext=0xE000
%.o: %.asm instr.inc
$(COMPILE.s) $(OUTPUT_OPTION) $<
%.elf: %.o
$(LD) $(LDFLAGS) $(OUTPUT_OPTION) $^
%.prg: %.elf
$(OBJCOPY) -j .text -O binary $< $@