source: rtems/cpukit/libnetworking/Makefile.am @ 195d412

5
Last change on this file since 195d412 was 195d412, checked in by Christian Mauderer <Christian.Mauderer@…>, on 05/02/16 at 12:49:33

libnetworking: Add minimal getnameinfo()

This implementation just falls back to giving a string representation of
the IP. It supports IPv4 only.

Add test for getnameinfo().

  • Property mode set to 100644
File size: 8.6 KB
Line 
1include $(top_srcdir)/automake/multilib.am
2include $(top_srcdir)/automake/compile.am
3
4AM_CPPFLAGS += -I$(srcdir)
5
6EXTRA_DIST = README
7EXTRA_DIST += rtems/bootp.h
8
9# poll is not supported
10UNUSED_FILES = poll.h
11# Original FreeBSD file
12UNUSED_FILES += sys/poll.h
13
14
15if LIBNETWORKING
16# Add -DFORWARD_PROTOCOL to enable UDP forwarding -- requires missing net/pf.h
17libnetworking_CPPFLAGS = -DINET -DNFS \
18    -DDIAGNOSTIC -DBOOTP_COMPAT -D_KERNEL -D__BSD_VISIBLE
19
20noinst_LIBRARIES = libnetworking.a
21libnetworking_a_CPPFLAGS = $(AM_CPPFLAGS) $(libnetworking_CPPFLAGS)
22
23## poll.h is not in the list because RTEMS does not have poll()
24## and installing poll.h confuses autoconf.
25include_HEADERS = netdb.h
26include_HEADERS += resolv.h
27include_HEADERS += syslog.h
28
29libnetworking_a_SOURCES = opt_atalk.h opt_bdg.h opt_compat.h opt_inet6.h \
30    opt_inet.h opt_ipfw.h opt_ipx.h opt_mac.h opt_mrouting.h opt_netgraph.h \
31    opt_tcpdebug.h opt_ipsec.h loop.h
32libnetworking_a_SOURCES += opt_ppp.h
33libnetworking_a_SOURCES += bpfilter.h
34
35# arpa
36
37include_arpadir = $(includedir)/arpa
38
39include_arpa_HEADERS = arpa/ftp.h
40include_arpa_HEADERS += arpa/inet.h
41include_arpa_HEADERS += arpa/nameser.h
42include_arpa_HEADERS += arpa/nameser_compat.h
43
44## kern
45
46libnetworking_a_SOURCES += kern/kern_mib.c kern/kern_subr.c \
47    kern/kern_sysctl.c kern/uipc_domain.c kern/uipc_mbuf.c \
48    kern/uipc_socket.c kern/uipc_socket2.c
49
50## machine
51
52include_machinedir = $(includedir)/machine
53
54include_machine_HEADERS = machine/cpu.h
55include_machine_HEADERS += machine/cpufunc.h
56include_machine_HEADERS += machine/in_cksum.h
57include_machine_HEADERS += machine/vmparam.h
58
59libnetworking_a_SOURCES += machine/limits.h
60
61## net
62
63include_netdir = $(includedir)/net
64
65include_net_HEADERS = net/bpf.h
66include_net_HEADERS += net/ethernet.h
67include_net_HEADERS += net/if.h
68include_net_HEADERS += net/if_arp.h
69include_net_HEADERS += net/if_dl.h
70include_net_HEADERS += net/if_llc.h
71include_net_HEADERS += net/if_ppp.h
72include_net_HEADERS += net/if_types.h
73include_net_HEADERS += net/if_var.h
74include_net_HEADERS += net/netisr.h
75include_net_HEADERS += net/ppp_defs.h
76include_net_HEADERS += net/radix.h
77include_net_HEADERS += net/raw_cb.h
78include_net_HEADERS += net/route.h
79include_net_HEADERS += net/if_pppvar.h
80include_net_HEADERS += net/slcompress.h
81include_net_HEADERS += net/if_media.h
82include_net_HEADERS += net/ppp_comp.h
83
84libnetworking_a_SOURCES += net/if.c net/if_ethersubr.c net/if_loop.c \
85    net/radix.c net/route.c net/rtsock.c net/raw_cb.c net/raw_usrreq.c \
86    net/if_ppp.c net/ppp_tty.c net/slcompress.c
87
88## netinet
89
90include_netinetdir = $(includedir)/netinet
91
92include_netinet_HEADERS = netinet/icmp_var.h
93include_netinet_HEADERS += netinet/if_ether.h
94include_netinet_HEADERS += netinet/igmp.h
95include_netinet_HEADERS += netinet/igmp_var.h
96include_netinet_HEADERS += netinet/in.h
97include_netinet_HEADERS += netinet/in_pcb.h
98include_netinet_HEADERS += netinet/in_systm.h
99include_netinet_HEADERS += netinet/in_var.h
100include_netinet_HEADERS += netinet/ip.h
101include_netinet_HEADERS += netinet/ip_fw.h
102include_netinet_HEADERS += netinet/ip_icmp.h
103include_netinet_HEADERS += netinet/ip_mroute.h
104include_netinet_HEADERS += netinet/ip_var.h
105include_netinet_HEADERS += netinet/tcp.h
106include_netinet_HEADERS += netinet/tcp_debug.h
107include_netinet_HEADERS += netinet/tcp_fsm.h
108include_netinet_HEADERS += netinet/tcp_seq.h
109include_netinet_HEADERS += netinet/tcp_timer.h
110include_netinet_HEADERS += netinet/tcp_var.h
111include_netinet_HEADERS += netinet/tcpip.h
112include_netinet_HEADERS += netinet/udp.h
113include_netinet_HEADERS += netinet/udp_var.h
114
115libnetworking_a_SOURCES += netinet/if_ether.c netinet/igmp.c netinet/in.c \
116    netinet/in_cksum.c netinet/in_pcb.c netinet/in_proto.c netinet/in_rmx.c \
117    netinet/ip_divert.c netinet/ip_fw.c netinet/ip_icmp.c netinet/ip_input.c \
118    netinet/ip_mroute.c netinet/ip_output.c netinet/raw_ip.c \
119    netinet/tcp_debug.c netinet/tcp_input.c netinet/tcp_output.c \
120    netinet/tcp_subr.c netinet/tcp_timer.c netinet/tcp_usrreq.c \
121    netinet/udp_usrreq.c netinet/in_cksum_arm.h netinet/in_cksum_i386.h \
122    netinet/in_cksum_m68k.h netinet/in_cksum_powerpc.h
123
124## nfs
125
126include_nfsdir = $(includedir)/nfs
127
128include_nfs_HEADERS = nfs/nfsproto.h
129include_nfs_HEADERS += nfs/rpcv2.h
130include_nfs_HEADERS += nfs/xdr_subs.h
131
132libnetworking_a_SOURCES += nfs/bootp_subr.c
133
134## nfsclient
135include_nfsclientdir = $(includedir)/nfsclient
136
137include_nfsclient_HEADERS = nfsclient/nfsargs.h
138include_nfsclient_HEADERS += nfsclient/nfsdiskless.h
139
140## rtems
141
142include_rtemsdir = $(includedir)/rtems
143
144include_rtems_HEADERS = rtems/rtems_bsdnet.h
145include_rtems_HEADERS += rtems/rtems_bsdnet_internal.h
146include_rtems_HEADERS += rtems/dhcp.h
147include_rtems_HEADERS += rtems/rtems_dhcp_failsafe.h
148include_rtems_HEADERS += rtems/tftp.h
149include_rtems_HEADERS += rtems/ftpfs.h
150include_rtems_HEADERS += rtems/mkrootfs.h
151include_rtems_HEADERS += rtems/rtems_mii_ioctl.h
152include_rtems_HEADERS += rtems/rtems_netdb.h
153
154libnetworking_a_SOURCES += rtems/sghostname.c \
155    rtems/rtems_glue.c rtems/rtems_malloc_mbuf.c rtems/rtems_syscall.c \
156    rtems/rtems_bootp.c rtems/rtems_dhcp.c rtems/rtems_dhcp_failsafe.c \
157    rtems/rtems_showmbuf.c rtems/rtems_showroute.c rtems/rtems_showifstat.c \
158    rtems/rtems_showipstat.c rtems/rtems_showicmpstat.c \
159    rtems/rtems_showtcpstat.c rtems/rtems_showudpstat.c rtems/rtems_select.c \
160    rtems/mkrootfs.c rtems/rtems_bsdnet_malloc_starvation.c \
161    rtems/rtems_mii_ioctl.c rtems/rtems_mii_ioctl_kern.c \
162    rtems/rtems_socketpair.c
163
164## sys
165
166include_sysdir = $(includedir)/sys
167
168include_sys_HEADERS = sys/callout.h
169include_sys_HEADERS += sys/conf.h
170include_sys_HEADERS += sys/domain.h
171include_sys_HEADERS += sys/kernel.h
172include_sys_HEADERS += sys/libkern.h
173include_sys_HEADERS += sys/linker_set.h
174include_sys_HEADERS += sys/malloc.h
175include_sys_HEADERS += sys/mbuf.h
176include_sys_HEADERS += sys/mount.h
177include_sys_HEADERS += sys/proc.h
178include_sys_HEADERS += sys/protosw.h
179include_sys_HEADERS += sys/reboot.h
180include_sys_HEADERS += sys/resourcevar.h
181include_sys_HEADERS += sys/selinfo.h
182include_sys_HEADERS += sys/signalvar.h
183include_sys_HEADERS += sys/socket.h
184include_sys_HEADERS += sys/socketvar.h
185include_sys_HEADERS += sys/sysctl.h
186include_sys_HEADERS += sys/syslog.h
187include_sys_HEADERS += sys/systm.h
188include_sys_HEADERS += sys/ttydefaults.h
189include_sys_HEADERS += sys/ucred.h
190include_sys_HEADERS += sys/un.h
191
192# vm
193
194include_vmdir = $(includedir)/vm
195
196include_vm_HEADERS = vm/vm.h
197include_vm_HEADERS += vm/vm_extern.h
198include_vm_HEADERS += vm/vm_kern.h
199include_vm_HEADERS += vm/vm_param.h
200
201# dev
202include_dev_miidir = $(includedir)/dev/mii
203include_dev_mii_HEADERS = dev/mii/mii.h
204
205## libc
206
207libc_CPPFLAGS = -DNOPOLL -DNOSELECT -D__BSD_VISIBLE -D_THREAD_SAFE
208
209noinst_LIBRARIES += libc.a
210libc_a_CPPFLAGS = $(AM_CPPFLAGS) $(libc_CPPFLAGS)
211
212include_HEADERS += ifaddrs.h
213
214libc_a_SOURCES = libc/base64.c \
215    libc/gethostbydns.c libc/gethostbyht.c libc/gethostbynis.c \
216    libc/gethostnamadr.c libc/getnetbydns.c libc/getnetbyht.c \
217    libc/getnetbynis.c libc/getnetnamadr.c libc/getnameinfo.c libc/getproto.c \
218    libc/getprotoent.c libc/getprotoname.c libc/getservbyname.c \
219    libc/getservbyport.c libc/getservent.c libc/herror.c libc/inet_addr.c \
220    libc/inet_lnaof.c libc/inet_makeaddr.c libc/inet_netof.c \
221    libc/inet_network.c libc/inet_ntoa.c libc/inet_ntop.c libc/inet_pton.c \
222    libc/linkaddr.c libc/map_v4v6.c libc/nsap_addr.c libc/ns_name.c \
223    libc/ns_netint.c libc/ns_parse.c libc/ns_print.c libc/ns_ttl.c \
224    libc/res_comp.c libc/res_data.c libc/res_debug.c libc/res_init.c \
225    libc/res_mkquery.c libc/res_mkupdate.c libc/res_query.c libc/res_send.c \
226    libc/res_stubs.c libc/res_update.c libc/strsep.c libc/rcmd.c
227libc_a_SOURCES += libc/res_config.h
228libc_a_SOURCES += libc/send.c
229libc_a_SOURCES += libc/recv.c
230libc_a_SOURCES += libc/getifaddrs.c
231libc_a_SOURCES += libc/if_indextoname.c
232libc_a_SOURCES += libc/if_nameindex.c
233endif
234
235UNUSED_FILES += libc/ether_addr.c libc/gethostname.c libc/inet_neta.c \
236    libc/inet_net_ntop.c libc/inet_net_pton.c libc/ns_addr.c \
237    libc/ns_ntoa.c
238
239libc_mans = libc/byteorder.3 libc/ethers.3 \
240    libc/gethostbyname.3 libc/getnetent.3 libc/getprotoent.3 \
241    libc/getservent.3 libc/inet.3 libc/linkaddr.3 libc/ns.3 \
242    libc/rcmd.3 libc/resolver.3
243EXTRA_DIST += $(libc_mans)
244
245if LIBNETWORKING
246man_MANS = $(libc_MANS)
247
248## lib
249
250EXTRA_DIST += lib/README
251
252lib_CPPFLAGS = -DNOPOLL -DNOSELECT
253
254noinst_LIBRARIES += lib.a
255lib_a_CPPFLAGS = $(AM_CPPFLAGS) $(lib_CPPFLAGS) -D__BSD_VISIBLE
256
257lib_a_SOURCES = lib/getprotoby.c lib/rtems_bsdnet_ntp.c lib/ftpfs.c \
258    lib/syslog.c lib/tftpDriver.c
259lib_a_SOURCES += rtems/rtems_syscall_api.c
260endif
261
262EXTRA_DIST += $(UNUSED_FILES)
263
264include $(srcdir)/preinstall.am
265include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.