OSDN Git Service

Many bugfixes, header cleanups, etc. Added abort and glob.
[uclinux-h8/uClibc.git] / libc / string / Makefile
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.
4
5 TOPDIR=../
6 include $(TOPDIR)Rules.make
7
8 LIBC=../libc.a
9
10 SSRC=string.c
11 SOBJ=strlen.o strcat.o strcpy.o strcmp.o strncat.o strncpy.o strncmp.o  \
12     strchr.o strrchr.o strdup.o memcpy.o memccpy.o memchr.o memset.o    \
13     memcmp.o memmove.o movedata.o
14
15 OBJ=$(SOBJ) strpbrk.o strsep.o strstr.o strtok.o strcspn.o      \
16     strspn.o strcasecmp.o strncasecmp.o config.o
17
18 all: $(LIBC)
19
20 $(LIBC): $(LIBC)($(OBJ))
21
22 $(LIBC)($(SOBJ)): $(SSRC)
23         $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
24         $(AR) $(ARFLAGS) $@ $*.o
25
26 transfer:
27         -@rm -f ../include/string.h
28         cp -p string.h ../include/.
29
30 clean:
31         rm -f *.o