[df49c60] | 1 | ## |
---|
[811804fe] | 2 | ## $Id$ |
---|
[df49c60] | 3 | ## |
---|
[e1d8abb] | 4 | |
---|
[14d34d84] | 5 | include $(top_srcdir)/automake/multilib.am |
---|
[8c31a89f] | 6 | include $(top_srcdir)/automake/compile.am |
---|
[dd695d81] | 7 | |
---|
[eecc7d5] | 8 | AM_CPPFLAGS += -I$(srcdir) |
---|
[dd695d81] | 9 | |
---|
[8c31a89f] | 10 | EXTRA_DIST = README |
---|
| 11 | |
---|
[2c9df30] | 12 | # poll is not supported |
---|
[8c31a89f] | 13 | UNUSED_FILES = poll.h |
---|
[2c9df30] | 14 | # Original FreeBSD file |
---|
| 15 | UNUSED_FILES += sys/poll.h |
---|
[07347cb] | 16 | |
---|
[8c31a89f] | 17 | |
---|
[3fe615ba] | 18 | if LIBNETWORKING |
---|
[489c158] | 19 | # Add -DFORWARD_PROTOCOL to enable UDP forwarding -- requires missing net/pf.h |
---|
| 20 | libnetworking_CPPFLAGS = -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS \ |
---|
[66e365f] | 21 | -DDIAGNOSTIC -DBOOTP_COMPAT -D_KERNEL -D__BSD_VISIBLE |
---|
[07347cb] | 22 | |
---|
[66e365f] | 23 | noinst_LIBRARIES = libnetworking.a |
---|
| 24 | libnetworking_a_CPPFLAGS = $(AM_CPPFLAGS) $(libnetworking_CPPFLAGS) |
---|
[65a38bc] | 25 | |
---|
[ce75da6] | 26 | ## poll.h is not in the list because RTEMS does not have poll() |
---|
| 27 | ## and installing poll.h confuses autoconf. |
---|
[4e97166] | 28 | include_HEADERS = netdb.h |
---|
[66e365f] | 29 | include_HEADERS += resolv.h syslog.h |
---|
[2c9df30] | 30 | |
---|
[66e365f] | 31 | libnetworking_a_SOURCES = opt_atalk.h opt_bdg.h opt_compat.h opt_inet6.h \ |
---|
| 32 | opt_inet.h opt_ipfw.h opt_ipx.h opt_mac.h opt_mrouting.h opt_netgraph.h \ |
---|
[4e97166] | 33 | opt_tcpdebug.h opt_ipsec.h loop.h |
---|
| 34 | libnetworking_a_SOURCES += opt_ppp.h |
---|
[66e365f] | 35 | libnetworking_a_SOURCES += bpfilter.h |
---|
[2c9df30] | 36 | |
---|
[471bcf0] | 37 | # arpa |
---|
| 38 | |
---|
| 39 | include_arpadir = $(includedir)/arpa |
---|
| 40 | |
---|
| 41 | include_arpa_HEADERS = arpa/ftp.h arpa/inet.h arpa/nameser.h \ |
---|
[66e365f] | 42 | arpa/nameser_compat.h |
---|
[471bcf0] | 43 | |
---|
[dd695d81] | 44 | ## kern |
---|
| 45 | |
---|
[660f400] | 46 | libnetworking_a_SOURCES += kern/kern_mib.c kern/kern_subr.c \ |
---|
[234f7adb] | 47 | kern/kern_sysctl.c kern/uipc_domain.c kern/uipc_mbuf.c \ |
---|
| 48 | kern/uipc_socket.c kern/uipc_socket2.c |
---|
[dd695d81] | 49 | |
---|
[471bcf0] | 50 | ## machine |
---|
| 51 | |
---|
| 52 | include_machinedir = $(includedir)/machine |
---|
| 53 | |
---|
[cf9fd567] | 54 | include_machine_HEADERS = machine/cpu.h machine/cpufunc.h \ |
---|
[471bcf0] | 55 | machine/endian.h machine/in_cksum.h machine/vmparam.h |
---|
| 56 | |
---|
[8c31a89f] | 57 | libnetworking_a_SOURCES += machine/limits.h |
---|
| 58 | |
---|
[9eadce0] | 59 | ## net |
---|
| 60 | |
---|
| 61 | include_netdir = $(includedir)/net |
---|
| 62 | |
---|
| 63 | include_net_HEADERS = net/bpf.h net/ethernet.h net/if.h net/if_arp.h \ |
---|
[66e365f] | 64 | net/if_dl.h net/if_llc.h net/if_ppp.h net/if_types.h net/if_var.h \ |
---|
[1e4e5f21] | 65 | net/netisr.h net/ppp_defs.h net/radix.h net/raw_cb.h \ |
---|
[c85f596b] | 66 | net/route.h net/if_pppvar.h net/slcompress.h |
---|
[4e97166] | 67 | include_net_HEADERS += net/if_media.h |
---|
[84e49054] | 68 | include_net_HEADERS += net/ppp_comp.h |
---|
[9eadce0] | 69 | |
---|
[234f7adb] | 70 | libnetworking_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 \ |
---|
[c85f596b] | 72 | net/if_ppp.c net/ppp_tty.c net/slcompress.c |
---|
[dd695d81] | 73 | |
---|
[9eadce0] | 74 | ## netinet |
---|
| 75 | |
---|
| 76 | include_netinetdir = $(includedir)/netinet |
---|
| 77 | |
---|
[007c9f7] | 78 | include_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 |
---|
[9eadce0] | 85 | |
---|
[234f7adb] | 86 | libnetworking_a_SOURCES += netinet/if_ether.c netinet/igmp.c netinet/in.c \ |
---|
[dd695d81] | 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 \ |
---|
[ae60724] | 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 |
---|
[8c31a89f] | 94 | |
---|
[9eadce0] | 95 | ## nfs |
---|
| 96 | |
---|
| 97 | include_nfsdir = $(includedir)/nfs |
---|
| 98 | |
---|
[701740c] | 99 | include_nfs_HEADERS = nfs/nfsproto.h |
---|
[4e97166] | 100 | include_nfs_HEADERS += nfs/rpcv2.h |
---|
| 101 | include_nfs_HEADERS += nfs/xdr_subs.h |
---|
[9eadce0] | 102 | |
---|
[234f7adb] | 103 | libnetworking_a_SOURCES += nfs/bootp_subr.c |
---|
[dd695d81] | 104 | |
---|
[66e365f] | 105 | ## nfsclient |
---|
| 106 | include_nfsclientdir = $(includedir)/nfsclient |
---|
| 107 | |
---|
| 108 | include_nfsclient_HEADERS = nfsclient/nfsargs.h nfsclient/nfsdiskless.h |
---|
| 109 | |
---|
[dd695d81] | 110 | ## rtems |
---|
| 111 | |
---|
| 112 | include_rtemsdir = $(includedir)/rtems |
---|
| 113 | |
---|
| 114 | include_rtems_HEADERS = rtems/rtems_bsdnet.h rtems/rtems_bsdnet_internal.h \ |
---|
[66e365f] | 115 | rtems/dhcp.h rtems/tftp.h rtems/ftpfs.h rtems/mkrootfs.h |
---|
[4e97166] | 116 | include_rtems_HEADERS += rtems/rtems_mii_ioctl.h |
---|
[dd695d81] | 117 | |
---|
[8c31a89f] | 118 | libnetworking_a_SOURCES += rtems/sghostname.c rtems/issetugid.c \ |
---|
[be31de7] | 119 | rtems/rtems_glue.c rtems/rtems_malloc_mbuf.c rtems/rtems_syscall.c \ |
---|
[66e365f] | 120 | rtems/rtems_bootp.c rtems/rtems_dhcp.c \ |
---|
[8c31a89f] | 121 | rtems/rtems_showmbuf.c rtems/rtems_showroute.c rtems/rtems_showifstat.c \ |
---|
[007c9f7] | 122 | rtems/rtems_showipstat.c rtems/rtems_showicmpstat.c \ |
---|
| 123 | rtems/rtems_showtcpstat.c rtems/rtems_showudpstat.c rtems/rtems_select.c \ |
---|
| 124 | rtems/mkrootfs.c rtems/rtems_bsdnet_malloc_starvation.c |
---|
[4e97166] | 125 | libnetworking_a_SOURCES += rtems/rtems_mii_ioctl.c rtems/rtems_mii_ioctl_kern.c |
---|
[dd695d81] | 126 | |
---|
[9eadce0] | 127 | ## sys |
---|
[471bcf0] | 128 | |
---|
| 129 | include_sysdir = $(includedir)/sys |
---|
| 130 | |
---|
[462fb64] | 131 | include_sys_HEADERS = sys/callout.h sys/conf.h sys/domain.h \ |
---|
[007c9f7] | 132 | sys/kernel.h sys/libkern.h sys/linker_set.h sys/malloc.h sys/mbuf.h \ |
---|
| 133 | sys/mount.h sys/proc.h sys/protosw.h sys/queue.h sys/reboot.h \ |
---|
[9d155ac0] | 134 | sys/resourcevar.h sys/select.h sys/signalvar.h sys/socket.h \ |
---|
[007c9f7] | 135 | sys/socketvar.h sys/sysctl.h sys/syslog.h sys/systm.h sys/ttydefaults.h \ |
---|
| 136 | sys/ucred.h sys/uio.h sys/un.h |
---|
[471bcf0] | 137 | |
---|
| 138 | # vm |
---|
| 139 | |
---|
| 140 | include_vmdir = $(includedir)/vm |
---|
| 141 | |
---|
| 142 | include_vm_HEADERS = vm/vm.h vm/vm_extern.h vm/vm_kern.h vm/vm_param.h |
---|
| 143 | |
---|
[4e97166] | 144 | # dev |
---|
| 145 | include_dev_miidir = $(includedir)/dev/mii |
---|
| 146 | include_dev_mii_HEADERS = dev/mii/mii.h |
---|
| 147 | |
---|
[489c158] | 148 | ## libc |
---|
| 149 | |
---|
[66e365f] | 150 | libc_CPPFLAGS = -DNOPOLL -DNOSELECT -D__BSD_VISIBLE |
---|
[07347cb] | 151 | |
---|
[66e365f] | 152 | noinst_LIBRARIES += libc.a |
---|
| 153 | libc_a_CPPFLAGS = $(AM_CPPFLAGS) $(libc_CPPFLAGS) |
---|
[07347cb] | 154 | |
---|
[234f7adb] | 155 | libc_a_SOURCES = libc/addr2ascii.c libc/ascii2addr.c libc/base64.c \ |
---|
[489c158] | 156 | libc/gethostbydns.c libc/gethostbyht.c libc/gethostbynis.c \ |
---|
| 157 | libc/gethostnamadr.c libc/getnetbydns.c libc/getnetbyht.c \ |
---|
| 158 | libc/getnetbynis.c libc/getnetnamadr.c libc/getproto.c \ |
---|
| 159 | libc/getprotoent.c libc/getprotoname.c libc/getservbyname.c \ |
---|
| 160 | libc/getservbyport.c libc/getservent.c libc/herror.c libc/inet_addr.c \ |
---|
| 161 | libc/inet_lnaof.c libc/inet_makeaddr.c libc/inet_netof.c \ |
---|
| 162 | libc/inet_network.c libc/inet_ntoa.c libc/inet_ntop.c libc/inet_pton.c \ |
---|
| 163 | libc/linkaddr.c libc/map_v4v6.c libc/nsap_addr.c libc/ns_name.c \ |
---|
| 164 | libc/ns_netint.c libc/ns_parse.c libc/ns_print.c libc/ns_ttl.c \ |
---|
| 165 | libc/res_comp.c libc/res_data.c libc/res_debug.c libc/res_init.c \ |
---|
| 166 | libc/res_mkquery.c libc/res_mkupdate.c libc/res_query.c libc/res_send.c \ |
---|
[ada4d9b] | 167 | libc/res_stubs.c libc/res_update.c libc/strsep.c libc/rcmd.c |
---|
| 168 | libc_a_SOURCES += libc/res_config.h |
---|
[8c31a89f] | 169 | endif |
---|
| 170 | |
---|
| 171 | UNUSED_FILES += libc/ether_addr.c libc/gethostname.c libc/inet_neta.c \ |
---|
[0e609ca] | 172 | libc/inet_net_ntop.c libc/inet_net_pton.c libc/ns_addr.c \ |
---|
| 173 | libc/ns_ntoa.c libc/recv.c libc/send.c |
---|
[489c158] | 174 | |
---|
[8c31a89f] | 175 | libc_mans = libc/addr2ascii.3 libc/byteorder.3 libc/ethers.3 \ |
---|
[489c158] | 176 | libc/gethostbyname.3 libc/getnetent.3 libc/getprotoent.3 \ |
---|
[0e609ca] | 177 | libc/getservent.3 libc/inet.3 libc/linkaddr.3 libc/ns.3 \ |
---|
[489c158] | 178 | libc/rcmd.3 libc/resolver.3 |
---|
[8c31a89f] | 179 | EXTRA_DIST += $(libc_mans) |
---|
[489c158] | 180 | |
---|
[3fe615ba] | 181 | if LIBNETWORKING |
---|
[8c31a89f] | 182 | man_MANS = $(libc_MANS) |
---|
[489c158] | 183 | |
---|
| 184 | ## lib |
---|
| 185 | |
---|
[8c31a89f] | 186 | EXTRA_DIST += lib/README |
---|
| 187 | |
---|
[489c158] | 188 | lib_CPPFLAGS = -DNOPOLL -DNOSELECT |
---|
| 189 | |
---|
[66e365f] | 190 | noinst_LIBRARIES += lib.a |
---|
| 191 | lib_a_CPPFLAGS = $(AM_CPPFLAGS) $(lib_CPPFLAGS) -D__BSD_VISIBLE |
---|
[489c158] | 192 | |
---|
[234f7adb] | 193 | lib_a_SOURCES = lib/getprotoby.c lib/rtems_bsdnet_ntp.c lib/ftpfs.c \ |
---|
[489c158] | 194 | lib/syslog.c lib/tftpDriver.c |
---|
[007c9f7] | 195 | endif |
---|
| 196 | |
---|
[8c31a89f] | 197 | EXTRA_DIST += $(UNUSED_FILES) |
---|
| 198 | |
---|
[66e365f] | 199 | include $(srcdir)/preinstall.am |
---|
[14d34d84] | 200 | include $(top_srcdir)/automake/local.am |
---|