OSDN Git Service

2006-04-11 Jeff Johnston <jjohnstn@redhat.com>
[pf3gnuchains/pf3gnuchains3x.git] / newlib / libc / sys / linux / net / Makefile.am
1 ## Process this file with automake to generate Makefile.in
2
3 AUTOMAKE_OPTIONS = cygnus
4
5 INCLUDES = -I$(srcdir)/../include $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
6
7 LIB_SOURCES = addr2ascii.c ascii2addr.c base64.c bindresvport.c ether_addr.c getaddrinfo.c \
8         gethostbydns.c gethostbyht.c gethostbynis.c gethostnamadr.c \
9         getifaddrs.c getnameinfo.c \
10         getnetbydns.c getnetbyht.c getnetbynis.c getnetnamadr.c \
11         getproto.c getprotoent.c getprotoname.c getservbyname.c \
12         getservbyport.c getservent.c herror.c hesiod.c inet_addr.c \
13         ifname.c inet_lnaof.c \
14         inet_makeaddr.c inet_net_ntop.c inet_net_pton.c inet_neta.c \
15         inet_netof.c inet_network.c inet_ntoa.c inet_ntop.c \
16         inet_pton.c innetgr-stub.c ip6opt.c issetugid-stub.c \
17         linkaddr.c map_v4v6.c namespace.h un-namespace.h \
18         name6.c ns_addr.c \
19         ns_name.c ns_netint.c \
20         ns_ntoa.c ns_parse.c ns_print.c ns_ttl.c \
21         nsdispatch.c nslexer.c nsparser.c nsparser.h \
22         nsap_addr.c res_comp.c res_data.c res_debug.c \
23         res_init.c res_mkquery.c res_mkupdate.c res_query.c \
24         res_send.c res_update.c rthdr.c vars.c
25
26 ELIX_4_OBJS = \
27         rcmd.$(oext) \
28         rcmdsh.$(oext)
29
30 if ELIX_LEVEL_1
31 LIB_OBJS =
32 else
33 if ELIX_LEVEL_2
34 LIB_OBJS =
35 else
36 if ELIX_LEVEL_3
37 LIB_OBJS =
38 else
39 LIB_OBJS = $(ELIX_4_OBJS)
40 endif
41 endif
42 endif
43
44 libnet_la_LDFLAGS = -Xcompiler -nostdlib
45 libnet_la_CFLAGS = -DINET6
46
47 if USE_LIBTOOL
48 noinst_LTLIBRARIES = libnet.la
49 libnet_la_SOURCES = $(LIB_SOURCES)
50 libnet_la_LIBADD = $(LIB_OBJS)
51 libnet_la_DEPENDENCIES = $(LIB_OBJS)
52 noinst_DATA = objectlist.awk.in
53 else
54 noinst_LIBRARIES = lib.a
55 lib_a_SOURCES = $(LIB_SOURCES)
56 lib_a_LIBADD = $(LIB_OBJS)
57 lib_a_CFLAGS = $(AM_CFLAGS)
58 lib_a_DEPENDENCIES = $(LIB_OBJS)
59 noinst_DATA =
60 endif # USE_LIBTOOL
61
62 include $(srcdir)/../../../../Makefile.shared
63
64 install-data-local:
65         $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/arpa; \
66         for i in $(srcdir)/../include/arpa/*.h; do \
67           $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/arpa/`basename $$i`; \
68         done; \
69         $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/net; \
70         for i in $(srcdir)/../include/net/*.h; do \
71           $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/net/`basename $$i`; \
72         done; \
73         $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/netinet; \
74         for i in $(srcdir)/../include/netinet/*.h; do \
75           $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/netinet/`basename $$i`; \
76         done; \
77         $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/netinet6; \
78         for i in $(srcdir)/../include/netinet6/*.h; do \
79           $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/netinet6/`basename $$i`; \
80         done; \
81         $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/netns; \
82         for i in $(srcdir)/../include/netns/*.h; do \
83           $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/netns/`basename $$i`; \
84         done; \
85         $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/rpc; \
86         for i in $(srcdir)/../include/rpc/*.h; do \
87           $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/rpc/`basename $$i`; \
88         done;