#################################################################
#
# The software provided here is released by the National
# Institute of Standards and Technology (NIST), an agency of
# the U.S. Department of Commerce, Gaithersburg MD 20899,
# USA.  The software bears no warranty, either expressed or
# implied. NIST does not assume legal liability nor
# responsibility for a User's use of the software or the
# results of such use.
#
# Please note that within the United States, copyright
# protection, under Section 105 of the United States Code,
# Title 17, is not available for any work of the United
# 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 FS-TST 2.0 Forensic Software Testing Support Tools
#
# Author: Kelsey Rider, NIST/SDCT June 2004
#
#################################################################

ADJCMP_FILES = adjcmp.c zbios.o
CORRUPT_FILES = corrupt.c zbios.o
DISKCHG_FILES = diskchg.c zbios.o
DISKCMP_FILES = diskcmp.c zbios.o
DISKWIPE_FILES = diskwipe.c zbios.o
LOGCASE_FILES = logcase.c zbios.o
LOGSETUP_FILES = logsetup.c zbios.o
PARTAB_FILES = partab.c zbios.o
PARTCMP_FILES = partcmp.c zbios.o
SECCMP_FILES = seccmp.c zbios.o

CFLAGS = -D_FILE_OFFSET_BITS=64

ALL_BINARIES = adjcmp corrupt diskchg diskcmp diskwipe logcase logsetup partab partcmp seccmp

# Make targets
all: $(ALL_BINARIES)
clean:
	rm $(ALL_BINARIES) *.o

# Individual rules
XX = $(CC) $(CFLAGS) zbios.o $@.c -o $@

zbios.o : zbios.c zbios.h
adjcmp : $(ADJCMP_FILES)
	$(XX)
corrupt : $(CORRUPT_FILES)
	$(XX)
diskchg : $(DISKCHG_FILES)
	$(XX)
diskcmp: $(DISKCMP_FILES)
	$(XX)
diskwipe : $(DISKWIPE_FILES)
	$(XX)
logcase : $(LOGCASE_FILES)
	$(XX)
logsetup : $(LOGSETUP_FILES)
	$(XX)
partab : $(PARTAB_FILES)
	$(XX)
partcmp : $(PARTCMP_FILES)
	$(XX)
seccmp : $(SECCMP_FILES)
	$(XX)
