1 # Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk>
2 # This file is part of the Linux-8086 C library and is distributed
3 # under the GNU Library General Public License.
11 CCFLAGS= -O2 $(CPUFLAGS) -I../include
14 SOBJ=strlen.o strcat.o strcpy.o strcmp.o strncat.o strncpy.o strncmp.o \
15 strchr.o strrchr.o strdup.o memcpy.o memccpy.o memchr.o memset.o \
16 memcmp.o memmove.o movedata.o
18 OBJ=$(SOBJ) strpbrk.o strsep.o strstr.o strtok.o strcspn.o \
19 strspn.o strcasecmp.o strncasecmp.o config.o
21 CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
26 $(LIBC): $(LIBC)($(OBJ))
28 $(LIBC)($(SOBJ)): $(SSRC)
29 $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
30 $(AR) $(ARFLAGS) $@ $*.o
33 -@rm -f ../include/string.h
34 cp -p string.h ../include/.