visor/libc/Makefile

54 lines
945 B
Makefile
Raw Normal View History

2025-03-16 01:29:52 +01:00
include ../config.mk
AR=ar
ARFLAGS=rcs
LIBC_OBJECTS= \
string/ffs.o \
string/ffsl.o \
string/ffsll.o \
string/memccpy.o \
string/memchr.o \
string/memcmp.o \
string/memcpy.o \
string/memmove.o \
string/memrchr.o \
string/memset.o \
string/stpcpy.o \
string/stpncpy.o \
string/strcat.o \
string/strchr.o \
string/strchrnul.o \
string/strcmp.o \
string/strcoll.o \
string/strcpy.o \
string/strcspn.o \
string/stresep.o \
string/strlcat.o \
string/strlcpy.o \
string/strlen.o \
string/strncat.o \
string/strncmp.o \
string/strncpy.o \
string/strnlen.o \
string/strpbrk.o \
string/strrchr.o \
string/strsep.o \
string/strspn.o \
string/strstr.o \
string/strtok_r.o \
string/strxfrm.o \
# end of source list
libc.a: $(LIBC_OBJECTS)
$(AR) $(ARFLAGS) $@ $(LIBC_OBJECTS)
.c.o: string.h
$(CC) $(CFLAGS) -c -o $@ $(@:.o=.c) $(CPPFLAGS)
clean:
rm -f $(LIBC_OBJECTS)
rm -f libc.a
.PHONY: clean