source: rtems/cpukit/libnetworking/Makefile.am @ 657e6c93

Last change on this file since 657e6c93 was 657e6c93, checked in by Christian Mauderer <Christian.Mauderer@…>, on Jun 24, 2016 at 5:57:17 AM

libnetworking: Import current <netinet/in.h>

Import the <netinet/in.h> from current FreeBSD. This allows to build
some current software (e.g. libressl).

Add legacy support like

  • prototype for in_cksum(),
  • IPPORT_USERRESERVED,
  • deprecated IPCTL_RT* defines,
  • ip_fw_chk_t and ip_fw_ctl_t,
  • ip_nat_... (IP NAT hooks), and
  • IP_NAT option for get/setsockopt()

to new <rtems/rtems_netinet_in.h>.

  • Property mode set to 100644
File size: 8.8 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## netinet6
125
126include_netinet6dir = $(includedir)/netinet6
127
128include_netinet6_HEADERS = netinet6/in6.h
129
130## nfs
131
132include_nfsdir = $(includedir)/nfs
133
134include_nfs_HEADERS = nfs/nfsproto.h
135include_nfs_HEADERS += nfs/rpcv2.h
136include_nfs_HEADERS += nfs/xdr_subs.h
137
138libnetworking_a_SOURCES += nfs/bootp_subr.c
139
140## nfsclient
141include_nfsclientdir = $(includedir)/nfsclient
142
143include_nfsclient_HEADERS = nfsclient/nfsargs.h
144include_nfsclient_HEADERS += nfsclient/nfsdiskless.h
145
146## rtems
147
148include_rtemsdir = $(includedir)/rtems
149
150include_rtems_HEADERS = rtems/rtems_bsdnet.h
151include_rtems_HEADERS += rtems/rtems_bsdnet_internal.h
152include_rtems_HEADERS += rtems/dhcp.h
153include_rtems_HEADERS += rtems/rtems_dhcp_failsafe.h
154include_rtems_HEADERS += rtems/tftp.h
155include_rtems_HEADERS += rtems/ftpfs.h
156include_rtems_HEADERS += rtems/mkrootfs.h
157include_rtems_HEADERS += rtems/rtems_mii_ioctl.h
158include_rtems_HEADERS += rtems/rtems_netdb.h
159include_rtems_HEADERS += rtems/rtems_netinet_in.h
160
161libnetworking_a_SOURCES += rtems/sghostname.c \
162    rtems/rtems_glue.c rtems/rtems_malloc_mbuf.c rtems/rtems_syscall.c \
163    rtems/rtems_bootp.c rtems/rtems_dhcp.c rtems/rtems_dhcp_failsafe.c \
164    rtems/rtems_showmbuf.c rtems/rtems_showroute.c rtems/rtems_showifstat.c \
165    rtems/rtems_showipstat.c rtems/rtems_showicmpstat.c \
166    rtems/rtems_showtcpstat.c rtems/rtems_showudpstat.c rtems/rtems_select.c \
167    rtems/mkrootfs.c rtems/rtems_bsdnet_malloc_starvation.c \
168    rtems/rtems_mii_ioctl.c rtems/rtems_mii_ioctl_kern.c \
169    rtems/rtems_socketpair.c
170
171## sys
172
173include_sysdir = $(includedir)/sys
174
175include_sys_HEADERS = sys/_sockaddr_storage.h
176include_sys_HEADERS += sys/callout.h
177include_sys_HEADERS += sys/conf.h
178include_sys_HEADERS += sys/domain.h
179include_sys_HEADERS += sys/kernel.h
180include_sys_HEADERS += sys/libkern.h
181include_sys_HEADERS += sys/linker_set.h
182include_sys_HEADERS += sys/malloc.h
183include_sys_HEADERS += sys/mbuf.h
184include_sys_HEADERS += sys/mount.h
185include_sys_HEADERS += sys/proc.h
186include_sys_HEADERS += sys/protosw.h
187include_sys_HEADERS += sys/reboot.h
188include_sys_HEADERS += sys/resourcevar.h
189include_sys_HEADERS += sys/selinfo.h
190include_sys_HEADERS += sys/signalvar.h
191include_sys_HEADERS += sys/socket.h
192include_sys_HEADERS += sys/socketvar.h
193include_sys_HEADERS += sys/sysctl.h
194include_sys_HEADERS += sys/syslog.h
195include_sys_HEADERS += sys/systm.h
196include_sys_HEADERS += sys/ttydefaults.h
197include_sys_HEADERS += sys/ucred.h
198include_sys_HEADERS += sys/un.h
199
200# vm
201
202include_vmdir = $(includedir)/vm
203
204include_vm_HEADERS = vm/vm.h
205include_vm_HEADERS += vm/vm_extern.h
206include_vm_HEADERS += vm/vm_kern.h
207include_vm_HEADERS += vm/vm_param.h
208
209# dev
210include_dev_miidir = $(includedir)/dev/mii
211include_dev_mii_HEADERS = dev/mii/mii.h
212
213## libc
214
215libc_CPPFLAGS = -DNOPOLL -DNOSELECT -D__BSD_VISIBLE -D_THREAD_SAFE
216
217noinst_LIBRARIES += libc.a
218libc_a_CPPFLAGS = $(AM_CPPFLAGS) $(libc_CPPFLAGS)
219
220include_HEADERS += ifaddrs.h
221
222libc_a_SOURCES = libc/base64.c \
223    libc/gethostbydns.c libc/gethostbyht.c libc/gethostbynis.c \
224    libc/gethostnamadr.c libc/getnetbydns.c libc/getnetbyht.c \
225    libc/getnetbynis.c libc/getnetnamadr.c libc/getnameinfo.c libc/getproto.c \
226    libc/getprotoent.c libc/getprotoname.c libc/getservbyname.c \
227    libc/getservbyport.c libc/getservent.c libc/herror.c libc/inet_addr.c \
228    libc/inet_lnaof.c libc/inet_makeaddr.c libc/inet_netof.c \
229    libc/inet_network.c libc/inet_ntoa.c libc/inet_ntop.c libc/inet_pton.c \
230    libc/linkaddr.c libc/map_v4v6.c libc/nsap_addr.c libc/ns_name.c \
231    libc/ns_netint.c libc/ns_parse.c libc/ns_print.c libc/ns_ttl.c \
232    libc/res_comp.c libc/res_data.c libc/res_debug.c libc/res_init.c \
233    libc/res_mkquery.c libc/res_mkupdate.c libc/res_query.c libc/res_send.c \
234    libc/res_stubs.c libc/res_update.c libc/strsep.c libc/rcmd.c
235libc_a_SOURCES += libc/res_config.h
236libc_a_SOURCES += libc/send.c
237libc_a_SOURCES += libc/recv.c
238libc_a_SOURCES += libc/getifaddrs.c
239libc_a_SOURCES += libc/if_indextoname.c
240libc_a_SOURCES += libc/if_nameindex.c
241endif
242
243UNUSED_FILES += libc/ether_addr.c libc/gethostname.c libc/inet_neta.c \
244    libc/inet_net_ntop.c libc/inet_net_pton.c libc/ns_addr.c \
245    libc/ns_ntoa.c
246
247libc_mans = libc/byteorder.3 libc/ethers.3 \
248    libc/gethostbyname.3 libc/getnetent.3 libc/getprotoent.3 \
249    libc/getservent.3 libc/inet.3 libc/linkaddr.3 libc/ns.3 \
250    libc/rcmd.3 libc/resolver.3
251EXTRA_DIST += $(libc_mans)
252
253if LIBNETWORKING
254man_MANS = $(libc_MANS)
255
256## lib
257
258EXTRA_DIST += lib/README
259
260lib_CPPFLAGS = -DNOPOLL -DNOSELECT
261
262noinst_LIBRARIES += lib.a
263lib_a_CPPFLAGS = $(AM_CPPFLAGS) $(lib_CPPFLAGS) -D__BSD_VISIBLE
264
265lib_a_SOURCES = lib/getprotoby.c lib/rtems_bsdnet_ntp.c lib/ftpfs.c \
266    lib/syslog.c lib/tftpDriver.c
267lib_a_SOURCES += rtems/rtems_syscall_api.c
268endif
269
270EXTRA_DIST += $(UNUSED_FILES)
271
272include $(srcdir)/preinstall.am
273include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.