# $Copyright:	$
# Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989, 1990 
# Sequent Computer Systems, Inc.   All rights reserved.
#  
# This software is furnished under a license and may be used
# only in accordance with the terms of that license and with the
# inclusion of the above copyright notice.   This software may not
# be provided or otherwise made available to, or used by, any
# other person.  No title to or ownership of the software is
# hereby transferred.
#	Copyright (c) 1986 AT&T
#	  All Rights Reserved

#	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
#	The copyright notice above does not evidence any
#	actual or intended publication of such source code.

#ident	"$Header: makefile 1.2 89/10/30 $@(#)libw-port:wstring/makefile	1.0"
#
# makefile for libw/port/wstring
#
#

.SUFFIXES: .p
CC=cc
CFLAGS= -O
PROF=
NONPROF=
ROOT=
INC=$(ROOT)/usr/include
INCSYS=$(ROOT)/usr/include/sys
INCLIBW= ../../inc
DEFLIST=
SDEFLIST=
INCLIST=-I$(INCLIBW)

OBJECTS=\
strtows.o   wscat.o     wschr.o     wscmp.o	\
wscpy.o     wscspn.o    wslen.o     wsncat.o	\
wsncmp.o    wsncpy.o    wsntostr.o  wspbrk.o	\
wsrchr.o    wssize.o    wsspn.o     wstok.o	\
wstostr.o   wsntostr.o

POBJECTS=\
strtows.p   wscat.p     wschr.p     wscmp.p	\
wscpy.p     wscspn.p    wslen.p     wsncat.p	\
wsncmp.p    wsncpy.p    wsntostr.p  wspbrk.p	\
wsrchr.p    wssize.p    wsspn.p     wstok.p	\
wstostr.p   wsntostr.p

nonprof: $& $(OBJECTS)

prof: $& $(POBJECTS)

.c.o .c.p:
	$(NONPROF)@echo \\t $*.c:
	$(NONPROF)$(CC) $(DEFLIST) $(SDEFLIST) $(INCLIST) $(CFLAGS) -c $*.c
	$(PROF)@echo \\t $*.c:
	$(PROF)$(CC) $(DEFLIST) $(INCLIST) $(CFLAGS) -c -p $*.c   && mv $(*F).o $*.p
strtows.o strtows.p \
	wscat.o wscat.p wschr.o wschr.p	\
	wscmp.o wscmp.p wscpy.o wscpy.p \
	wscspn.o wscspn.p wslen.o wslen.p \
	wsncat.o wsncat.p wsncmp.o wsncmp.p \
	wsncpy.o wsncpy.p wsntostr.o wsntostr.p \
	wspbrk.o wspbrk.p wsrchr.o wsrchr.p \
	wssize.o wssize.p wsspn.o wsspn.p \
	wstok.o wstok.p \
	wstostr.o wstostr.p: $(INC)/widec.h
strtows.o strtows.p wsntostr.o wsntostr.p \
	wstostr.o wstostr.p \
	wssize.o wssize.p: $(INCLIBW)/libw_pcode.h
strtows.o wssize.o \
	wsntostr.o wstostr.o: $(INCLIBW)/shlib.h
