#
# Makefile for string functions
#

include ../Makeconfig

include ../Makerules

LIB:=../$(LIB)
LIBALIAS:=../$(LIBALIAS)

JUMP_DIR:=../jump/$(SHLIB)
JUMP_LIB=libc

ifndef OPTFLAGS
OPTFLAGS= -O6 -fomit-frame-pointer
endif

CFLAGS = $(WFLAGS) $(OPTFLAGS) $(INC) $(XCFLAGS)
INC=-I. -I..

DIRS:=

SRC1S= __memccpy.c bcmp.c bcopy.c bzero.c ffs.c \
	memchr.c memcmp.c memcpy.c memfrob.c memmem.c memmove.c \
	memset.c strcasecmp.c strcat.c strchr.c strcmp.c \
	strcoll.c strcpy.c strcspn.c strdup.c strerror.c strfry.c \
	strlen.c strncscmp.c strncat.c strncmp.c strncpy.c \
	strpbrk.c strrchr.c strsep.c strsignal.c strspn.c \
	strstr.c strtok.c strxfrm.c swab.c
SRC2S= index.c memccpy.c rindex.c errlist.c siglist.c

SRCS= $(SRC1S) $(SRC2S)
ASMS= $(SRC1S:.c=.s) $(SRC2S:.c=.s)
OBJS= $(SRC1S:.c=.o)
ALIASES= $(SRC2S:.c=.o)

all: lib libalias

include ../Maketargets  
