#{{{  File banner
# @(#)=====================================================
# @(#)  Project : PUMA ESPRIT P2701
# @(#)  Authors : Mark Debbage and Mark Hill
# @(#)            University of Southampton
#  
# @(#)    Title : Makefile for PC tools
# @(#)   System : VCR
# @(#) Filename : makefile
# @(#)  Version : 1.5
# @(#)     Date : 7/16/92
# @(#)====================================================
#}}}
# Uses Zortech C response file facility to expand
# command-line for vcrtool command parameter

S=\ # slash
O=/
CC=ztc $(O)c
LINK=ztc 
SRC=..$(S)..$(S)source$(S)tools

top: vdriver.exe svdriver.exe voc.exe vmakef.exe routegen.exe ncf2inc.exe \
     vconf.exe ncfcheck.exe router.exe virtual.exe grid.exe torus.exe ring.exe

vdriver.exe: $(SRC)$(S)vdriver.c
	$(CC) $(SRC)$(S)vdriver.c $(O)ovdriver.obj
	$(LINK) vdriver.obj $(O)ovdriver.exe

svdriver.exe: $(SRC)$(S)vdriver.c
	$(CC) $(SRC)$(S)vdriver.c $(O)DSTATIC $(O)osvdriver.obj
	$(LINK) svdriver.obj $(O)osvdriver.exe

voc.exe: $(SRC)$(S)vcrtool.c voc.arg
	$(CC) @voc.arg
	$(LINK) voc.obj $(O)ovoc.exe

vmakef.exe: $(SRC)$(S)vcrtool.c vmakef.arg
	$(CC) @vmakef.arg 
	$(LINK) vmakef.obj $(O)ovmakef.exe

routegen.exe: $(SRC)$(S)vcrtool.c routegen.arg
	$(CC) @routegen.arg 
	$(LINK) routegen.obj $(O)oroutegen.exe

ncf2inc.exe: $(SRC)$(S)vcrtool.c ncf2inc.arg
	$(CC) @ncf2inc.arg 
	$(LINK) ncf2inc.obj $(O)oncf2inc.exe

vconf.exe: $(SRC)$(S)vcrtool.c vconf.arg
	$(CC) @vconf.arg 
	$(LINK) vconf.obj $(O)ovconf.exe

ncfcheck.exe: $(SRC)$(S)vcrtool.c ncfcheck.arg
	$(CC) @ncfcheck.arg 
	$(LINK) ncfcheck.obj $(O)oncfcheck.exe

router.exe: $(SRC)$(S)vcrtool.c router.arg
	$(CC) @router.arg 
	$(LINK) router.obj $(O)orouter.exe

virtual.exe: $(SRC)$(S)vcrtool.c virtual.arg
	$(CC) @virtual.arg 
	$(LINK) virtual.obj $(O)ovirtual.exe

grid.exe: $(SRC)$(S)mesh2map.c
	$(CC) $(SRC)$(S)mesh2map.c $(O)ogrid.obj
	$(LINK) grid.obj $(O)ogrid.exe

torus.exe: $(SRC)$(S)mesh2map.c
	$(CC) $(SRC)$(S)mesh2map.c $(O)otorus.obj
	$(LINK) torus.obj $(O)otorus.exe

ring.exe: $(SRC)$(S)mesh2map.c
	$(CC) $(SRC)$(S)mesh2map.c $(O)oring.obj
	$(LINK) ring.obj $(O)oring.exe
