# acssum
# <c_iraf.h> is included in 'acssum.h' in order to define IRAFPointer 

$call update
$exit

devdebug:
	$set XFLAGS = "-Inolibc  -g -q $(XFLAGS)"
	$set LFLAGS = "-H -z -x -p tables -p stsdas"
	$call updatedir
	$call installdev
	$exit
	;		
	
dev:
	$set XFLAGS = "-Inolibc $(XFLAGS)"
# Next line contains flag for creating code that contains profile info
#	$set XFLAGS = "-Inolibc -/p $(XFLAGS)"
	$set LFLAGS = "-H -z -p tables -p stsdas $(LFLAGS)"
	$call updatedir
	$call installdev
	;

debug:
	$set XFLAGS = "-Inolibc  -g -q $(XFLAGS)"
	$set LFLAGS = "-H -z -x -p tables -p stsdas"
	$call updatedir
	$call install
	$exit
	;		
	
update:
	$set XFLAGS = "-Inolibc $(XFLAGS)"
	$set LFLAGS = "-H -z -p tables -p stsdas $(LFLAGS)"
	$call updatedir
	$call install
	;

updatedir:
	$checkout calacs.a ../
	$update calacs.a
	$checkin calacs.a ../

	$call relink
	;

linkonly:
	$set XFLAGS = "-Inolibc $(XFLAGS)"
# Next line contains flag for creating code that contains profile info
#	$set XFLAGS = "-Inolibc -/p $(XFLAGS)"
	$set LFLAGS = "-H -z -p tables -p stsdas $(LFLAGS)"

relink:

	$omake mainsum.c <c_iraf.h> ../acs.h acssum.h ../acserr.h

	$link mainsum.o ../calacs.a -lhstio -lcvos\
		-o acssum.e
	;
#		-/p\

installdev:
#	$move acssum.e /data/xena1/calacs/bin/
    ;
    
install:
	$move acssum.e stsdasbin$
	;

calacs.a:
	acssum.c	../acs.h acssum.h ../acserr.h
	;
