# This is the 'MAKE' description file for UNFORMAT   08-13-90.
# 12-11-90 GWD Removed references to 'datetime.inc'.
# Copyright (C) Microsoft 1991.  All rights reserved.

MSG_DIR=$(LANG_SRC)\$(COUNTRY)\cmd\cps\rebuild

bins    =..\..\..\binaries
cprs    =..\..\..\compress
dest    =unformat.com
pkl     =unformat.pkl

!IFNDEF       BUILDER

all: icopy $(dest)

!ELSE

all: icopy $(dest) $(bins)\$(dest) $(cprs)\$(dest)

$(bins)\$(dest): $(pkl)
            copy $(pkl) $(bins)\$(dest)

$(cprs)\$(dest):  $(pkl)
            copy $(pkl) $(cprs)\$(dest)

$(pkl):       $(dest)
            pklite -o $(dest) $(pkl)

!ENDIF

icopy:
	copy $(MSG_DIR)\uf_msg.asm
	copy $(MSG_DIR)\uf_jmsg.asm

uf_main.obj:  uf_main.asm  uf_incl.inc makefile

uf_partn.obj: uf_partn.asm  uf_incl.inc makefile

uf_io.obj:    uf_io.asm makefile

uf_msg.obj:   uf_msg.asm makefile

uf_jims.obj:  uf_jims.asm uf_jmsg.asm makefile

uf_last.obj:  uf_last.asm makefile

uf_org.obj:   uf_org.asm makefile

unformat.exc: uf_org.obj uf_main.obj uf_partn.obj \
              uf_io.obj uf_msg.obj uf_jims.obj uf_last.obj
              link /li /map uf_org.obj uf_main.obj uf_partn.obj \
                   uf_io.obj uf_msg.obj uf_jims.obj uf_last.obj, \
                   unformat.exc,unformat.map;

$(dest):      unformat.exc
