#
# Makefile for FreeDOS XMS Driver
#
#
# You might need to change the following lines if you use another
# assembler, linker or compiler.

# This is for Turbo Assembler Version 3.1.
ASM 	= 	tasm /m4

# This is for Turbo Link Version 5.1.
LNK 	= 	tlink /t /x

# This is for bcc from Borland C++ Version 3.1. 
CC 	= 	bcc


#
# That you'd want to change something below this line is unlikely.

all : fdxms.sys fdxmst.sys fdxxms.sys fdxxmst.sys XMStest.exe

fdxms.sys : fdxms.asm fdxms.inc print_string.inc xms_resident.inc
	$(ASM) $*
	$(LNK) $*.obj,$*.sys

fdxmst.sys : fdxms.asm fdxms.inc print_string.inc xms_resident.inc
	$(ASM) /dTRACE_CODE fdxms.asm
	$(LNK) fdxms.obj,$*.sys

fdxxms.sys : fdxms.asm fdxms.inc print_string.inc xxms_variables.inc xxms_resident.inc xxms_nonresident.inc
	$(ASM) /dXXMS fdxms.asm
	$(LNK) fdxms.obj,$*.sys

fdxxmst.sys : fdxms.asm fdxms.inc print_string.inc xxms_variables.inc xxms_resident.inc xxms_nonresident.inc
	$(ASM) /dXXMS /dTRACE_CODE fdxms.asm
	$(LNK) fdxms.obj,$*.sys

XMStest.exe: XMStest.c
	$(CC) $*.c


#
# Things not built for distribution.

cptest.exe: cptest.c 
	$(CC) -v -y cptest.c
