##########################################################################
# (C) Copyright 1991 X/Open Company Limited
#
# All rights reserved.  No part of this source code may be reproduced,
# stored in a retrieval system, or transmitted, in any form or by any
# means, electronic, mechanical, photocopying, recording or otherwise,
# except as stated in the end-user licence agreement, without the prior
# permission of the copyright owners.
#
# X/Open and the 'X' symbol are trademarks of X/Open Company Limited in
# the UK and other countries.
#
#	SCCS:	@(#)ANSI.os/string/strspn/Makefile	Rel 4.4.1 (06/09/97)
#
#	PROJECT:	VSX
#	PRODUCT:	ANSI.os/string/strspn
#	AUTHOR:		Mike Rendell, UniSoft Ltd.
#	DATE CREATED:	Thu Nov 13 16:33:13 WET 1986
#	TARGETS:	T.strspn
##########################################################################

CC =	cc
RM =		rm -f
LINT =	lint
LINT1 =		/usr/lib/lint1
# This is a working lint in the top level testset directory
PRINTER =	lpr
PRINTFLAGS =	
TET_EXECUTE =	../../../../TESTROOT

TET_ROOT =	../../../../..
VSXDIR =	../../../../SRC
SYSINC =	$(VSXDIR)/SYSINC
SYSLIBS =

VSXINC =	$(VSXDIR)/INC
VSXLIB =	$(VSXDIR)/LIB
VSXBIN =	$(VSXDIR)/BIN
LIBVPORT =	$(VSXLIB)/vport.a
CHMOG =	$(VSXBIN)/chmog
GENLIB =	$(VSXLIB)/genlib.a

# What is installed:

INSTOWN =	vsx0
INSTGRP =	vsxg0
INSTMODE =	755
INSTDIR =	$(TET_EXECUTE)/tset/ANSI.os/string/strspn

# Local (to this product only) includes, libraries, etc:

LOCALINC =
LOCALLIB =	

# product-wide libraries for ld(1):

LIBS =		 $(GENLIB) $(VSXLIB)/vlib.a $(LIBVPORT) $(APILIB)

DBUG =	
COPTS =	
SDBFLAG =	
DEFINES =	

# INCS, as seen from obj directory
INCS =		-I$(TETINC) -I$(VSXINC) -I$(SYSINC)
CFLOCAL =
CFLAGS =	$(CFLOCAL) $(INCS) $(DEFINES) $(DBUG) $(COPTS) $(SDBFLAG)
LDFLAGS =	

CFILES =	strspn.c
OFILES =	strspn.o
IFILES =	
LFILES =	

LINTFLAGS =	$(INCS) $(DEFINES) -n
LINTLIBS =	-lvsx -lvlib -lgen -ltset -lvport
LINTDRV =	$(VSXDIR)/common/tet_startup/startup.c

# Targets: ---------------------------------------------------------

all:		T.strspn

strspn:		T.strspn

T.strspn:	$(OFILES) $(TCM) $(VSXLIB)/startup.o $(LIBS)
		$(CC) $(LDFLAGS) -o $@ $(OFILES) $(TCM) $(VSXLIB)/startup.o $(LIBS) $(SYSLIBS) 
		@echo "	$@ made"

$(LIBS):
	-@echo "Warning: cannot continue making: $@ needs to be installed"
		@false

INSTALL:		$(INSTDIR)/T.strspn

$(INSTDIR)/T.strspn:	T.strspn
		$(CHMOG) $(INSTMODE) $(INSTOWN) $(INSTGRP) -m $? $@
		@echo " $? installed in $@"


LINTLIB:

LINT:
		$(LINT) $(LINTFLAGS) $(CFILES) $(LINTDRV) $(LTCM) $(LINTLIBS)

FORCE:		CLOBBER all

PRINT:
		@$(PRINTER) $(PRINTFLAGS) Makefile $(IFILES) $(CFILES)

CLEAN:
		$(RM) $(OFILES)

CLOBBER:	CLEAN
		$(RM) T.strspn $(INSTDIR)/T.strspn

depend:
	CFLAGS="$(CFLAGS)" CC="$(CC)" $(VSXBIN)/mkdep $(CFILES)

# DO NOT DELETE THIS LINE -- make depend uses it
# DEPENDENCIES MUST END AT END OF FILE
strspn.o:	  \
	../../../../SRC/INC/dbug.h  \
	../../../../SRC/INC/report.h  \
	../../../../SRC/INC/std.h  \
	../../../../SRC/INC/sysdep.h  \
	../../../../SRC/SYSINC/string.h  \
	../../../../SRC/SYSINC/sys/types.h 
# DEPENDENCIES MUST END AT END OF FILE
# IF YOU PUT STUFF HERE IT WILL GO AWAY
# see make depend above
