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 = \
|
2008-11-01 05:03:42 +08:00
|
|
|
closedir.c collate.c collcmp.c creat.c \
|
|
|
|
fnmatch.c glob.c _isatty.c isatty.c \
|
2008-11-25 04:11:42 +08:00
|
|
|
opendir.c readdir.c readdir_r.c \
|
2008-11-01 05:03:42 +08:00
|
|
|
regcomp.c regerror.c regexec.c regfree.c \
|
|
|
|
rewinddir.c sleep.c usleep.c \
|
2006-06-06 04:19:55 +08:00
|
|
|
telldir.c
|
2002-08-27 02:56:09 +08:00
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
ELIX_2_SOURCES = \
|
|
|
|
scandir.c seekdir.c
|
2002-08-27 02:56:09 +08:00
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
ELIX_3_SOURCES = \
|
|
|
|
execl.c execle.c execlp.c execv.c \
|
2008-11-01 05:03:42 +08:00
|
|
|
execve.c execvp.c wordexp.c wordfree.c
|
2002-08-27 02:56:09 +08:00
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
ELIX_4_SOURCES = \
|
2013-10-02 02:08:46 +08:00
|
|
|
popen.c posix_spawn.c
|
2002-08-27 02:56:09 +08:00
|
|
|
|
|
|
|
if ELIX_LEVEL_1
|
2006-05-02 06:01:07 +08:00
|
|
|
ELIX_SOURCES =
|
2002-08-27 02:56:09 +08:00
|
|
|
else
|
|
|
|
if ELIX_LEVEL_2
|
2006-05-02 06:01:07 +08:00
|
|
|
ELIX_SOURCES = $(ELIX_2_SOURCES)
|
2002-08-27 02:56:09 +08:00
|
|
|
else
|
|
|
|
if ELIX_LEVEL_3
|
2006-05-02 06:01:07 +08:00
|
|
|
ELIX_SOURCES = $(ELIX_2_SOURCES) $(ELIX_3_SOURCES)
|
2002-08-27 02:56:09 +08:00
|
|
|
else
|
2006-05-02 06:01:07 +08:00
|
|
|
ELIX_SOURCES = $(ELIX_2_SOURCES) $(ELIX_3_SOURCES) $(ELIX_4_SOURCES)
|
2002-08-27 02:56:09 +08:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2001-12-14 07:50:11 +08:00
|
|
|
libposix_la_LDFLAGS = -Xcompiler -nostdlib
|
|
|
|
|
|
|
|
if USE_LIBTOOL
|
|
|
|
noinst_LTLIBRARIES = libposix.la
|
2006-05-02 06:01:07 +08:00
|
|
|
libposix_la_SOURCES = $(GENERAL_SOURCES) $(ELIX_SOURCES)
|
2001-12-14 07:50:11 +08:00
|
|
|
noinst_DATA = objectlist.awk.in
|
|
|
|
else
|
|
|
|
noinst_LIBRARIES = lib.a
|
2006-05-02 06:01:07 +08:00
|
|
|
lib_a_SOURCES = $(GENERAL_SOURCES) $(ELIX_SOURCES)
|
2006-04-12 03:02:16 +08:00
|
|
|
lib_a_CFLAGS = $(AM_CFLAGS)
|
2001-12-14 07:50:11 +08:00
|
|
|
noinst_DATA =
|
|
|
|
endif # USE_LIBTOOL
|
|
|
|
|
|
|
|
include $(srcdir)/../../Makefile.shared
|
|
|
|
|
2009-08-19 00:43:21 +08:00
|
|
|
CHEWOUT_FILES = \
|
2015-06-23 21:35:00 +08:00
|
|
|
popen.def \
|
|
|
|
posix_spawn.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
|
|
|
|
|
2009-08-19 00:43:21 +08:00
|
|
|
doc: $(CHEWOUT_FILES)
|
|
|
|
cat $(srcdir)/posix.tex >> $(TARGETDOC)
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2008-11-01 05:03:42 +08:00
|
|
|
AM_CFLAGS = -D_GNU_SOURCE
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
CLEANFILES = $(CHEWOUT_FILES) *.ref
|