# mkpkg for the calacs calibration package
# Author:  Warren Hack, 8-May-1998

$call update
$exit

devdebug:
$set XFLAGS = "-Inolibc -g -q $(XFLAGS)"
$update calacs.a
$echo "-------------------  LINK DEBUG  --------------------"
$call devdebug@acsccd
$call devdebug@acs2d
$call devdebug@acsrej
$call devdebug@acssum

$call devdebug@calacs
$exit
;

dev:
$set XFLAGS = "-Inolibc $(XFLAGS)"
# Next line contains flag for creating code that contains profile info
#$set XFLAGS = "-Inolibc -/p $(XFLAGS)"
$update calacs.a
$echo "-------------------  LINK  ------------------------"
$call dev@acsccd
$call dev@acs2d
$call dev@acsrej
$call dev@acssum
$call dev@calacs
$exit
;

debug:
$set XFLAGS = "-Inolibc -g -q $(XFLAGS)"
$update calacs.a
$echo "-------------------  LINK DEBUG  --------------------"
$call debug@acsccd
$call debug@acs2d
$call debug@acsrej
$call debug@acssum

$call debug@calacs
$exit
;

update:
relink:
install:

$set XFLAGS = "-Inolibc $(XFLAGS)"
$update calacs.a
$echo "-------------------  LINK  ------------------------"
$call update@acsccd
$call update@acs2d
$call update@acsrej
$call update@acssum

linkonly:
$call update@calacs
$exit

calacs.a:
	$echo "-------------------  LIB     ------------------------"
	@lib
	$echo "-------------------  CALACS  ------------------------"
	@calacs
	$echo "-------------------  ACSCCD  ------------------------"
	@acsccd
	$echo "-------------------  ACS2D   ------------------------"
	@acs2d
	$echo "-------------------  ACSREJ  ------------------------"
	@acsrej
	$echo "-------------------  ACSSUM  ------------------------"
	@acssum
	;
