1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- # This Makefile requires GNU Make or equivalent.
- include os.mk
- TARGET = monroeoc8800diag
- ASMFILES = $(TARGET:%=%.asm)
- CIMFILES = $(TARGET:%=%.cim)
- BDSFILES = $(TARGET:%=%.bds)
- BINFILES = $(TARGET:%=%.bin)
- HEXFILES = $(TARGET:%=%.hex)
- all: $(BINFILES)
- monroeoc8800diag.bin: inc/z80.mac inc/spt.mac inc/spt.asm inc/memtestmarch.asm inc/monroecon.asm inc/trs80music.asm Makefile os.mk
- .PHONY: clean realclean
- clean:
- -$(RM) $(wildcard $(BDSFILES) $(TARGET:%=%.txt) $(TARGET:%=%.lst))
- realclean: clean
- -$(RM) $(wildcard $(CIMFILES) $(BINFILES) $(HEXFILES))
- $(BDSFILES): %.bds: %.bin
- CDDD = truncate
- ASSEMBLE = $(ZMAC) --zmac -m --od . --oo cim,bds,lst,hex
- CDD = $(CDDD) -s 2048 monroeoc8800diag.bin
- %.bin: %.asm Makefile
- @-$(CECHO) $(SGR_COMMAND) $(ASSEMBLE) $< $(SGR_RESET)
- @-$(CECHON) $(SGR_OUTPUT)
- @$(ASSEMBLE) $<
- @-$(CECHON) $(SGR_RESET)
- @$(REN) $(<:%.asm=%.cim) $@
- @-$(CECHON) $(SGR_SIZE)
- @$(STAT) "%N: %z %Xz" $@
- @-$(CECHON) $(SGR_RESET)
- @$(CDD)
- .PHONY: emu
- MODEL = -m3
- # MEM = 32
- EMUFLAGS = $(MODEL) $(foreach h,$(HD),-h $(h)) $(foreach m,$(MEM),-mem $(m)) -turbo
- # EMUFLAGS = $(MODEL) $(foreach h,$(HD),-h $(h)) $(foreach m,$(MEM),-mem $(m))
- emu emu1 emu1l emu3: monroeoc8800diag.emu
- emu1: MODEL = -m1 -nlc -nld
- emu1l: MODEL = -m1
- emu3: MODEL = -m3
- emu2: MODEL = -m2
- emu2: HD = ~/w/trs80/trs80-hard-disk-0.hdv
- emu12: MODEL = -m12
- emu16: MODEL = -m16
- emu6k: MODEL = -m6000
- # emu4: MODEL = -m4
- emu4p: MODEL = -m4p
- # emu4d: MODEL = -m4d
- BREAKFLAGS=$(foreach brk,$(B),-b $(brk))
- %.emu: %.bds %.bin
- $(EMU) -ee -vol 20 -rand $(EMUFLAGS) $(BREAKFLAGS) -rom $*.bin -ls $*.bds $(E)
- .DEFAULT: all
- .PHONY: all
|