#
# |-----------------------------------------------------------|
# | Copyright (c) 1990 MIPS Computer Systems, Inc.            |
# | All Rights Reserved                                       |
# |-----------------------------------------------------------|
# |          Restricted Rights Legend                         |
# | Use, duplication, or disclosure by the Government is      |
# | subject to restrictions as set forth in                   |
# | subparagraph (c)(1)(ii) of the Rights in Technical        |
# | Data and Computer Software Clause of DFARS 52.227-7013.   |
# |         MIPS Computer Systems, Inc.                       |
# |         928 Arques Avenue                                 |
# |         Sunnyvale, CA 94086                               |
# |-----------------------------------------------------------|
#
# $Header: Makefile,v 1.1.2.1 92/06/24 14:11:06 marker Exp $

SHELL	=/bin/sh
ETCDIR	=/etc

DESTROOT=

MAXOPT	=-O2
INCLUDE	=-I../../inc
CFLAGS	=$(GNUM) -systype svr3 $(MAXOPT) $(INCLUDE) $(ECFLAGS)
ASFLAGS =$(GNUM) -systype svr3 $(EASFLAGS)
LFLAGS	=$(ELFLAGS)
YFLAGS	=$(EYFLAGS)

AR = ar
ARFLAGS	=crs

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

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

HDRS	=

WHOAMI	=libw_wstring.port.a
INTEGDIR=../../libw

all install: $(INTEGDIR)/$(WHOAMI)

$(INTEGDIR)/$(WHOAMI): $(WHOAMI)
	-rm -f $(INTEGDIR)/$(WHOAMI)
	cp $(WHOAMI) $(INTEGDIR)

$(WHOAMI): $(OBJS)
	-rm -f $(WHOAMI)
	$(AR) $(ARFLAGS) $(WHOAMI) $(OBJS)

clean:
	-rm -f $(OBJS)

clobber: clean
	-rm -f $(WHOAMI)

generic:
	$(GENERIC) -s $(SRCS) -h $(HDRS) -o $(OBJS) -p $(WHOAMI) \
		$(INCLUDE) -R$(DESTROOT) -D$(INTEGDIR)
