source: rtems/cpukit/libnetworking/Makefile.am @ f0fc2c0

5
Last change on this file since f0fc2c0 was f0fc2c0, checked in by Christian Mauderer <Christian.Mauderer@…>, on 06/24/16 at 08:25:17

libnetworking: Add <machine/_align.h>

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