source: rtems/cpukit/libnetworking/Makefile.am @ 3bc19384

5
Last change on this file since 3bc19384 was 3bc19384, checked in by Sebastian Huber <sebastian.huber@…>, on 06/06/17 at 13:30:40

network: Move header files

Prevent accidental use of legacy network header files.

Update #2833.

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