2000-02-18 03:39:52 +08:00
|
|
|
## Process this file with automake to generate Makefile.in
|
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = cygnus
|
|
|
|
|
|
|
|
INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
|
|
|
|
|
2002-08-27 02:56:09 +08:00
|
|
|
GENERAL_SOURCES = \
|
2000-02-18 03:39:52 +08:00
|
|
|
bcopy.c \
|
|
|
|
bzero.c \
|
|
|
|
index.c \
|
|
|
|
memchr.c \
|
|
|
|
memcmp.c \
|
|
|
|
memcpy.c \
|
|
|
|
memmove.c \
|
|
|
|
memset.c \
|
|
|
|
rindex.c \
|
2002-08-27 02:56:09 +08:00
|
|
|
strcasecmp.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
strcat.c \
|
|
|
|
strchr.c \
|
|
|
|
strcmp.c \
|
|
|
|
strcoll.c \
|
|
|
|
strcpy.c \
|
|
|
|
strcspn.c \
|
2002-07-24 05:38:00 +08:00
|
|
|
strdup.c \
|
|
|
|
strdup_r.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
strerror.c \
|
2002-05-25 07:44:39 +08:00
|
|
|
strerror_r.c \
|
2002-05-14 03:33:01 +08:00
|
|
|
strlcat.c \
|
|
|
|
strlcpy.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
strlen.c \
|
|
|
|
strlwr.c \
|
2002-08-27 02:56:09 +08:00
|
|
|
strncasecmp.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
strncat.c \
|
|
|
|
strncmp.c \
|
|
|
|
strncpy.c \
|
2002-05-25 07:44:39 +08:00
|
|
|
strnlen.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
strpbrk.c \
|
|
|
|
strrchr.c \
|
2002-05-24 08:13:57 +08:00
|
|
|
strsep.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
strspn.c \
|
|
|
|
strtok.c \
|
|
|
|
strtok_r.c \
|
|
|
|
strupr.c \
|
|
|
|
strxfrm.c \
|
|
|
|
strstr.c \
|
2000-03-08 11:46:01 +08:00
|
|
|
swab.c \
|
2002-08-30 03:38:25 +08:00
|
|
|
u_strerr.c \
|
|
|
|
wcscat.c \
|
|
|
|
wcschr.c \
|
|
|
|
wcscmp.c \
|
2003-04-03 16:26:07 +08:00
|
|
|
wcscoll.c \
|
2002-08-30 03:38:25 +08:00
|
|
|
wcscpy.c \
|
|
|
|
wcscspn.c \
|
|
|
|
wcslcat.c \
|
|
|
|
wcslcpy.c \
|
|
|
|
wcslen.c \
|
|
|
|
wcsncat.c \
|
|
|
|
wcsncmp.c \
|
|
|
|
wcsncpy.c \
|
2003-10-24 02:07:13 +08:00
|
|
|
wcsnlen.c \
|
2002-08-30 03:38:25 +08:00
|
|
|
wcspbrk.c \
|
|
|
|
wcsrchr.c \
|
|
|
|
wcsspn.c \
|
|
|
|
wcsstr.c \
|
2003-04-09 18:42:12 +08:00
|
|
|
wcswidth.c \
|
|
|
|
wcwidth.c \
|
2002-08-30 03:38:25 +08:00
|
|
|
wmemchr.c \
|
|
|
|
wmemcmp.c \
|
|
|
|
wmemcpy.c \
|
|
|
|
wmemmove.c \
|
|
|
|
wmemset.c
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2002-08-27 02:56:09 +08:00
|
|
|
if ELIX_LEVEL_1
|
|
|
|
LIB_OBJS =
|
|
|
|
else
|
|
|
|
LIB_OBJS = \
|
|
|
|
bcmp.$(oext) \
|
|
|
|
memccpy.$(oext) \
|
|
|
|
mempcpy.$(oext) \
|
|
|
|
strndup.$(oext) \
|
|
|
|
strndup_r.$(oext)
|
|
|
|
endif
|
|
|
|
|
2001-12-14 07:50:11 +08:00
|
|
|
libstring_la_LDFLAGS = -Xcompiler -nostdlib
|
|
|
|
|
|
|
|
if USE_LIBTOOL
|
|
|
|
noinst_LTLIBRARIES = libstring.la
|
2002-08-27 02:56:09 +08:00
|
|
|
libstring_la_SOURCES = $(GENERAL_SOURCES)
|
|
|
|
libstring_la_LIBADD = $(LIB_OBJS)
|
|
|
|
libstring_la_DEPENDENCIES = $(LIB_OBJS)
|
2001-12-14 07:50:11 +08:00
|
|
|
noinst_DATA = objectlist.awk.in
|
|
|
|
else
|
|
|
|
noinst_LIBRARIES = lib.a
|
2002-08-27 02:56:09 +08:00
|
|
|
lib_a_SOURCES = $(GENERAL_SOURCES)
|
|
|
|
lib_a_LIBADD = $(LIB_OBJS)
|
|
|
|
lib_a_DEPENDENCIES = $(LIB_OBJS)
|
2001-12-14 07:50:11 +08:00
|
|
|
noinst_DATA =
|
|
|
|
endif # USE_LIBTOOL
|
|
|
|
|
|
|
|
include $(srcdir)/../../Makefile.shared
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
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 \
|
2000-03-08 11:46:01 +08:00
|
|
|
index.def rindex.def strcspn.def strpbrk.def swab.def \
|
2002-05-25 07:44:39 +08:00
|
|
|
memchr.def strcat.def strerror.def strerror_r.def strrchr.def \
|
|
|
|
memcmp.def strchr.def strlen.def strnlen.def strspn.def \
|
2002-07-24 05:38:00 +08:00
|
|
|
strcasecmp.def strncasecmp.def strlwr.def strupr.def memccpy.def \
|
2002-08-30 03:38:25 +08:00
|
|
|
mempcpy.def \
|
2003-04-03 16:26:07 +08:00
|
|
|
wcscat.def wcschr.def wcscmp.def wcscoll.def \
|
2003-10-24 02:07:13 +08:00
|
|
|
wcscpy.def wcscspn.def \
|
|
|
|
wcslcat.def wcslcpy.def wcslen.def wcsncat.def \
|
|
|
|
wcsncmp.def wcsncpy.def wcsnlen.def wcspbrk.def \
|
|
|
|
wcsrchr.def wcsspn.def wcsstr.def \
|
|
|
|
wcswidth.def wcwidth.def wmemchr.def \
|
|
|
|
wmemcmp.def wmemcpy.def wmemmove.def wmemset.def
|
2000-02-18 03:39:52 +08:00
|
|
|
|
|
|
|
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)
|
2002-08-30 03:47:43 +08:00
|
|
|
cat $(srcdir)/wcstrings.tex >> $(TARGETDOC)
|
2000-02-18 03:39:52 +08:00
|
|
|
|
|
|
|
CLEANFILES = $(CHEWOUT_FILES) *.ref
|