OSDN Git Service

2006-04-11 Jeff Johnston <jjohnstn@redhat.com>
[pf3gnuchains/pf3gnuchains3x.git] / newlib / libc / sys / linux / stdlib / 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         fnmatch.c glob.c regcomp.c regerror.c regex2.h \
9         regexec.c regfree.c collate.h collate.c collcmp.c \
10         reallocf.c
11
12 ELIX_3_OBJS = \
13         wordexp.$(oext) \
14         wordfree.$(oext)
15
16 if ELIX_LEVEL_1
17 LIB_OBJS =
18 else
19 if ELIX_LEVEL_2
20 LIB_OBJS =
21 else
22 LIB_OBJS = $(ELIX_3_OBJS)
23 endif
24 endif
25
26 libstdlib_la_LDFLAGS = -Xcompiler -nostdlib
27
28 if USE_LIBTOOL
29 noinst_LTLIBRARIES = libstdlib.la
30 libstdlib_la_SOURCES = $(GENERAL_SOURCES)
31 libstdlib_la_LIBADD = $(LIB_OBJS) 
32 libstdlib_la_DEPENDENCIES = $(LIB_OBJS) 
33 noinst_DATA = objectlist.awk.in
34 else
35 noinst_LIBRARIES = lib.a
36 lib_a_SOURCES = $(GENERAL_SOURCES)
37 lib_a_LIBADD = $(LIB_OBJS) 
38 lib_a_CFLAGS = $(AM_CFLAGS)
39 lib_a_DEPENDENCIES = $(LIB_OBJS) 
40 noinst_DATA =
41 endif # USE_LIBTOOL
42
43 AM_CFLAGS = -D_GNU_SOURCE
44
45 include $(srcdir)/../../../../Makefile.shared