diff options
Diffstat (limited to 'libc/string')
-rw-r--r-- | libc/string/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libc/string/Makefile b/libc/string/Makefile index d8d65fa3d..171970c9a 100644 --- a/libc/string/Makefile +++ b/libc/string/Makefile @@ -32,15 +32,20 @@ MOBJ=strlen.o strcat.o strcpy.o strcmp.o strncat.o strncpy.o strncmp.o \ CSRC=strpbrk.c strsep.c strstr.c strtok.c strcspn.c \ config.c strspn.c strcasecmp.c strncasecmp.c COBJS=$(patsubst %.c,%.o, $(CSRC)) +OBJS=$(MOBJ) $(COBJS) -all: $(MOBJ) $(COBJS) $(LIBC) +all: $(OBJS) $(LIBC) -$(LIBC): $(MOBJ) $(COBJS) - $(AR) $(ARFLAGS) $(LIBC) $(MOBJ) $(COBJS) +$(LIBC): ar-target + +ar-target: $(OBJS) + $(AR) $(ARFLAGS) $(LIBC) $(OBJS) $(MOBJ): $(MSRC) $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o +$(OBJS): Makefile + clean: rm -f *.[oa] *~ core |