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

5
Last change on this file since 657e6c93 was 657e6c93, checked in by Christian Mauderer <Christian.Mauderer@…>, on 06/24/16 at 05:57:17

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
RevLine 
[14d34d84]1include $(top_srcdir)/automake/multilib.am
[8c31a89f]2include $(top_srcdir)/automake/compile.am
[dd695d81]3
[eecc7d5]4AM_CPPFLAGS += -I$(srcdir)
[dd695d81]5
[8c31a89f]6EXTRA_DIST = README
[6c18c97]7EXTRA_DIST += rtems/bootp.h
[8c31a89f]8
[2c9df30]9# poll is not supported
[8c31a89f]10UNUSED_FILES = poll.h
[2c9df30]11# Original FreeBSD file
12UNUSED_FILES += sys/poll.h
[07347cb]13
[8c31a89f]14
[3fe615ba]15if LIBNETWORKING
[489c158]16# Add -DFORWARD_PROTOCOL to enable UDP forwarding -- requires missing net/pf.h
[245a9ce]17libnetworking_CPPFLAGS = -DINET -DNFS \
[66e365f]18    -DDIAGNOSTIC -DBOOTP_COMPAT -D_KERNEL -D__BSD_VISIBLE
[07347cb]19
[66e365f]20noinst_LIBRARIES = libnetworking.a
21libnetworking_a_CPPFLAGS = $(AM_CPPFLAGS) $(libnetworking_CPPFLAGS)
[65a38bc]22
[ce75da6]23## poll.h is not in the list because RTEMS does not have poll()
24## and installing poll.h confuses autoconf.
[4e97166]25include_HEADERS = netdb.h
[77dc5a2]26include_HEADERS += resolv.h
27include_HEADERS += syslog.h
[2c9df30]28
[66e365f]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 \
[4e97166]31    opt_tcpdebug.h opt_ipsec.h loop.h
32libnetworking_a_SOURCES += opt_ppp.h
[66e365f]33libnetworking_a_SOURCES += bpfilter.h
[2c9df30]34
[471bcf0]35# arpa
36
37include_arpadir = $(includedir)/arpa
38
[77dc5a2]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
[471bcf0]43
[dd695d81]44## kern
45
[660f400]46libnetworking_a_SOURCES += kern/kern_mib.c kern/kern_subr.c \
[234f7adb]47    kern/kern_sysctl.c kern/uipc_domain.c kern/uipc_mbuf.c \
48    kern/uipc_socket.c kern/uipc_socket2.c
[dd695d81]49
[471bcf0]50## machine
51
52include_machinedir = $(includedir)/machine
53
[77dc5a2]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
[471bcf0]58
[8c31a89f]59libnetworking_a_SOURCES += machine/limits.h
60
[9eadce0]61## net
62
63include_netdir = $(includedir)/net
64
[77dc5a2]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
[4e97166]81include_net_HEADERS += net/if_media.h
[84e49054]82include_net_HEADERS += net/ppp_comp.h
[9eadce0]83
[234f7adb]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 \
[c85f596b]86    net/if_ppp.c net/ppp_tty.c net/slcompress.c
[dd695d81]87
[9eadce0]88## netinet
89
90include_netinetdir = $(includedir)/netinet
91
[77dc5a2]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
[9eadce0]114
[234f7adb]115libnetworking_a_SOURCES += netinet/if_ether.c netinet/igmp.c netinet/in.c \
[dd695d81]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 \
[ae60724]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
[8c31a89f]123
[005c3fe7]124## netinet6
125
126include_netinet6dir = $(includedir)/netinet6
127
128include_netinet6_HEADERS = netinet6/in6.h
129
[9eadce0]130## nfs
131
132include_nfsdir = $(includedir)/nfs
133
[701740c]134include_nfs_HEADERS = nfs/nfsproto.h
[4e97166]135include_nfs_HEADERS += nfs/rpcv2.h
136include_nfs_HEADERS += nfs/xdr_subs.h
[9eadce0]137
[234f7adb]138libnetworking_a_SOURCES += nfs/bootp_subr.c
[dd695d81]139
[66e365f]140## nfsclient
141include_nfsclientdir = $(includedir)/nfsclient
142
[77dc5a2]143include_nfsclient_HEADERS = nfsclient/nfsargs.h
144include_nfsclient_HEADERS += nfsclient/nfsdiskless.h
[66e365f]145
[dd695d81]146## rtems
147
148include_rtemsdir = $(includedir)/rtems
149
[77dc5a2]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
[4e97166]157include_rtems_HEADERS += rtems/rtems_mii_ioctl.h
[7e6f235]158include_rtems_HEADERS += rtems/rtems_netdb.h
[657e6c93]159include_rtems_HEADERS += rtems/rtems_netinet_in.h
[dd695d81]160
[98910dbd]161libnetworking_a_SOURCES += rtems/sghostname.c \
[be31de7]162    rtems/rtems_glue.c rtems/rtems_malloc_mbuf.c rtems/rtems_syscall.c \
[50303df]163    rtems/rtems_bootp.c rtems/rtems_dhcp.c rtems/rtems_dhcp_failsafe.c \
[8c31a89f]164    rtems/rtems_showmbuf.c rtems/rtems_showroute.c rtems/rtems_showifstat.c \
[007c9f7]165    rtems/rtems_showipstat.c rtems/rtems_showicmpstat.c \
166    rtems/rtems_showtcpstat.c rtems/rtems_showudpstat.c rtems/rtems_select.c \
[6f57450]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
[dd695d81]170
[9eadce0]171## sys
[471bcf0]172
173include_sysdir = $(includedir)/sys
174
[f2082cc]175include_sys_HEADERS = sys/_sockaddr_storage.h
176include_sys_HEADERS += sys/callout.h
[77dc5a2]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
[4202a31]189include_sys_HEADERS += sys/selinfo.h
[77dc5a2]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
[471bcf0]199
200# vm
201
202include_vmdir = $(includedir)/vm
203
[77dc5a2]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
[471bcf0]208
[4e97166]209# dev
210include_dev_miidir = $(includedir)/dev/mii
211include_dev_mii_HEADERS = dev/mii/mii.h
212
[489c158]213## libc
214
[1fbd0baf]215libc_CPPFLAGS = -DNOPOLL -DNOSELECT -D__BSD_VISIBLE -D_THREAD_SAFE
[07347cb]216
[66e365f]217noinst_LIBRARIES += libc.a
218libc_a_CPPFLAGS = $(AM_CPPFLAGS) $(libc_CPPFLAGS)
[07347cb]219
[b268e70]220include_HEADERS += ifaddrs.h
221
[f4e5f2f]222libc_a_SOURCES = libc/base64.c \
[489c158]223    libc/gethostbydns.c libc/gethostbyht.c libc/gethostbynis.c \
224    libc/gethostnamadr.c libc/getnetbydns.c libc/getnetbyht.c \
[195d412]225    libc/getnetbynis.c libc/getnetnamadr.c libc/getnameinfo.c libc/getproto.c \
[489c158]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 \
[ada4d9b]234    libc/res_stubs.c libc/res_update.c libc/strsep.c libc/rcmd.c
235libc_a_SOURCES += libc/res_config.h
[26f8315]236libc_a_SOURCES += libc/send.c
237libc_a_SOURCES += libc/recv.c
[b268e70]238libc_a_SOURCES += libc/getifaddrs.c
239libc_a_SOURCES += libc/if_indextoname.c
240libc_a_SOURCES += libc/if_nameindex.c
[8c31a89f]241endif
242
243UNUSED_FILES += libc/ether_addr.c libc/gethostname.c libc/inet_neta.c \
[0e609ca]244    libc/inet_net_ntop.c libc/inet_net_pton.c libc/ns_addr.c \
[26f8315]245    libc/ns_ntoa.c
[489c158]246
[f4e5f2f]247libc_mans = libc/byteorder.3 libc/ethers.3 \
[489c158]248    libc/gethostbyname.3 libc/getnetent.3 libc/getprotoent.3 \
[0e609ca]249    libc/getservent.3 libc/inet.3 libc/linkaddr.3 libc/ns.3 \
[489c158]250    libc/rcmd.3 libc/resolver.3
[8c31a89f]251EXTRA_DIST += $(libc_mans)
[489c158]252
[3fe615ba]253if LIBNETWORKING
[8c31a89f]254man_MANS = $(libc_MANS)
[489c158]255
256## lib
257
[8c31a89f]258EXTRA_DIST += lib/README
259
[489c158]260lib_CPPFLAGS = -DNOPOLL -DNOSELECT
261
[66e365f]262noinst_LIBRARIES += lib.a
263lib_a_CPPFLAGS = $(AM_CPPFLAGS) $(lib_CPPFLAGS) -D__BSD_VISIBLE
[489c158]264
[234f7adb]265lib_a_SOURCES = lib/getprotoby.c lib/rtems_bsdnet_ntp.c lib/ftpfs.c \
[489c158]266    lib/syslog.c lib/tftpDriver.c
[1641088]267lib_a_SOURCES += rtems/rtems_syscall_api.c
[007c9f7]268endif
269
[8c31a89f]270EXTRA_DIST += $(UNUSED_FILES)
271
[66e365f]272include $(srcdir)/preinstall.am
[14d34d84]273include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.