# $Source: /hpux/shared/supp//usr/src/cmd/ftio/./makefile,v $
# $Revision: 78.1 $

#----------------------------------------------------------------------------#
#									     #
# Ftio Makefile.							     #
#									     #
# David Williams,							     #
# Hewlett-Packard Australian Software Operation.			     #
#----------------------------------------------------------------------------#
#									     #
#  Notes:								     #
#	Building FTIO requires that the BSDmtio.h include file is available  #
#	during the build.  The version of BSDmtio.h can be acquired from the #
#	command 'dump'.  This makefile assumes that the file is located in   #
#	the relative directory of '../dump'.				     #
#

CLDFLAGS=	-Wl,-M8192 
INCLUDES=	-I../dump
FLAGS   =	-D_LARGE_UIDS -D__STDC_EXT__

SRCS    =       hpux_rel.c main.c fileloader.c filewriter.c tapereader.c\
		tapewriter.c chgreel.c misc.c search.c ftio_mesg.c\
		header.c ipc.c device.c ftio_grep.c

SRC1	=	ftio_rmt.c

OBJS    =       $(SRCS:.c=.o)

OBJ1	=	$(SRC1:.c=.o)

HDRS	=	define.h f_struct.h ftio.h ftio_mesg.h ../dump/BSDmtio.h


default: ftio

metrics: ftio.M

ftio:   $(OBJS)
	$(CC) -c -I../dump $(FLAGS) $(CFLAGS) ftio_rmt.c
	$(CC) -I../dump $(FLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(OBJ1)

ftio.M:   $(SRCS)
	$(METRICS) -I../dump $(CFLAGS) ftio_rmt.c -o $@ $(SRCS) $(SRC1)

clean:
	rm -f $(OBJS) $(OBJ1)

clobber: 	clean
	rm -f ftio a.out ftio.M
