-cmakefile
-m&[r,&>]
-I..
-l
MEM = /AS
COMPSW = /Od
INCLUDES = -I. -I.. -Id:\c600\include -Id:\c600\include\sys

ENDLIT

-tautocoder.exe
@..\rules
-l
#*****************************************************************************
#	makefile for 1401
#*****************************************************************************
#	Change Log
#   Date    | Change
#-----------+-----------------------------------------------------------------
# 15-Nov-85 | Created
# 24-Nov-85 | [1.98] Added CW
#  7-Dec-85 | [1.151] Now called '1401.c', not 'track.c'
# 11-Dec-85 | [1.164] Added MLC, MLZS
# 12-Dec-85 | [1.172] Added MLNS
# 12-Dec-85 | [1.174] Added SRF, SPF
# 12-Dec-85 | [1.175] Added length module
# 12-Dec-85 | [1.175] SS -> SWITCHES (preparing for SS module)
# 13-Dec-85 | [1.181] Added MRCM
# 13-Dec-85 | [1.183] Added SAR, cvbytes
# 14-Dec-85 | [1.188] Added SBR
# 15-Dec-85 | [1.199] Added BWZ
# 15-Dec-85 | [1.201] Added C
# 15-Dec-85 | [1.206] Added P
# 15-Dec-85 | [1.209] Added WP, WRP, RP
# 16-Dec-85 | [1.212] Added A, arith
# 16-Dec-85 | [1.212] Now up to M6, I4
# 20-Dec-85 | [1.226] Added S, also up to I5
# 24-Dec-85 | [1.231] Added SELECT
# 26-Dec-85 | [1.237] Arith depends on logic.h
# 26-Dec-85 | [1.238] Added CU
# 27-Dec-85 | [1.241] Added MCS
# 27-Dec-85 | [1.242] Added ZA
# 27-Dec-85 | [1.244] Added ZS
# 27-Dec-85 | [1.247] Added MCE
# 27-Dec-85 | [1.252] Added CC
# 29-Dec-85 | [1.270] Added MA, now up to I6
# 29-Dec-85 | [1.270] Enter now depends on modes.h
# 31-Dec-85 | [1.283] Added iocheck, now up to M7
# 11-Jan-86 | [1.293] Added keys.h file
# 24-Jan-86 | [1.312] Added scan.obj
# 24-Jan-86 | [1.314] 1401.obj no longer depends on keys.h
# 24-Jan-86 | [1.314] Added dead.obj
#  8-Feb-86 | [1.357] Added screen.h dependencies where required
# 23-Feb-86 | [1.365] Numerous dependencies for color added as required
# 25-Feb-86 | [1.374] added color.h
# 25-Feb-86 | [1.379] Changed to p (large program) model
# 25-Feb-86 | [1.380] Added /seg:256 to link command
# 25-Feb-86 | [1.382] mach.obj depends on logic.h
# 29-Jul-86 | [1.385] Added cdump module
# 29-Jul-86 | [1.385] Fixed order of switches in LC1, LC2 commands so file
#           | is at end
# 30-Jul-86 | [1.398] Added 'lamp' module
# 31-Jul-86 | [1.405] Added kbd.obj
#  6-Aug-86 | [1.410] Added bcd.h dependencies
# 18-Aug-86 | [1.414] screen.h -> bscreen.h (ctools plus update)
# 18-Aug-86 | [1.414] Removed ctools2 from linker command file
# 19-Aug-86 | [1.422] Updated logic.obj dependencies
# 19-Aug-86 | [1.423] display now depends upon debugcolor
# 17-Nov-91 | [1.428] <jmn> converted to C6.0/SageMake
# 19-Nov-91 | [1.428] <jmn> added printers.c
# 23-Nov-91 | [1.468] <jmn> added font.c
#  3-Dec-91 | [1.220] <jmn> added da.c
#  2-Jan-92 | [1.261] <jmn> added diag.obj
#*****************************************************************************

# Standard prolog

COMPILER = d:\c600\bin\cl
LINK = d:\c600\binb\link
VDISK=e:
LDISK=c:
# no ASM for now
ASM =
.SUFFIXES

SRCEXT = .c .asm
.c.obj :
    del $*.obj
    set gc0=
    set gc1=
    set CL= /W2 /X $(INCLUDES) $(MEM) $(COMPSW) /Zi /c
    $(COMPILER) /Fo$*.obj $<
    if exist $*.obj goto $[r,$*]
    echo * * *    Compilation of '$*' failed >> nolink
    $(WARN)
    :$[r,$*]

.asm.obj :
	del $*.obj
	$(ASM) $*,$*,$*;
	if exist $*.obj goto $*
	echo * * *    Assembly of $* failed >> nolink
	:$*

include &*.fil

autocoder.exe: \
	asmops.obj \
	autocode.obj \
	bcd.obj \
	boot.obj \
	chars.obj \
	da.obj \
	dc.obj \
	diag.obj \
	ds.obj \
	dsa.obj \
	end.obj \
	equ.obj \
	error.obj \
	expr.obj \
	font.obj \
	job.obj \
	list.obj \
	lit.obj \
	machop.obj \
	memory.obj \
	operand.obj \
	org.obj \
	pass1.obj \
	pass2.obj \
	prdev.obj \
	printers.obj \
	rdy.obj \
	skipn.obj \
	sym.obj \
	version.obj \
	autocoder.lnk 
	if exist nolink goto nolink
	$(LINK) @autocode.lnk
	if errorlevel 1 goto end
	version version.c version.ver
	:nolink
	:end

##############################################################################
#	Object file specifications
##############################################################################

ENDLIT
asmops.c 
autocode.c 
bcd.c
boot.c 
chars.c
da.c
dc.c 
diag.c
ds.c 
dsa.c 
end.c 
equ.c 
error.c 
expr.c 
font.c
job.c 
list.c
lit.c 
machop.c 
memory.c 
operand.c 
org.c 
pass1.c 
pass2.c 
prdev.c
printers.c
rdy.c
skipn.c 
sym.c 
version.c 
-c&*.fil
-d
