# %Z% %M% Linux Version %I% created %G% at %U%
#
# States Government and/or for any works created by United
# States Government employees. User acknowledges that this
# software contains work which was created by NIST employees
# and is therefore in the public domain and not subject to
# copyright.  The User may use, distribute, or incorporate
# this software provided the User acknowledges this via an
# explicit acknowledgment of NIST-related contributions to
# the User's work. User also agrees to acknowledge, via an
# explicit acknowledgment, that any modifications or
# alterations have been made to this software before
# redistribution.
#
# Makefile for the NIST HWB Testing Support Tools
#
# Author: Benjamin Livelsberger, NIST May 2011
#
#################################################################

# sendSCSI       : sendSCSI.c cmd.o
# 	gcc -D_FILE_OFFSET_BITS=64  -o sendSCSI sendSCSI.c cmd.o	
# readSCSI       : readSCSI.c cmd.o
# 	gcc -D_FILE_OFFSET_BITS=64  -o readSCSI readSCSI.c cmd.o
# writeSCSI       : writeSCSI.c cmd.o
# 	gcc -D_FILE_OFFSET_BITS=64  -o writeSCSI writeSCSI.c cmd.o
# cmd.o      : cmd.c
#         gcc -D_FILE_OFFSET_BIS=64 -o cmd.o cmd.c
# sendSG         : sendSG.c
# 	gcc -D_FILE_OFFSET_BITS=64  -o sendSG sendSG.c 

ataraw.o	: ataraw.c ataraw.h
	gcc -Wall -I. -I.. -g -c -o ataraw.o ataraw.c
wrapper.o	: wrapper.c
	gcc -Wall -I. -I.. -g -c -o wrapper.o wrapper.c
try_read	: wrapper.o ataraw.o try_read.c
	gcc -Wall -I. -I.. -g -o try_read wrapper.o ataraw.o try_read.c
try_write	: wrapper.o ataraw.o try_write.c
	gcc -Wall -I. -I.. -g -o try_write wrapper.o ataraw.o try_write.c
write_mults	: wrapper.o ataraw.o try_write.c
	gcc -Wall -I. -I.. -g -o write_mults wrapper.o ataraw.o try_write.c
write_verify	: wrapper.o ataraw.o write_verify.c
	gcc -Wall -I. -I.. -g -o write_verify wrapper.o ataraw.o write_verify.c
drive_type	: wrapper.o ataraw.o drive_type.c
	gcc -Wall -I. -I.. -g -o drive_type wrapper.o ataraw.o drive_type.c