# $Header: makefile,v 72.3 92/12/18 16:50:00 ssa Exp $

# Common makefile for ident command of rcs utility

INC      = ../include
PFLAGS   = -I$(INC)
LIBS     = ../lib/librcs.a -lBUILD

default: all

all:	ident

metrics: ident.M

ident:	ident.o ../hpux_rel.o
	$(CC) $(LDFLAGS) ident.o ../hpux_rel.o $(LIBS) -o ident

ident.M:	ident.c ../hpux_rel.c
	$(METRICS) $(CFLAGS) $(PFLAGS) ident.c ../hpux_rel.c $(LIBS) -o ident.M

clean:		
	rm -f *.o 

clobber: clean
	rm -f ident

ident.o: $(INC)/system.h $(INC)/rcsbase.h

# Redefine the .c to .o rule as to include PFLAGS
.c.o:
	$(CC) $(CFLAGS) $(PFLAGS) -c $<
