OSDN Git Service

2006-04-11 Jeff Johnston <jjohnstn@redhat.com>
[pf3gnuchains/pf3gnuchains3x.git] / newlib / libc / search / Makefile.am
1 ## Process this file with automake to generate Makefile.in
2
3 AUTOMAKE_OPTIONS = cygnus
4
5 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
6
7 GENERAL_SOURCES = \
8         bsearch.c \
9         db_local.h \
10         extern.h \
11         hash.h \
12         page.h \
13         qsort.c
14
15 ## Following are EL/IX level 2 interfaces
16 if ELIX_LEVEL_1
17 LIB_OBJS =
18 else
19 LIB_OBJS = \
20         hash.$(oext) \
21         hash_bigkey.$(oext) \
22         hash_buf.$(oext) \
23         hash_func.$(oext) \
24         hash_log2.$(oext) \
25         hash_page.$(oext) \
26         hcreate.$(oext) \
27         hcreate_r.$(oext) \
28         tdelete.$(oext) \
29         tdestroy.$(oext) \
30         tfind.$(oext) \
31         tsearch.$(oext) \
32         twalk.$(oext)
33 endif
34
35 libsearch_la_LDFLAGS = -Xcompiler -nostdlib
36
37 if USE_LIBTOOL
38 noinst_LTLIBRARIES = libsearch.la
39 libsearch_la_SOURCES = $(GENERAL_SOURCES)
40 libsearch_la_LIBADD = $(LIB_OBJS)
41 libsearch_la_DEPENDENCIES = $(LIB_OBJS)
42 noinst_DATA = objectlist.awk.in
43 else
44 noinst_LIBRARIES = lib.a
45 lib_a_SOURCES = $(GENERAL_SOURCES)
46 lib_a_LIBADD = $(LIB_OBJS)
47 lib_a_CFLAGS = $(AM_CFLAGS)
48 lib_a_DEPENDENCIES = $(LIB_OBJS)
49 noinst_DATA =
50 endif # USE_LIBTOOL
51
52 SUFFIXES = .def
53
54 CHEWOUT_FILES =
55
56 CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str
57
58 .c.def:
59         $(CHEW) < $< > $*.def 2> $*.ref
60         touch stmp-def
61
62 TARGETDOC = ../tmp.texi
63
64 doc: $(CHEWOUT_FILES)
65
66 CLEANFILES = $(CHEWOUT_FILES) *.ref
67
68 include $(srcdir)/../../Makefile.shared