Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/search/Makefile.am')
-rw-r--r--newlib/libc/search/Makefile.am45
1 files changed, 28 insertions, 17 deletions
diff --git a/newlib/libc/search/Makefile.am b/newlib/libc/search/Makefile.am
index 2f919dcf7..d170cfa3a 100644
--- a/newlib/libc/search/Makefile.am
+++ b/newlib/libc/search/Makefile.am
@@ -4,36 +4,47 @@ AUTOMAKE_OPTIONS = cygnus
INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
-LIB_SOURCES = \
+GENERAL_SOURCES = \
bsearch.c \
db_local.h \
extern.h \
- hash.c \
hash.h \
- hash_bigkey.c \
- hash_buf.c \
- hash_func.c \
- hash_log2.c \
- hash_page.c \
- hcreate.c \
- hcreate_r.c \
page.h \
- qsort.c \
- tdelete.c \
- tdestroy.c \
- tfind.c \
- tsearch.c \
- twalk.c
+ qsort.c
+
+## Following are EL/IX level 2 interfaces
+if ELIX_LEVEL_1
+LIB_OBJS =
+else
+LIB_OBJS = \
+ hash.$(oext) \
+ hash_bigkey.$(oext) \
+ hash_buf.$(oext) \
+ hash_func.$(oext) \
+ hash_log2.$(oext) \
+ hash_page.$(oext) \
+ hcreate.$(oext) \
+ hcreate_r.$(oext) \
+ tdelete.$(oext) \
+ tdestroy.$(oext) \
+ tfind.$(oext) \
+ tsearch.$(oext) \
+ twalk.$(oext)
+endif
libsearch_la_LDFLAGS = -Xcompiler -nostdlib
if USE_LIBTOOL
noinst_LTLIBRARIES = libsearch.la
-libsearch_la_SOURCES = $(LIB_SOURCES)
+libsearch_la_SOURCES = $(GENERAL_SOURCES)
+libsearch_la_LIBADD = $(LIB_OBJS)
+libsearch_la_DEPENDENCIES = $(LIB_OBJS)
noinst_DATA = objectlist.awk.in
else
noinst_LIBRARIES = lib.a
-lib_a_SOURCES = $(LIB_SOURCES)
+lib_a_SOURCES = $(GENERAL_SOURCES)
+lib_a_LIBADD = $(LIB_OBJS)
+lib_a_DEPENDENCIES = $(LIB_OBJS)
noinst_DATA =
endif # USE_LIBTOOL