#FORMAT MAKE FILE

FILENAME	= format.com
LANG=/dENG


!if $d(ENGLISH)
FILENAME	= format.eng
LANG  =		 /dENG
!endif

!if $d(RUSSIAN)
FILENAME        = format.rus
LANG  =          /dRUS
!endif

!if $d(GERMAN)
FILENAME        = format.ger
LANG  =          /dGER
!endif


TLINK =          tlink.exe /x
TASM  =          @tasm.exe /m9 /mu $(LANG)

.AUTODEPEND

all:	$(FILENAME)

clean:
        @-del $(FILENAME)
        @-del *.obj

$(FILENAME):     clean format.obj serv.obj nsboot.bin
 $(TLINK)        /t format+serv,sdsfrm.com
 @copy           /b sdsfrm.com+nsboot.bin,$(FILENAME)
 @del            sdsfrm.com

format.obj:     format.asm
 $(TASM)         format

serv.obj:        serv.asm
 $(TASM)         serv

nsboot.bin:      nsboot.asm
 $(TASM)         nsboot
 $(TLINK)        nsboot
 exe2bin         nsboot.exe
 @del            nsboot.obj
 @del            nsboot.exe
