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 = \
|
|
|
|
closedir.c creat.c isatty.c \
|
|
|
|
opendir.c readdir.c \
|
|
|
|
readdir_r.c rewinddir.c telldir.c
|
|
|
|
|
|
|
|
ELIX_2_OBJS = \
|
|
|
|
scandir.$(oext) seekdir.$(oext)
|
|
|
|
|
|
|
|
ELIX_3_OBJS = \
|
|
|
|
execl.$(oext) execle.$(oext) execlp.$(oext) execv.$(oext) \
|
|
|
|
execve.$(oext) execvp.$(oext)
|
|
|
|
|
|
|
|
ELIX_4_OBJS = \
|
|
|
|
popen.$(oext)
|
|
|
|
|
|
|
|
if ELIX_LEVEL_1
|
|
|
|
LIB_OBJS =
|
|
|
|
else
|
|
|
|
if ELIX_LEVEL_2
|
|
|
|
LIB_OBJS = $(ELIX_2_OBJS)
|
|
|
|
else
|
|
|
|
if ELIX_LEVEL_3
|
|
|
|
LIB_OBJS = $(ELIX_2_OBJS) $(ELIX_3_OBJS)
|
|
|
|
else
|
|
|
|
LIB_OBJS = $(ELIX_2_OBJS) $(ELIX_3_OBJS) $(ELIX_4_OBJS)
|
|
|
|
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
|
2002-08-27 02:56:09 +08:00
|
|
|
libposix_la_SOURCES = $(GENERAL_SOURCES)
|
|
|
|
libposix_la_LIBADD = $(LIB_OBJS)
|
|
|
|
libposix_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)
|
2006-04-12 03:02:16 +08:00
|
|
|
lib_a_CFLAGS = $(AM_CFLAGS)
|
2002-08-27 02:56:09 +08:00
|
|
|
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 =
|
|
|
|
|
|
|
|
SUFFIXES = .def
|
|
|
|
|
|
|
|
CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str
|
|
|
|
|
|
|
|
.c.def:
|
|
|
|
$(CHEW) < $< > $*.def 2> $*.ref
|
|
|
|
touch stmp-def
|
|
|
|
|
|
|
|
TARGETDOC = ../tmp.texi
|
|
|
|
|
|
|
|
# No doc for posix.
|
|
|
|
doc:
|
|
|
|
|
|
|
|
CLEANFILES = $(CHEWOUT_FILES) *.ref
|