# Makefile for Amiga Linux lib source directory 
#
# Copyright 1993 by Hamish Macdonald
#
# This file is subject to the terms and conditions of the GNU General Public 
# License.  See the file "README.legal" in the main directory of this archive
# for more details.
 

KERNELHDRS = ../include
INCFLAGS   = -nostdinc -I$(KERNELHDRS)
CFLAGS=-Wall -DKERNEL -b linux $(INCFLAGS) -O2 -mc68020 -fomit-frame-pointer

OBJS  = bcopy.o memchr.o strcat.o strcspn.o strncpy.o strstr.o ctype.o \
	memcmp.o strchr.o strlen.o strpbrk.o strtok.o errno.o memcpy.o \
	strcmp.o strncat.o strrchr.o malloc.o memmove.o strcpy.o strncmp.o \
	strspn.o

lib.a: $(OBJS)
	ar ruv lib.a $(OBJS)
	ranlib lib.a

clean:
	$(RM) $(RMFLAGS) $(MAKEDIR)/*.o $(MAKEDIR)/*.a

dep:
	$(CPP) -M $(INCFLAGS) *.c > .depend

.INCLUDE .IGNORE: ".depend"
