diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-08-11 01:23:29 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-08-11 01:23:29 +0000 |
commit | 84866232d9644a02d613e11710d0f3abe8c7a66e (patch) | |
tree | a049bcdec016a50126beb40941fc786aa4a8b150 /libc/string/Makefile | |
parent | 3973dd83bfc875c6ec2d71b99f17e72b578d517d (diff) |
Yet more updates. Getting closer....
-Erik
Diffstat (limited to 'libc/string/Makefile')
-rw-r--r-- | libc/string/Makefile | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/libc/string/Makefile b/libc/string/Makefile index b190adb0f..35c09565c 100644 --- a/libc/string/Makefile +++ b/libc/string/Makefile @@ -4,28 +4,29 @@ TOPDIR=../ include $(TOPDIR)Rules.make +LIBC=$(TOPDIR)libc.a -LIBC=../libc.a +MSRC=string.c +MOBJ=strlen.o strcat.o strcpy.o strcmp.o strncat.o strncpy.o strncmp.o \ + strchr.o strrchr.o strdup.o memcpy.o memccpy.o memchr.o memset.o \ + memcmp.o memmove.o movedata.o +CFILES=strpbrk.c strsep.c strstr.c strtok.c strcspn.c \ + strspn.c strcasecmp.c strncasecmp.c config.c +COBJS=$(patsubst %.c,%.o, $(CFILES)) -SSRC=string.c -SOBJ=strlen.o strcat.o strcpy.o strcmp.o strncat.o strncpy.o strncmp.o \ - strchr.o strrchr.o strdup.o memcpy.o memccpy.o memchr.o memset.o \ - memcmp.o memmove.o movedata.o -OBJ=strpbrk.o strsep.o strstr.o strtok.o strcspn.o \ - strspn.o strcasecmp.o strncasecmp.o config.o +all: $(COBJS) $(MOBJ) $(LIBC) -all: $(LIBC) +$(COBJS): $(CFILES) + $(CC) $(CFLAGS) -c $*.c -o $@ -$(LIBC): $(LIBC)($(SOBJ)) $(OBJ) +$(MOBJ): $(MSRC) + $(CC) $(CFLAGS) -DL_$* -c $(MSRC) -o $@ -$(LIBC)($(SOBJ)): $(SSRC) - $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o - $(AR) $(ARFLAGS) $@ $*.o - -transfer: - -@rm -f ../include/string.h - cp -p string.h ../include/. +$(LIBC): $(COBJS) $(MOBJ) + $(AR) $(ARFLAGS) $(LIBC) $(COBJS) $(MOBJ) clean: rm -f *.o + + |