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

# Common makefile for bs

OFILES = atof.o bs.o string.o hpux_rel.o
CFILES = atof.c bs.c string.c hpux_rel.c

default : bs

metrics : bs.M

bs: $(OFILES)
	$(CC) $(CFLAGS) $(LDFLAGS) -o bs $(OFILES) -lm

bs.M: $(CFILES)
	$(METRICS) $(CFLAGS) -o bs.M $(CFILES) -lm

atof.o: atof.c

bs.o: bs.c 

string.o: string.c

# 	The test target apparently tests the bs executable in some way.
#	Since the file "testall" is in shared source and someone might know
#	what it does, this target stays for now.
test:
	bs testall

clean:
	rm -f *.o

clobber: clean
	rm -f bs bs.M
