##################################################################

# configuration:

# compiler options:
OPTIONS=-O

# Where to install object file:
OBJDIR=$(HOME)/lib/$(CPUTYPE)

# Path of man directory:
MANPATH=$(HOME)/man

# Extension to use for manual page
MANEXT=3

# Complete manual directory pathname; comment this out to thwart
# manual page installation
MANDIR=$(MANPATH)/man$(MANEXT)

# Copy command to use during installation
CP=ln

##################################################################

SHELL=/bin/sh

CFLAGS=$(OPTIONS)

INSTALL=instl -cp '$(CP)'

MAKEFILE = Makefile

SRCS = strtokq.c

strtokq.o:
	cc -c $(CFLAGS) -o strtokq.o strtokq.c

stest:		strtokq.c
	cc $(CFLAGS) -o stest -DSTRTOKQ_STANDALONE strtokq.c

strtokq.$(MANEXT):	strtokq.man
	$(CP) strtokq.man strtokq.$(MANEXT)

install:	install_obj install_man

install_obj:	strtokq.o
	$(INSTALL) '$(OBJDIR)' strtokq.o

install_man:	strtokq.$(MANEXT)
	$(INSTALL) '$(MANDIR)' strtokq.$(MANEXT)

clean:
	/bin/rm -f *.o *~ #*# ;

veryclean:
	/bin/rm -f *.o *~ strtokq.$(MANEXT) #*# ;

distclean:	veryclean

depend:
	mkdep $(MAKEFILE) $(SRCS)

# BEGIN DEPENDENCY LIST

strtokq.o: strtokq.c
