newlib-cygwin/newlib/libc/string/Makefile.am

102 lines
1.9 KiB
Makefile

## Process this file with automake to generate Makefile.in
AUTOMAKE_OPTIONS = cygnus
INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
GENERAL_SOURCES = \
bcopy.c \
bzero.c \
index.c \
memchr.c \
memcmp.c \
memcpy.c \
memmove.c \
memset.c \
rindex.c \
strcasecmp.c \
strcat.c \
strchr.c \
strcmp.c \
strcoll.c \
strcpy.c \
strcspn.c \
strdup.c \
strdup_r.c \
strerror.c \
strerror_r.c \
strlcat.c \
strlcpy.c \
strlen.c \
strlwr.c \
strncasecmp.c \
strncat.c \
strncmp.c \
strncpy.c \
strnlen.c \
strpbrk.c \
strrchr.c \
strsep.c \
strspn.c \
strtok.c \
strtok_r.c \
strupr.c \
strxfrm.c \
strstr.c \
swab.c \
u_strerr.c
if ELIX_LEVEL_1
LIB_OBJS =
else
LIB_OBJS = \
bcmp.$(oext) \
memccpy.$(oext) \
mempcpy.$(oext) \
strndup.$(oext) \
strndup_r.$(oext)
endif
libstring_la_LDFLAGS = -Xcompiler -nostdlib
if USE_LIBTOOL
noinst_LTLIBRARIES = libstring.la
libstring_la_SOURCES = $(GENERAL_SOURCES)
libstring_la_LIBADD = $(LIB_OBJS)
libstring_la_DEPENDENCIES = $(LIB_OBJS)
noinst_DATA = objectlist.awk.in
else
noinst_LIBRARIES = lib.a
lib_a_SOURCES = $(GENERAL_SOURCES)
lib_a_LIBADD = $(LIB_OBJS)
lib_a_DEPENDENCIES = $(LIB_OBJS)
noinst_DATA =
endif # USE_LIBTOOL
include $(srcdir)/../../Makefile.shared
CHEWOUT_FILES=\
bcmp.def memcpy.def strcmp.def strncat.def strstr.def \
bcopy.def memmove.def strcoll.def strncmp.def strtok.def \
bzero.def memset.def strcpy.def strncpy.def strxfrm.def \
index.def rindex.def strcspn.def strpbrk.def swab.def \
memchr.def strcat.def strerror.def strerror_r.def strrchr.def \
memcmp.def strchr.def strlen.def strnlen.def strspn.def \
strcasecmp.def strncasecmp.def strlwr.def strupr.def memccpy.def \
mempcpy.def
SUFFIXES = .def
CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str
.c.def:
$(CHEW) < $< > $*.def 2> $*.ref
touch stmp-def
TARGETDOC = ../tmp.texi
doc: $(CHEWOUT_FILES)
cat $(srcdir)/strings.tex >> $(TARGETDOC)
CLEANFILES = $(CHEWOUT_FILES) *.ref