source: rtems/cpukit/libnetworking/Makefile.am @ 6de41c5f

5
Last change on this file since 6de41c5f was 6de41c5f, checked in by Sebastian Huber <sebastian.huber@…>, on 10/27/16 at 06:24:50

Provide kernel space header files

These kernel space header files must be provided for Newlib
172e2050d95b41861db858dd9bc43a3fb4a28987.

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