#sccs	"@(#)libplot/t300s:Makefile	1.3"

include	$(MAKEINC)/Makepre.h

LIBNAME	= lib300s.a

OBJECTS = \
	arc.o\
	box.o\
	circle.o\
	close.o\
	dot.o\
	erase.o\
	label.o\
	line.o\
	linmod.o\
	move.o\
	open.o\
	point.o\
	space.o\
	subr.o

DEPENDLIST = arc.c \
	box.c \
	circle.c \
	close.c \
	dot.c \
	erase.c \
	label.c \
	line.c \
	linmod.c \
	move.c \
	open.c \
	point.c \
	space.c \
	subr.c

all:	Makeincludes $(LIBNAME)

Makeincludes: $(DEPENDLIST)
	$(INCCMD) $(DEPENDLIST) | $(SORT) | $(FILTER) > Makeincludes;\
	$(MAKE)

includes: $(DEPENDLIST)
	$(INCCMD) $(DEPENDLIST) | $(SORT) | $(FILTER) > Makeincludes

$(LIBNAME):	$(OBJECTS)
	rm -f $(LIBNAME)
	$(AR) cr $(LIBNAME) `$(LORDER) $(OBJECTS) | tsort`

install:
	$(INSTALL) -i$(EXITFLAG) $(LIBNAME) $(INSDIR) $(PROTOFILE)
	chown bin lib300s.a
	chgrp bin lib300s.a
	chmod 644 lib300s.a
	echo lib300s.a | cpio -pumv $(USRLIB)

clean:
	rm -f $(OBJECTS) 

clobber: clean
	rm -f $(LIBNAME)

populate:
	getunit

include Makeincludes
include	$(MAKEINC)/Makepost.h

