#ident "@(#)Makefile_sol	1.11 -- 01/16/95"
#
# Making DASM utilities on a Solaris host
#
#	Usage:	make -f Makefile_sol
#
#   11/28/94	imk		Added targets for Solaris 2.3 which requires the new
#						scsi driver using Sun Common System Architecture spec.
#						All new targets have suffix _scsa and are linked with 
#						scsi_scsa.o

all:		polldasm sc_new patch_new readlo_new rsp_new sta wrdasm \
			sense_dasm dread askcam getimage lastrace dlrtrace \
			sc_scsa rsp_scsa wrdasm_scsa sense_dasm_scsa readlo_scsa patch_scsa

lastrace:   lastrace.c fgrab.h scsi.o sutil.o
			$(CC) -o $@ -g lastrace.c scsi.o sutil.o

dlrtrace:   dlrtrace.c fgrab.h scsi.o sutil.o
			$(CC) -o $@ -g dlrtrace.c scsi.o sutil.o

getimage:   getimage.c fgrab.h scsi.o sutil.o
			$(CC) -o $@ -g getimage.c scsi.o sutil.o

askcam:	    askcam.c fgrab.h scsi.o sutil.o
			$(CC) -o $@ -g askcam.c scsi.o sutil.o

dread:		dread.c fgrab.h scsi.o sutil.o
			$(CC) -o $@ -g dread.c scsi.o sutil.o 

####
sc_scsa:	sc_new.c fgrab.h sc.h scsi_scsa.o sutil.o
			$(CC) -o $@ -g sc_new.c scsi_scsa.o sutil.o 

sc_new:		sc_new.c fgrab.h sc.h scsi.o sutil.o
			$(CC) -o $@ -g sc_new.c scsi.o sutil.o 

polldasm:   polldasm.c fgrab.h sc.h scsi.o sutil.o
			$(CC) -o $@ -g polldasm.c scsi.o sutil.o 

####
rsp_scsa:	rsp_new.c fgrab.h scsi_scsa.o sutil.o
			$(CC) -o $@ -g rsp_new.c scsi_scsa.o sutil.o 

rsp_new:	rsp_new.c fgrab.h scsi.o sutil.o
			$(CC) -o $@ -g rsp_new.c scsi.o sutil.o 

sta:			sta.c fgrab.h scsi.o sutil.o
			$(CC) -o $@ -g sta.c scsi.o sutil.o 
	
####
readlo_scsa:	readlo_new.c fgrab.h scsi_scsa.o sutil.o
			$(CC) -o $@ -g readlo_new.c scsi_scsa.o sutil.o 

readlo_new:		readlo_new.c fgrab.h scsi.o sutil.o
			$(CC) -o $@ -g readlo_new.c scsi.o sutil.o 
####
patch_scsa:		patch_new.c fgrab.h scsi_scsa.o sutil.o
			$(CC) -o $@ -g patch_new.c scsi_scsa.o sutil.o 

patch_new:		patch_new.c fgrab.h scsi.o sutil.o
			$(CC) -o $@ -g patch_new.c scsi.o sutil.o 

####
wrdasm_scsa:	wrdasm.c fgrab.h scsi_scsa.o sutil.o
			$(CC) -o $@ -g wrdasm.c scsi_scsa.o sutil.o 

wrdasm:	wrdasm.c fgrab.h scsi.o sutil.o
			$(CC) -o $@ -g wrdasm.c scsi.o sutil.o 

####
scsi_scsa.o:	scsi_scsa.c scsi.h dasm_def.h
			$(CC) -c -g -DSOLARIS scsi_scsa.c 

scsi.o:	scsi.c scsi.h
			$(CC) -c -g -DSOLARIS scsi.c 

sutil.o: sutil.c sc.h
			$(CC) -c -g sutil.c

# Sense a DASM
####
sense_dasm_scsa:	sense_dasm_scsa.c fgrab.h scsi_scsa.o
			$(CC) -o $@ -g sense_dasm_scsa.c scsi_scsa.o 

sense_dasm:		sense_dasm.c fgrab.h scsi.o
			$(CC) -o $@ -g sense_dasm.c scsi.o 

####
showdasm_scsa:	showdasm.c fgrab.h scsi_scsa.o
			$(CC) -o $@ -g showdasm.c scsi_scsa.o 

showdasm:		showdasm.c fgrab.h scsi.o
			$(CC) -o $@ -g showdasm.c scsi.o 

