#-----------------------------------------------------------------------------
#                    MASTERING TURBO ASSEMBLER 2nd Ed.
#                              by Tom Swan
#
#       Make file for TPoint object and demonstration program. To
#       assemble and link the program, enter this DOS command:
#
#               MAKE
#
#       Be sure to use Borland's MAKE utility program--other similar
#       MAKEs may not work correctly.  Read the notes below to modify
#       this file for assembling programs to run with Turbo Debugger
#       or to assemble without adding debugging information to the
#       disk files.
#
#       Copyright (c) 1995 by Tom Swan. All rights reserved.
#-----------------------------------------------------------------------------


# OPTION:
# To examine programs with Turbo Debugger, leave the following line
# as is.  To assemble without debugging information (which will save
# disk space), delete the following line or insert a # in 
# column one, converting the line to a comment:

debugging = 1

# Note: If you change the debugging symbol, delete all .OBJ, .COM, 
# and .EXE files before remaking.


# These statements create appropriate macros based on the
# setting of the debugging symbol above.  The /zi option adds
# debugging information to assembled .OBJ files.  The /v option
# adds debugging information to the final .EXE code file.

!if $d(debugging)
assemble=tasm /zi
link=tlink /v
!else
assemble=tasm
link=tlink
!endif


encapsul.exe: encapsul.obj
 $(link) encapsul,,,

encapsul.obj: encapsul.asm tpoint.inc
 $(assemble) encapsul


#----- Delete extraneous files (enter MAKE CLEAN to use)
clean:
 if exist *.bak del *.bak
 if exist *.map del *.map
 if exist *.td  del *.td
 if exist *.tr  del *.tr
