#	name		Lattice makefile
#	author		Anthony Hay, John Linney Digital Research (UK) Ltd.
#
# 	purpose		Build the DOS Plus 3.x / Concurrent DOS 6.x utilities.
#
#	history
#	26-Jan-88 JFL	Dos 3.3 MODE utility
#	24-MAR-87 ACH	Work started.
#
INC	= $(TCCINC)
CSLIB	= $(TCCLIB)\CS
TCCSTART= $(TCCLIB)\C0S.OBJ+

.SET: INCLUDE=$(INC);$(APPS)

.c.obj:
#       $(MSC) $(MSCFLG) $*.C,$@;
#       $(MWC) $* -obj $@ $(MWCFLG)
	$(TCC) $(TCCFLG) -I$(APPS) -o$@ $*.c 

all:		mode

# mode.exe 	###############################################################
mode:	$(MSG)\mode.com $(APPS)\appslib.lib

$(MSG)\mode.com:	mode.obj $(MSG)\modemsg.obj ext_ros.obj resident.obj mode.h
	$(LINK) @<<(mode.inp)
$(TCCSTART)resident+mode+ext_ros+$(MSG)\modemsg /EXEPACK
$@,,$(APPS)\appslib+$(CSLIB);
<

	
mode.obj:	mode.c mode.h i:portab.h

$(MSG)\modemsg.obj:	$(MSG)\modemsg.c

resident.obj:	resident.asm

ext_ros.obj:	ext_ros.asm

######################   E N D   O F   M A K E F I L E    #####################
