source: rtems/cpukit/libnetworking/Makefile.am @ 356914bb

Last change on this file since 356914bb was be31de7, checked in by Eric Norum <WENorum@…>, on 05/25/06 at 17:36:31

Provide customisable mbuf allocation.
Patch from Steven Johnson <sjohnson@…>

  • Property mode set to 100644
File size: 6.9 KB
Line 
1##
2## $Id$
3##
4
5include $(top_srcdir)/automake/multilib.am
6include $(top_srcdir)/automake/compile.am
7
8AM_CPPFLAGS += -I$(srcdir)
9
10EXTRA_DIST = README
11
12# poll is not supported
13UNUSED_FILES = poll.h
14# Original FreeBSD file
15UNUSED_FILES += sys/poll.h
16
17UNUSED_FILES += net/ppp-deflate.c net/bsd-comp.c
18
19if HAS_NETWORKING
20# Add -DFORWARD_PROTOCOL to enable UDP forwarding -- requires missing net/pf.h
21libnetworking_CPPFLAGS = -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS \
22    -DDIAGNOSTIC -DBOOTP_COMPAT -D_KERNEL -D__BSD_VISIBLE
23
24noinst_LIBRARIES = libnetworking.a
25libnetworking_a_CPPFLAGS = $(AM_CPPFLAGS) $(libnetworking_CPPFLAGS)
26
27## poll.h is not in the list because RTEMS does not have poll()
28## and installing poll.h confuses autoconf.
29include_HEADERS = netdb.h
30include_HEADERS += resolv.h syslog.h
31
32libnetworking_a_SOURCES = opt_atalk.h opt_bdg.h opt_compat.h opt_inet6.h \
33    opt_inet.h opt_ipfw.h opt_ipx.h opt_mac.h opt_mrouting.h opt_netgraph.h \
34    opt_tcpdebug.h opt_ipsec.h loop.h
35libnetworking_a_SOURCES += opt_ppp.h
36libnetworking_a_SOURCES += bpfilter.h
37
38# arpa
39
40include_arpadir = $(includedir)/arpa
41
42include_arpa_HEADERS = arpa/ftp.h arpa/inet.h arpa/nameser.h \
43    arpa/nameser_compat.h
44
45## kern
46
47libnetworking_a_SOURCES += kern/kern_mib.c kern/kern_subr.c \
48    kern/kern_sysctl.c kern/uipc_domain.c kern/uipc_mbuf.c \
49    kern/uipc_socket.c kern/uipc_socket2.c
50
51## machine
52
53include_machinedir = $(includedir)/machine
54
55include_machine_HEADERS = machine/conf.h machine/cpu.h machine/cpufunc.h \
56    machine/endian.h machine/in_cksum.h 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 net/ethernet.h net/if.h net/if_arp.h \
65    net/if_dl.h net/if_llc.h net/if_ppp.h net/if_types.h net/if_var.h \
66    net/netisr.h net/ppp-comp.h net/ppp_defs.h net/radix.h net/raw_cb.h \
67    net/route.h net/if_pppvar.h net/pppcompress.h net/slcompress.h
68include_net_HEADERS += net/if_media.h
69
70libnetworking_a_SOURCES += net/if.c net/if_ethersubr.c net/if_loop.c \
71    net/radix.c net/route.c net/rtsock.c net/raw_cb.c net/raw_usrreq.c \
72    net/if_ppp.c net/ppp_tty.c net/pppcompress.c net/slcompress.c
73
74## netinet
75
76include_netinetdir = $(includedir)/netinet
77
78include_netinet_HEADERS = netinet/icmp_var.h netinet/if_ether.h \
79    netinet/igmp.h netinet/igmp_var.h netinet/in.h netinet/in_pcb.h \
80    netinet/in_systm.h netinet/in_var.h netinet/ip.h netinet/ip_fw.h \
81    netinet/ip_icmp.h netinet/ip_mroute.h netinet/ip_var.h netinet/tcp.h \
82    netinet/tcp_debug.h netinet/tcp_fsm.h netinet/tcp_seq.h \
83    netinet/tcp_timer.h netinet/tcp_var.h netinet/tcpip.h netinet/udp.h \
84    netinet/udp_var.h
85
86libnetworking_a_SOURCES += netinet/if_ether.c netinet/igmp.c netinet/in.c \
87    netinet/in_cksum.c netinet/in_pcb.c netinet/in_proto.c netinet/in_rmx.c \
88    netinet/ip_divert.c netinet/ip_fw.c netinet/ip_icmp.c netinet/ip_input.c \
89    netinet/ip_mroute.c netinet/ip_output.c netinet/raw_ip.c \
90    netinet/tcp_debug.c netinet/tcp_input.c netinet/tcp_output.c \
91    netinet/tcp_subr.c netinet/tcp_timer.c netinet/tcp_usrreq.c \
92    netinet/udp_usrreq.c netinet/in_cksum_arm.h netinet/in_cksum_i386.h \
93    netinet/in_cksum_m68k.h netinet/in_cksum_powerpc.h
94
95## nfs
96
97include_nfsdir = $(includedir)/nfs
98
99include_nfs_HEADERS = nfs/krpc.h
100include_nfs_HEADERS += nfs/nfs.h
101include_nfs_HEADERS += nfs/nfsproto.h
102include_nfs_HEADERS += nfs/rpcv2.h
103include_nfs_HEADERS += nfs/xdr_subs.h
104
105libnetworking_a_SOURCES += nfs/bootp_subr.c
106
107## nfsclient
108include_nfsclientdir = $(includedir)/nfsclient
109
110include_nfsclient_HEADERS = nfsclient/nfsargs.h nfsclient/nfsdiskless.h
111
112## rtems
113
114include_rtemsdir = $(includedir)/rtems
115
116include_rtems_HEADERS = rtems/rtems_bsdnet.h rtems/rtems_bsdnet_internal.h \
117    rtems/dhcp.h rtems/tftp.h rtems/ftpfs.h rtems/mkrootfs.h
118include_rtems_HEADERS += rtems/rtems_mii_ioctl.h
119
120libnetworking_a_SOURCES += rtems/sghostname.c rtems/issetugid.c \
121    rtems/rtems_glue.c rtems/rtems_malloc_mbuf.c rtems/rtems_syscall.c \
122    rtems/rtems_bootp.c rtems/rtems_dhcp.c \
123    rtems/rtems_showmbuf.c rtems/rtems_showroute.c rtems/rtems_showifstat.c \
124    rtems/rtems_showipstat.c rtems/rtems_showicmpstat.c \
125    rtems/rtems_showtcpstat.c rtems/rtems_showudpstat.c rtems/rtems_select.c \
126    rtems/mkrootfs.c rtems/rtems_bsdnet_malloc_starvation.c
127libnetworking_a_SOURCES += rtems/rtems_mii_ioctl.c rtems/rtems_mii_ioctl_kern.c
128
129## sys
130
131include_sysdir = $(includedir)/sys
132
133include_sys_HEADERS = sys/buf.h sys/callout.h sys/conf.h sys/domain.h \
134    sys/kernel.h sys/libkern.h sys/linker_set.h sys/malloc.h sys/mbuf.h \
135    sys/mount.h sys/proc.h sys/protosw.h sys/queue.h sys/reboot.h \
136    sys/resourcevar.h sys/rtprio.h sys/select.h sys/signalvar.h sys/socket.h \
137    sys/socketvar.h sys/sysctl.h sys/syslog.h sys/systm.h sys/ttydefaults.h \
138    sys/ucred.h sys/uio.h sys/un.h
139
140# vm
141
142include_vmdir = $(includedir)/vm
143
144include_vm_HEADERS = vm/vm.h vm/vm_extern.h vm/vm_kern.h vm/vm_param.h
145
146# dev
147include_dev_miidir = $(includedir)/dev/mii
148include_dev_mii_HEADERS = dev/mii/mii.h
149
150## libc
151
152libc_CPPFLAGS = -DNOPOLL -DNOSELECT -D__BSD_VISIBLE
153
154noinst_LIBRARIES += libc.a
155libc_a_CPPFLAGS = $(AM_CPPFLAGS) $(libc_CPPFLAGS)
156
157libc_a_SOURCES = libc/addr2ascii.c libc/ascii2addr.c libc/base64.c \
158    libc/gethostbydns.c libc/gethostbyht.c libc/gethostbynis.c \
159    libc/gethostnamadr.c libc/getnetbydns.c libc/getnetbyht.c \
160    libc/getnetbynis.c libc/getnetnamadr.c libc/getproto.c \
161    libc/getprotoent.c libc/getprotoname.c libc/getservbyname.c \
162    libc/getservbyport.c libc/getservent.c libc/herror.c libc/inet_addr.c \
163    libc/inet_lnaof.c libc/inet_makeaddr.c libc/inet_netof.c \
164    libc/inet_network.c libc/inet_ntoa.c libc/inet_ntop.c libc/inet_pton.c \
165    libc/linkaddr.c libc/map_v4v6.c libc/nsap_addr.c libc/ns_name.c \
166    libc/ns_netint.c libc/ns_parse.c libc/ns_print.c libc/ns_ttl.c \
167    libc/res_comp.c libc/res_data.c libc/res_debug.c libc/res_init.c \
168    libc/res_mkquery.c libc/res_mkupdate.c libc/res_query.c libc/res_send.c \
169    libc/res_stubs.c libc/res_update.c libc/strsep.c libc/rcmd.c
170endif
171
172UNUSED_FILES += libc/ether_addr.c libc/gethostname.c libc/inet_neta.c \
173    libc/inet_net_ntop.c libc/inet_net_pton.c libc/iso_addr.c libc/ns_addr.c \
174    libc/ns_ntoa.c libc/recv.c libc/res_config.h libc/send.c
175
176libc_mans = libc/addr2ascii.3 libc/byteorder.3 libc/ethers.3 \
177    libc/gethostbyname.3 libc/getnetent.3 libc/getprotoent.3 \
178    libc/getservent.3 libc/inet.3 libc/iso_addr.3 libc/linkaddr.3 libc/ns.3 \
179    libc/rcmd.3 libc/resolver.3
180EXTRA_DIST += $(libc_mans)
181
182if HAS_NETWORKING
183man_MANS = $(libc_MANS)
184
185## lib
186
187EXTRA_DIST += lib/README
188
189lib_CPPFLAGS = -DNOPOLL -DNOSELECT
190
191noinst_LIBRARIES += lib.a
192lib_a_CPPFLAGS = $(AM_CPPFLAGS) $(lib_CPPFLAGS) -D__BSD_VISIBLE
193
194lib_a_SOURCES = lib/getprotoby.c lib/rtems_bsdnet_ntp.c lib/ftpfs.c \
195    lib/syslog.c lib/tftpDriver.c
196endif
197
198EXTRA_DIST += $(UNUSED_FILES)
199
200include $(srcdir)/preinstall.am
201include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.