# Makefile of /libc/string module

COMPILER ?= ia16
LIB ?= out.a

include $(TOPDIR)/libc/$(COMPILER).inc

OBJS = \
	bzero.o \
	memccpy.o \
	memchr.o \
	memcmp.o \
	memcpy-c.o \
	memmove.o \
	memset-c.o \
	fmemset-c.o \
	strcasecmp.o \
	strcat.o \
	strchr.o \
	strcmp-c.o \
	strcspn.o \
	strcpy-c.o \
	strdup.o \
	strlen-c.o \
	strncasecmp.o \
	strncat.o \
	strncmp.o \
	strncpy.o \
	strpbrk.o \
	strrchr.o \
	strspn.o \
	strstr.o \
	strtok.o \
	strlwr.o \
	strupr.o \
	# end of list

.PHONY: all

all: $(LIB)

$(LIB): $(LIBOBJS)
	$(RM) $@
	$(AR) $(ARFLAGS_SUB) $@ $(LIBOBJS)

clean:
	$(RM) *.[aod]
