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

#
# Makefile for units(1)
#
# This makefile is necessary so that the version number (as per
# hpux_rel.c) is updated if unittab is changed, and so unittab gets
# named properly.
#

default: all

all: units unittab

metrics: units.M

units:	units.c
	$(CC) $(CFLAGS) $(LDFLAGS) -o units units.c hpux_rel.c

units.M:	units.c
	$(METRICS) $(CFLAGS) -o units.M units.c hpux_rel.c

inittab: unittab.sh
	cp unittab.sh unittab

clean:
	rm -f units.o hpux_rel.o

clobber: clean
	rm -f units unittab units.M
