# Copyright (C) 3L Ltd. 1987-1992

#
# Makefile for DECODE
#

WHERE_IMP = C:\TI1V4
WHERE_C   = C:\TC2V2

IMP = $(WHERE_IMP)\t4i

DRIVER = $(WHERE_C)\linkt.exe
IRTLT4 = $(WHERE_IMP)\irtlt4.bin
IT4HARN = $(WHERE_IMP)\t4harn.bin
T4TASKHARN = $(WHERE_C)\taskharn.t4

.PATH.bin = bin

OBJS = dechex.bin dect424.bin

#
# Default target is DECODE.B4
#
decode.b4 : decode.bin $(OBJS) $(IRTLT4) $(IT4HARN)
	linkt <@<
$[s,"\n",$**]
<,$@

decode.tsk: decode.bin $(OBJS) $(IRTLT4) $(T4TASKHARN)
	linkt <@<
$[s,"\n",$**]
<,$@

decimage.b4 : decimage.bin $(OBJS) $(IRTLT4) $(IT4HARN)
	linkt <@<
$[s,"\n",$**]
<,$@

decimage.bin : [patch.inc]

dect424.bin : [patch.inc opcodes.inc]

decode.bin : [dbgarea.inc common.inc tags.inc]

#
# special for opcodes.inc: build from .dat using tgen
#
.dat.inc :
	afserver -:b \dos\tgen.b4 -:o 1 -file $* -output $*
