1 | include $(top_srcdir)/automake/multilib.am |
---|
2 | include $(top_srcdir)/automake/compile.am |
---|
3 | |
---|
4 | project_lib_LIBRARIES = |
---|
5 | TMPINSTALL_FILES = |
---|
6 | |
---|
7 | project_lib_LIBRARIES += libftpfs.a |
---|
8 | libftpfs_a_SOURCES = lib/ftpfs.c |
---|
9 | $(PROJECT_LIB)/libftpfs.a: libftpfs.a |
---|
10 | $(INSTALL_DATA) $< $(PROJECT_LIB)/libftpfs.a |
---|
11 | TMPINSTALL_FILES += $(PROJECT_LIB)/libftpfs.a |
---|
12 | |
---|
13 | project_lib_LIBRARIES += libtftpfs.a |
---|
14 | libtftpfs_a_SOURCES = lib/tftpDriver.c |
---|
15 | $(PROJECT_LIB)/libtftpfs.a: libtftpfs.a |
---|
16 | $(INSTALL_DATA) $< $(PROJECT_LIB)/libtftpfs.a |
---|
17 | TMPINSTALL_FILES += $(PROJECT_LIB)/libtftpfs.a |
---|
18 | |
---|
19 | # poll is not supported |
---|
20 | UNUSED_FILES = poll.h |
---|
21 | # Original FreeBSD file |
---|
22 | UNUSED_FILES += sys/poll.h |
---|
23 | |
---|
24 | |
---|
25 | if LIBNETWORKING |
---|
26 | # Add -DFORWARD_PROTOCOL to enable UDP forwarding -- requires missing net/pf.h |
---|
27 | libnetworking_CPPFLAGS = -DINET -DNFS \ |
---|
28 | -DDIAGNOSTIC -DBOOTP_COMPAT -D_KERNEL -D__BSD_VISIBLE |
---|
29 | |
---|
30 | noinst_LIBRARIES = libnetworking.a |
---|
31 | libnetworking_a_CPPFLAGS = $(AM_CPPFLAGS) $(libnetworking_CPPFLAGS) |
---|
32 | |
---|
33 | ## poll.h is not in the list because RTEMS does not have poll() |
---|
34 | ## and installing poll.h confuses autoconf. |
---|
35 | libnetworking_a_SOURCES = opt_atalk.h opt_bdg.h opt_compat.h opt_inet6.h \ |
---|
36 | opt_inet.h opt_ipfw.h opt_ipx.h opt_mac.h opt_mrouting.h opt_netgraph.h \ |
---|
37 | opt_tcpdebug.h opt_ipsec.h loop.h |
---|
38 | libnetworking_a_SOURCES += opt_ppp.h |
---|
39 | libnetworking_a_SOURCES += bpfilter.h |
---|
40 | |
---|
41 | # arpa |
---|
42 | |
---|
43 | ## kern |
---|
44 | |
---|
45 | libnetworking_a_SOURCES += kern/kern_mib.c kern/kern_subr.c \ |
---|
46 | kern/kern_sysctl.c kern/uipc_domain.c kern/uipc_mbuf.c \ |
---|
47 | kern/uipc_socket.c kern/uipc_socket2.c |
---|
48 | |
---|
49 | ## machine |
---|
50 | |
---|
51 | libnetworking_a_SOURCES += machine/limits.h |
---|
52 | |
---|
53 | ## net |
---|
54 | |
---|
55 | libnetworking_a_SOURCES += net/if.c net/if_ethersubr.c net/if_loop.c \ |
---|
56 | net/radix.c net/route.c net/rtsock.c net/raw_cb.c net/raw_usrreq.c \ |
---|
57 | net/if_ppp.c net/ppp_tty.c net/slcompress.c |
---|
58 | |
---|
59 | ## netinet |
---|
60 | |
---|
61 | libnetworking_a_SOURCES += netinet/if_ether.c netinet/igmp.c netinet/in.c \ |
---|
62 | netinet/in_cksum.c netinet/in_pcb.c netinet/in_proto.c netinet/in_rmx.c \ |
---|
63 | netinet/ip_divert.c netinet/ip_fw.c netinet/ip_icmp.c netinet/ip_input.c \ |
---|
64 | netinet/ip_mroute.c netinet/ip_output.c netinet/raw_ip.c \ |
---|
65 | netinet/tcp_debug.c netinet/tcp_input.c netinet/tcp_output.c \ |
---|
66 | netinet/tcp_subr.c netinet/tcp_timer.c netinet/tcp_usrreq.c \ |
---|
67 | netinet/udp_usrreq.c netinet/in_cksum_arm.h netinet/in_cksum_i386.h \ |
---|
68 | netinet/in_cksum_m68k.h netinet/in_cksum_powerpc.h |
---|
69 | |
---|
70 | ## netinet6 |
---|
71 | |
---|
72 | |
---|
73 | ## nfs |
---|
74 | |
---|
75 | libnetworking_a_SOURCES += nfs/bootp_subr.c |
---|
76 | |
---|
77 | ## nfsclient |
---|
78 | ## rtems |
---|
79 | |
---|
80 | libnetworking_a_SOURCES += rtems/sghostname.c \ |
---|
81 | rtems/rtems_glue.c rtems/rtems_malloc_mbuf.c rtems/rtems_syscall.c \ |
---|
82 | rtems/rtems_bootp.c rtems/rtems_dhcp.c rtems/rtems_dhcp_failsafe.c \ |
---|
83 | rtems/rtems_showmbuf.c rtems/rtems_showroute.c rtems/rtems_showifstat.c \ |
---|
84 | rtems/rtems_showipstat.c rtems/rtems_showicmpstat.c \ |
---|
85 | rtems/rtems_showtcpstat.c rtems/rtems_showudpstat.c rtems/rtems_select.c \ |
---|
86 | rtems/mkrootfs.c rtems/rtems_bsdnet_malloc_starvation.c \ |
---|
87 | rtems/rtems_mii_ioctl.c rtems/rtems_mii_ioctl_kern.c \ |
---|
88 | rtems/rtems_socketpair.c |
---|
89 | |
---|
90 | ## sys |
---|
91 | |
---|
92 | # vm |
---|
93 | |
---|
94 | # dev |
---|
95 | ## libc |
---|
96 | |
---|
97 | libc_CPPFLAGS = -DNOPOLL -DNOSELECT -D__BSD_VISIBLE -D_THREAD_SAFE |
---|
98 | |
---|
99 | noinst_LIBRARIES += libc.a |
---|
100 | libc_a_CPPFLAGS = $(AM_CPPFLAGS) $(libc_CPPFLAGS) |
---|
101 | |
---|
102 | libc_a_SOURCES = libc/base64.c \ |
---|
103 | libc/gethostbydns.c libc/gethostbyht.c libc/gethostbynis.c \ |
---|
104 | libc/gethostnamadr.c libc/getnetbydns.c libc/getnetbyht.c \ |
---|
105 | libc/getnetbynis.c libc/getnetnamadr.c libc/getnameinfo.c libc/getproto.c \ |
---|
106 | libc/getprotoent.c libc/getprotoname.c libc/getservbyname.c \ |
---|
107 | libc/getservbyport.c libc/getservent.c libc/herror.c libc/inet_addr.c \ |
---|
108 | libc/inet_lnaof.c libc/inet_makeaddr.c libc/inet_netof.c \ |
---|
109 | libc/inet_network.c libc/inet_ntoa.c libc/inet_ntop.c libc/inet_pton.c \ |
---|
110 | libc/linkaddr.c libc/map_v4v6.c libc/nsap_addr.c libc/ns_name.c \ |
---|
111 | libc/ns_netint.c libc/ns_parse.c libc/ns_print.c libc/ns_ttl.c \ |
---|
112 | libc/res_comp.c libc/res_data.c libc/res_debug.c libc/res_init.c \ |
---|
113 | libc/res_mkquery.c libc/res_mkupdate.c libc/res_query.c libc/res_send.c \ |
---|
114 | libc/res_stubs.c libc/res_update.c libc/strsep.c libc/rcmd.c |
---|
115 | libc_a_SOURCES += libc/res_config.h |
---|
116 | libc_a_SOURCES += libc/send.c |
---|
117 | libc_a_SOURCES += libc/recv.c |
---|
118 | libc_a_SOURCES += libc/getifaddrs.c |
---|
119 | libc_a_SOURCES += libc/if_indextoname.c |
---|
120 | libc_a_SOURCES += libc/if_nameindex.c |
---|
121 | endif |
---|
122 | |
---|
123 | UNUSED_FILES += libc/ether_addr.c libc/gethostname.c libc/inet_neta.c \ |
---|
124 | libc/inet_net_ntop.c libc/inet_net_pton.c libc/ns_addr.c \ |
---|
125 | libc/ns_ntoa.c |
---|
126 | |
---|
127 | libc_mans = libc/byteorder.3 libc/ethers.3 \ |
---|
128 | libc/gethostbyname.3 libc/getnetent.3 libc/getprotoent.3 \ |
---|
129 | libc/getservent.3 libc/inet.3 libc/linkaddr.3 libc/ns.3 \ |
---|
130 | libc/rcmd.3 libc/resolver.3 |
---|
131 | |
---|
132 | if LIBNETWORKING |
---|
133 | man_MANS = $(libc_MANS) |
---|
134 | |
---|
135 | ## lib |
---|
136 | |
---|
137 | |
---|
138 | lib_CPPFLAGS = -DNOPOLL -DNOSELECT |
---|
139 | |
---|
140 | noinst_LIBRARIES += lib.a |
---|
141 | lib_a_CPPFLAGS = $(AM_CPPFLAGS) $(lib_CPPFLAGS) -D__BSD_VISIBLE |
---|
142 | |
---|
143 | lib_a_SOURCES = lib/getprotoby.c lib/rtems_bsdnet_ntp.c \ |
---|
144 | lib/syslog.c |
---|
145 | lib_a_SOURCES += rtems/rtems_syscall_api.c |
---|
146 | endif |
---|
147 | |
---|
148 | |
---|
149 | include $(top_srcdir)/automake/local.am |
---|
150 | if LIBNETWORKING |
---|
151 | include $(srcdir)/headers.am |
---|
152 | endif |
---|