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

Last change on this file since fea9a7a was fea9a7a, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 30, 2018 at 7:48:13 AM

ftpfs: Always build FTP client

Move FTP client filesystem to separate library libftpfs.a.

Update #3419.

  • Property mode set to 100644
File size: 4.9 KB
Line 
1include $(top_srcdir)/automake/multilib.am
2include $(top_srcdir)/automake/compile.am
3
4project_lib_LIBRARIES =
5TMPINSTALL_FILES =
6
7project_lib_LIBRARIES += libftpfs.a
8libftpfs_a_SOURCES = lib/ftpfs.c
9$(PROJECT_LIB)/libftpfs.a: libftpfs.a
10        $(INSTALL_DATA) $< $(PROJECT_LIB)/libftpfs.a
11TMPINSTALL_FILES += $(PROJECT_LIB)/libftpfs.a
12
13project_lib_LIBRARIES += libtftpfs.a
14libtftpfs_a_SOURCES = lib/tftpDriver.c
15$(PROJECT_LIB)/libtftpfs.a: libtftpfs.a
16        $(INSTALL_DATA) $< $(PROJECT_LIB)/libtftpfs.a
17TMPINSTALL_FILES += $(PROJECT_LIB)/libtftpfs.a
18
19# poll is not supported
20UNUSED_FILES = poll.h
21# Original FreeBSD file
22UNUSED_FILES += sys/poll.h
23
24
25if LIBNETWORKING
26# Add -DFORWARD_PROTOCOL to enable UDP forwarding -- requires missing net/pf.h
27libnetworking_CPPFLAGS = -DINET -DNFS \
28    -DDIAGNOSTIC -DBOOTP_COMPAT -D_KERNEL -D__BSD_VISIBLE
29
30noinst_LIBRARIES = libnetworking.a
31libnetworking_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.
35libnetworking_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
38libnetworking_a_SOURCES += opt_ppp.h
39libnetworking_a_SOURCES += bpfilter.h
40
41# arpa
42
43## kern
44
45libnetworking_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
51libnetworking_a_SOURCES += machine/limits.h
52
53## net
54
55libnetworking_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
61libnetworking_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
75libnetworking_a_SOURCES += nfs/bootp_subr.c
76
77## nfsclient
78## rtems
79
80libnetworking_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
97libc_CPPFLAGS = -DNOPOLL -DNOSELECT -D__BSD_VISIBLE -D_THREAD_SAFE
98
99noinst_LIBRARIES += libc.a
100libc_a_CPPFLAGS = $(AM_CPPFLAGS) $(libc_CPPFLAGS)
101
102libc_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
115libc_a_SOURCES += libc/res_config.h
116libc_a_SOURCES += libc/send.c
117libc_a_SOURCES += libc/recv.c
118libc_a_SOURCES += libc/getifaddrs.c
119libc_a_SOURCES += libc/if_indextoname.c
120libc_a_SOURCES += libc/if_nameindex.c
121endif
122
123UNUSED_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
127libc_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
132if LIBNETWORKING
133man_MANS = $(libc_MANS)
134
135## lib
136
137
138lib_CPPFLAGS = -DNOPOLL -DNOSELECT
139
140noinst_LIBRARIES += lib.a
141lib_a_CPPFLAGS = $(AM_CPPFLAGS) $(lib_CPPFLAGS) -D__BSD_VISIBLE
142
143lib_a_SOURCES = lib/getprotoby.c lib/rtems_bsdnet_ntp.c \
144    lib/syslog.c
145lib_a_SOURCES += rtems/rtems_syscall_api.c
146endif
147
148
149include $(top_srcdir)/automake/local.am
150if LIBNETWORKING
151include $(srcdir)/headers.am
152endif
Note: See TracBrowser for help on using the repository browser.