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