ASM=tasm -85 RM=rm START=50000 HIMEM=60000 all: bin/BIOS.CO dirs: @echo \* Creating temporary directories @mkdir -p bin @mkdir -p isrc SOURCES = isrc/mtcpm.asm \ isrc/m100.asm \ isrc/bios.asm \ isrc/cpm.asm \ isrc/cpm22.asm \ isrc/cpmram.asm \ isrc/conout.asm \ isrc/conin-rs.asm \ isrc/conin.asm isrc/%.asm: %.asm @echo \* Converting $^ to Unix-style line-endings @cp $^ $@ @dos2unix $@ bin/%.CO: bin/%.bin @echo \* Creating $@ with Start and Entry at $(START) from $^ file @bin2co.pl $^ $@ $(START) $(START) bin/BIOS.bin: dirs $(SOURCES) cd isrc && $(ASM) -b -g3 -s -dStart=$(START) -dHIMEM=$(HIMEM) mtcpm.asm ../$@ && cd .. clean: -$(RM) -rf bin -$(RM) *.sym -$(RM) *.lst -$(RM) -rf isrc -$(RM) lst