#
# 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 /dTRACE_CODE

# 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 XMStest.exe

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

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


#
# Things not built for distribution.

clt.exe: clt.asm fdxms.asm fdxms.inc print_string.inc
	$(ASM) /z /zi $*.asm
	tlink /v $*.obj

it.exe: it.asm fdxms.asm fdxms.inc print_string.inc
	$(ASM) /z /zi $*.asm
	tlink /v $*.obj

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