
!INCLUDE		<standard.mak>
!INCLUDE		<keepc.mak>

TARGETS : xa20.exe

#   The first two modules are machine-dependent, i.e., replacements must be
#   supplied if developing the XA20 program for A20 hardware other than the
#   standard catered for in the samples.  The symbol QUERY_OK on the NMAKE
#   command line configures the sample A20 handler to support A20 queries.

!IFDEF QUERY_OK
_QUERY_OK_ = /D _QUERY_OK_
!ENDIF

handler.obj : handler.c
  $(COMPILE) $(KEEP) $(_QUERY_OK_) handler.c

machine.obj : machine.c
  $(COMPILE) $(_QUERY_OK_) machine.c

#   The next two modules provide the means to load the machine-dependent
#   A20 handler into memory ready for adoption by HIMEM.SYS.  These need
#   no alteration when developing the XA20 program for different A20
#   hardware.

main.obj : main.c

xa20.obj : xa20.c
  $(COMPILE) $(KEEP) xa20.c

#   Link with DRIVER.OBJ, CRTDRVR.LIB and CRTKEEPC.LIB

#   GETXMS.OBJ is also in the library directory and is assumed to be
#   current.

xa20.exe : handler.obj machine.obj main.obj xa20.obj 
  $(LINK) driver+crtdrvr.lib+crtkeepc.lib+ \
	  getxms+handler+machine+main+xa20,xa20.exe;

