[df49c60] | 1 | ## |
---|
[811804fe] | 2 | ## $Id$ |
---|
[df49c60] | 3 | ## |
---|
[e1d8abb] | 4 | |
---|
[f22ebf0] | 5 | ACLOCAL_AMFLAGS = -I ../aclocal |
---|
[e1d8abb] | 6 | |
---|
[dd695d81] | 7 | include $(top_srcdir)/../automake/multilib.am |
---|
| 8 | include $(top_srcdir)/../automake/compile.am |
---|
| 9 | include $(top_srcdir)/../automake/lib.am |
---|
| 10 | |
---|
| 11 | # Add -DFORWARD_PROTOCOL to enable UDP forwarding -- requires missing net/pf.h |
---|
| 12 | AM_CPPFLAGS += -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS -DDIAGNOSTIC \ |
---|
| 13 | -DBOOTP_COMPAT |
---|
| 14 | |
---|
| 15 | LIB = $(ARCH)/libnetworking.a |
---|
| 16 | |
---|
| 17 | SUBDIRS = . lib libc |
---|
[8a79786] | 18 | SUBDIRS += wrapup |
---|
[65a38bc] | 19 | |
---|
[ce75da6] | 20 | ## poll.h is not in the list because RTEMS does not have poll() |
---|
| 21 | ## and installing poll.h confuses autoconf. |
---|
[e6d8fe47] | 22 | include_HEADERS = \ |
---|
| 23 | bpfilter.h loop.h netdb.h opt_ipfw.h opt_mrouting.h \ |
---|
[ce75da6] | 24 | opt_tcpdebug.h resolv.h syslog.h memory.h |
---|
[e1d8abb] | 25 | |
---|
[471bcf0] | 26 | $(PROJECT_INCLUDE): |
---|
| 27 | @$(mkinstalldirs) $@ |
---|
| 28 | |
---|
[0d30932] | 29 | PREINSTALL_FILES = $(PROJECT_INCLUDE) \ |
---|
[e6d8fe47] | 30 | $(include_HEADERS:%=$(PROJECT_INCLUDE)/%) |
---|
| 31 | |
---|
[471bcf0] | 32 | # arpa |
---|
| 33 | |
---|
| 34 | include_arpadir = $(includedir)/arpa |
---|
| 35 | |
---|
| 36 | include_arpa_HEADERS = arpa/ftp.h arpa/inet.h arpa/nameser.h \ |
---|
| 37 | arpa/nameser_compat.h arpa/telnet.h |
---|
| 38 | |
---|
| 39 | $(PROJECT_INCLUDE)/arpa: |
---|
| 40 | @$(mkinstalldirs) $@ |
---|
| 41 | |
---|
| 42 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/arpa \ |
---|
| 43 | $(include_arpa_HEADERS:%=$(PROJECT_INCLUDE)/%) |
---|
| 44 | |
---|
[dd695d81] | 45 | ## kern |
---|
| 46 | |
---|
[36799d4] | 47 | kern_C_FILES = kern/kern_mib.c kern/kern_subr.c kern/uipc_domain.c \ |
---|
| 48 | kern/uipc_mbuf.c kern/uipc_socket.c kern/uipc_socket2.c |
---|
[dd695d81] | 49 | OBJS = $(kern_C_FILES:kern/%.c=$(ARCH)/%.$(OBJEXT)) |
---|
| 50 | |
---|
| 51 | $(ARCH)/%.$(OBJEXT): kern/%.c |
---|
| 52 | ${COMPILE} -o $@ -c $< |
---|
| 53 | |
---|
| 54 | EXTRA_DIST = $(kern_C_FILES) |
---|
| 55 | |
---|
[471bcf0] | 56 | ## machine |
---|
| 57 | |
---|
| 58 | include_machinedir = $(includedir)/machine |
---|
| 59 | |
---|
| 60 | include_machine_HEADERS = machine/conf.h machine/cpu.h machine/cpufunc.h \ |
---|
| 61 | machine/endian.h machine/in_cksum.h machine/vmparam.h |
---|
| 62 | |
---|
| 63 | $(PROJECT_INCLUDE)/machine: |
---|
| 64 | @$(mkinstalldirs) $@ |
---|
| 65 | |
---|
| 66 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/machine \ |
---|
| 67 | $(include_machine_HEADERS:%=$(PROJECT_INCLUDE)/%) |
---|
| 68 | |
---|
[9eadce0] | 69 | ## net |
---|
| 70 | |
---|
| 71 | include_netdir = $(includedir)/net |
---|
| 72 | |
---|
| 73 | include_net_HEADERS = net/bpf.h net/ethernet.h net/if.h net/if_arp.h \ |
---|
| 74 | net/if_dl.h net/if_llc.h net/if_ppp.h net/if_types.h net/netisr.h \ |
---|
| 75 | net/ppp-comp.h net/ppp_defs.h net/radix.h net/raw_cb.h net/route.h \ |
---|
| 76 | net/if_pppvar.h net/pppcompress.h |
---|
| 77 | |
---|
| 78 | $(PROJECT_INCLUDE)/net: |
---|
| 79 | @$(mkinstalldirs) $@ |
---|
| 80 | |
---|
| 81 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/net \ |
---|
| 82 | $(include_net_HEADERS:%=$(PROJECT_INCLUDE)/%) |
---|
| 83 | |
---|
[dd695d81] | 84 | net_C_FILES = net/if.c net/if_ethersubr.c net/if_loop.c net/radix.c \ |
---|
| 85 | net/route.c net/rtsock.c net/raw_cb.c net/raw_usrreq.c net/if_ppp.c \ |
---|
| 86 | net/ppp_tty.c net/pppcompress.c |
---|
| 87 | OBJS += $(net_C_FILES:net/%.c=$(ARCH)/%.$(OBJEXT)) |
---|
| 88 | |
---|
| 89 | $(ARCH)/%.$(OBJEXT): net/%.c |
---|
| 90 | ${COMPILE} -o $@ -c $< |
---|
| 91 | |
---|
| 92 | EXTRA_DIST += $(net_C_FILES) |
---|
| 93 | |
---|
[9eadce0] | 94 | ## netinet |
---|
| 95 | |
---|
| 96 | include_netinetdir = $(includedir)/netinet |
---|
| 97 | |
---|
| 98 | include_netinet_HEADERS = netinet/icmp_var.h netinet/if_ether.h netinet/igmp.h \ |
---|
| 99 | netinet/igmp_var.h netinet/in.h netinet/in_pcb.h netinet/in_systm.h \ |
---|
| 100 | netinet/in_var.h netinet/ip.h netinet/ip_fw.h netinet/ip_icmp.h \ |
---|
| 101 | netinet/ip_mroute.h netinet/ip_var.h netinet/tcp.h netinet/tcp_debug.h \ |
---|
| 102 | netinet/tcp_fsm.h netinet/tcp_seq.h netinet/tcp_timer.h netinet/tcp_var.h \ |
---|
| 103 | netinet/tcpip.h netinet/udp.h netinet/udp_var.h |
---|
| 104 | |
---|
| 105 | $(PROJECT_INCLUDE)/netinet: |
---|
| 106 | @$(mkinstalldirs) $@ |
---|
| 107 | |
---|
| 108 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/netinet \ |
---|
| 109 | $(include_netinet_HEADERS:%=$(PROJECT_INCLUDE)/%) |
---|
| 110 | |
---|
[dd695d81] | 111 | netinet_C_FILES = netinet/if_ether.c netinet/igmp.c netinet/in.c \ |
---|
| 112 | netinet/in_cksum.c netinet/in_pcb.c netinet/in_proto.c netinet/in_rmx.c \ |
---|
| 113 | netinet/ip_divert.c netinet/ip_fw.c netinet/ip_icmp.c netinet/ip_input.c \ |
---|
| 114 | netinet/ip_mroute.c netinet/ip_output.c netinet/raw_ip.c \ |
---|
| 115 | netinet/tcp_debug.c netinet/tcp_input.c netinet/tcp_output.c \ |
---|
| 116 | netinet/tcp_subr.c netinet/tcp_timer.c netinet/tcp_usrreq.c \ |
---|
| 117 | netinet/udp_usrreq.c |
---|
[b6e283de] | 118 | OBJS += $(netinet_C_FILES:netinet/%.c=$(ARCH)/%.$(OBJEXT)) |
---|
[dd695d81] | 119 | |
---|
| 120 | $(ARCH)/%.$(OBJEXT): netinet/%.c |
---|
| 121 | ${COMPILE} -o $@ -c $< |
---|
| 122 | |
---|
| 123 | EXTRA_DIST += $(netinet_C_FILES) |
---|
| 124 | |
---|
[9eadce0] | 125 | ## nfs |
---|
| 126 | |
---|
| 127 | include_nfsdir = $(includedir)/nfs |
---|
| 128 | |
---|
| 129 | include_nfs_HEADERS = nfs/krpc.h nfs/nfs.h nfs/nfsdiskless.h nfs/nfsproto.h \ |
---|
| 130 | nfs/rpcv2.h nfs/xdr_subs.h |
---|
| 131 | |
---|
| 132 | $(PROJECT_INCLUDE)/nfs: |
---|
| 133 | @$(mkinstalldirs) $@ |
---|
| 134 | |
---|
| 135 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/nfs \ |
---|
| 136 | $(include_nfs_HEADERS:%=$(PROJECT_INCLUDE)/%) |
---|
| 137 | |
---|
[dd695d81] | 138 | nfs_C_FILES = nfs/bootp_subr.c |
---|
| 139 | OBJS += $(nfs_C_FILES:nfs/%.c=$(ARCH)/%.$(OBJEXT)) |
---|
| 140 | |
---|
| 141 | $(ARCH)/%.$(OBJEXT): nfs/%.c |
---|
| 142 | ${COMPILE} -o $@ -c $< |
---|
| 143 | |
---|
| 144 | EXTRA_DIST += $(nfs_C_FILES) |
---|
| 145 | |
---|
| 146 | ## rtems |
---|
| 147 | |
---|
| 148 | include_rtemsdir = $(includedir)/rtems |
---|
| 149 | |
---|
| 150 | include_rtems_HEADERS = rtems/rtems_bsdnet.h rtems/rtems_bsdnet_internal.h \ |
---|
| 151 | rtems/tftp.h rtems/ftpfs.h rtems/mkrootfs.h |
---|
| 152 | |
---|
| 153 | $(PROJECT_INCLUDE)/rtems: |
---|
| 154 | @$(mkinstalldirs) $@ |
---|
| 155 | |
---|
| 156 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems \ |
---|
| 157 | $(include_rtems_HEADERS:%=$(PROJECT_INCLUDE)/%) |
---|
| 158 | |
---|
| 159 | rtems_C_FILES = rtems/sghostname.c rtems/issetugid.c rtems/rtems_glue.c rtems/rtems_syscall.c \ |
---|
| 160 | rtems/rtems_bootp.c rtems/rtems_showmbuf.c rtems/rtems_showroute.c rtems/rtems_showifstat.c \ |
---|
| 161 | rtems/rtems_showipstat.c rtems/rtems_showicmpstat.c rtems/rtems_showtcpstat.c \ |
---|
| 162 | rtems/rtems_showudpstat.c rtems/rtems_select.c rtems/mkrootfs.c |
---|
| 163 | OBJS += $(rtems_C_FILES:rtems/%.c=$(ARCH)/%.$(OBJEXT)) |
---|
| 164 | |
---|
| 165 | $(ARCH)/%.$(OBJEXT): rtems/%.c |
---|
| 166 | ${COMPILE} -o $@ -c $< |
---|
| 167 | |
---|
| 168 | EXTRA_DIST += $(rtems_C_FILES) |
---|
| 169 | |
---|
[9eadce0] | 170 | ## sys |
---|
[471bcf0] | 171 | |
---|
| 172 | include_sysdir = $(includedir)/sys |
---|
| 173 | |
---|
| 174 | include_sys_HEADERS = sys/buf.h sys/callout.h sys/conf.h sys/domain.h \ |
---|
[36799d4] | 175 | sys/kernel.h sys/libkern.h sys/linker_set.h sys/malloc.h sys/mbuf.h sys/mount.h \ |
---|
[471bcf0] | 176 | sys/proc.h sys/protosw.h sys/queue.h sys/reboot.h sys/resourcevar.h \ |
---|
| 177 | sys/rtprio.h sys/select.h sys/signalvar.h sys/socket.h sys/socketvar.h \ |
---|
| 178 | sys/sysctl.h sys/syslog.h sys/systm.h sys/ttydefaults.h sys/ucred.h \ |
---|
| 179 | sys/uio.h sys/un.h |
---|
| 180 | |
---|
| 181 | $(PROJECT_INCLUDE)/sys: |
---|
| 182 | @$(mkinstalldirs) $@ |
---|
| 183 | |
---|
| 184 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys \ |
---|
| 185 | $(include_sys_HEADERS:%=$(PROJECT_INCLUDE)/%) |
---|
| 186 | |
---|
| 187 | # vm |
---|
| 188 | |
---|
| 189 | include_vmdir = $(includedir)/vm |
---|
| 190 | |
---|
| 191 | include_vm_HEADERS = vm/vm.h vm/vm_extern.h vm/vm_kern.h vm/vm_param.h |
---|
| 192 | |
---|
| 193 | $(PROJECT_INCLUDE)/vm: |
---|
[e6d8fe47] | 194 | @$(mkinstalldirs) $@ |
---|
[471bcf0] | 195 | |
---|
| 196 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/vm \ |
---|
| 197 | $(include_vm_HEADERS:%=$(PROJECT_INCLUDE)/%) |
---|
| 198 | |
---|
| 199 | # --- |
---|
| 200 | |
---|
[e6d8fe47] | 201 | $(PROJECT_INCLUDE)/%.h: %.h |
---|
| 202 | $(INSTALL_DATA) $< $@ |
---|
| 203 | |
---|
[dd695d81] | 204 | $(LIB): $(OBJS) |
---|
| 205 | $(make-library) |
---|
| 206 | |
---|
| 207 | all-local: $(PREINSTALL_FILES) $(ARCH) $(LIB) |
---|
[e6d8fe47] | 208 | |
---|
[f22ebf0] | 209 | include $(top_srcdir)/../automake/subdirs.am |
---|
| 210 | include $(top_srcdir)/../automake/local.am |
---|