# Makefile for boot # # written on 9 March 2007 by Edward J. Beroset # and released to the public domain by the author # # This Makefile was tested with the following tools: # Borland Make version 5.2 # Borland TASM version 4.0 # Borland TLINK version 6.10 # Microsoft Windows2000 # # It should work with just about any DOS or Windows # version. # destination floppy for "make install" FLOPPY = A # tools used ASM = \bc\bin\tasm LINK = \bc\bin\tlink DEL = del COPY = copy # common flags for assembler and linker ASMFLAGS = /la /m2 LINKFLAGS = ALL : boot.exe beroset.sys boot.exe : boot.obj loader.obj $(LINK) $(LINKFLAGS) boot.obj loader.obj boot.obj : boot.asm $(ASM) $(ASMFLAGS) boot.asm loader.obj : loader.asm $(ASM) $(ASMFLAGS) loader.asm beroset.obj : beroset.asm $(ASM) $(ASMFLAGS) beroset.asm beroset.sys : beroset.obj $(LINK) $(LINKFLAGS) /Tdc beroset.obj, beroset.sys install: ALL boot $(FLOPPY) $(COPY) BEROSET.SYS $(FLOPPY):\ clean: $(DEL) beroset.lst $(DEL) beroset.obj $(DEL) beroset.map $(DEL) beroset.sys $(DEL) boot.exe $(DEL) boot.lst $(DEL) boot.map $(DEL) boot.obj $(DEL) loader.bin $(DEL) loader.lst $(DEL) loader.map $(DEL) loader.obj