CFLAGS	      =

DEST	      = .

EXTHDRS	      =

HDRS	      = psgraph3.h

INSTALL	      = cp

LD	      = $(CC)

LDFLAGS	      = -lm

LIBS	      =

MAKEFILE      = Makefile

OBJS	      = psgraph3.o \
		test.o

PRINT	      = pr

PROGRAM       = a.out

SHELL	      = /bin/sh

SRCS	      = psgraph3.c \
		test.c

SYSHDRS	      = /usr/include/machine/ansi.h \
		/usr/include/math.h \
		/usr/include/stdio.h \
		/usr/include/string.h \
		/usr/include/sys/cdefs.h

all:		$(PROGRAM)

$(PROGRAM):     $(OBJS) $(LIBS)
		@echo "Linking $(PROGRAM) ..."
		@$(LD) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
		@echo "done"

clean:;		@rm -f $(OBJS) core

clobber:;	@rm -f $(OBJS) $(PROGRAM) core tags

depend:;	@mkmf -f $(MAKEFILE)

echo:;		@echo $(HDRS) $(SRCS)

index:;		@ctags -wx $(HDRS) $(SRCS)

install:	$(PROGRAM)
		@echo Installing $(PROGRAM) in $(DEST)
		@-strip $(PROGRAM)
		@if [ $(DEST) != . ]; then \
		(rm -f $(DEST)/$(PROGRAM); $(INSTALL) $(PROGRAM) $(DEST)); fi

print:;		@$(PRINT) $(HDRS) $(SRCS)

tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
###
psgraph3.o: psgraph3.h /usr/include/stdio.h /usr/include/sys/cdefs.h \
	/usr/include/machine/ansi.h /usr/include/string.h /usr/include/math.h
test.o: psgraph3.h /usr/include/stdio.h /usr/include/sys/cdefs.h \
	/usr/include/machine/ansi.h /usr/include/string.h /usr/include/math.h
