| 1 | # |
| 2 | # Copyright (c) 1987 Regents of the University of California. |
| 3 | # All rights reserved. |
| 4 | # |
| 5 | # Redistribution and use in source and binary forms are permitted |
| 6 | # provided that the above copyright notice and this paragraph are |
| 7 | # duplicated in all such forms and that any documentation, |
| 8 | # advertising materials, and other materials related to such |
| 9 | # distribution and use acknowledge that the software was developed |
| 10 | # by the University of California, Berkeley. The name of the |
| 11 | # University may not be used to endorse or promote products derived |
| 12 | # from this software without specific prior written permission. |
| 13 | # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR |
| 14 | # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED |
| 15 | # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
| 16 | # |
| 17 | # @(#)Makefile 5.9 (Berkeley) %G% |
| 18 | # |
| 19 | CFLAGS= -O |
| 20 | LIBC= /lib/libc.a |
| 21 | SRCS= host.c inet.c if.c main.c mbuf.c route.c unix.c ns.c |
| 22 | OBJS= host.o inet.o if.o main.o mbuf.o route.o unix.o ns.o bbnnet.o |
| 23 | |
| 24 | all: netstat |
| 25 | |
| 26 | netstat: ${OBJS} ${LIBC} |
| 27 | ${CC} -o $@ ${CFLAGS} ${OBJS} |
| 28 | |
| 29 | clean: FRC |
| 30 | rm -f ${OBJS} core netstat |
| 31 | |
| 32 | depend: FRC |
| 33 | mkdep ${CFLAGS} ${SRCS} |
| 34 | |
| 35 | install: FRC |
| 36 | install -s -o bin -g kmem -m 2755 netstat ${DESTDIR}/usr/ucb/netstat |
| 37 | |
| 38 | lint: FRC |
| 39 | lint ${CFLAGS} ${SRCS} |
| 40 | |
| 41 | tags: FRC |
| 42 | ctags ${SRCS} |
| 43 | |
| 44 | FRC: |
| 45 | |
| 46 | # DO NOT DELETE THIS LINE -- mkdep uses it. |
| 47 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. |
| 48 | |
| 49 | host.o: host.c /usr/include/sys/types.h /usr/include/sys/mbuf.h |
| 50 | host.o: /usr/include/netinet/in.h /usr/include/netimp/if_imp.h |
| 51 | host.o: /usr/include/netimp/if_imphost.h |
| 52 | inet.o: inet.c /usr/include/strings.h /usr/include/stdio.h |
| 53 | inet.o: /usr/include/sys/param.h /usr/include/sys/types.h /usr/include/signal.h |
| 54 | inet.o: /usr/include/machine/machparam.h /usr/include/sys/socket.h |
| 55 | inet.o: /usr/include/sys/socketvar.h /usr/include/sys/mbuf.h |
| 56 | inet.o: /usr/include/sys/protosw.h /usr/include/net/route.h |
| 57 | inet.o: /usr/include/netinet/in.h /usr/include/netinet/in_systm.h |
| 58 | inet.o: /usr/include/netinet/in_pcb.h /usr/include/netinet/ip.h |
| 59 | inet.o: /usr/include/netinet/ip_icmp.h /usr/include/netinet/icmp_var.h |
| 60 | inet.o: /usr/include/netinet/ip_var.h /usr/include/netinet/tcp.h |
| 61 | inet.o: /usr/include/netinet/tcpip.h /usr/include/netinet/tcp_seq.h |
| 62 | inet.o: /usr/include/netinet/tcp_fsm.h /usr/include/netinet/tcp_timer.h |
| 63 | inet.o: /usr/include/netinet/tcp_var.h /usr/include/netinet/tcp_debug.h |
| 64 | inet.o: /usr/include/netinet/udp.h /usr/include/netinet/udp_var.h |
| 65 | inet.o: /usr/include/netdb.h |
| 66 | if.o: if.c /usr/include/sys/types.h /usr/include/sys/socket.h |
| 67 | if.o: /usr/include/net/if.h /usr/include/net/if_arp.h /usr/include/netinet/in.h |
| 68 | if.o: /usr/include/netinet/in_var.h /usr/include/netns/ns.h |
| 69 | if.o: /usr/include/stdio.h /usr/include/signal.h |
| 70 | main.o: main.c /usr/include/sys/param.h /usr/include/sys/types.h |
| 71 | main.o: /usr/include/signal.h /usr/include/machine/machparam.h |
| 72 | main.o: /usr/include/sys/vmmac.h /usr/include/sys/socket.h |
| 73 | main.o: /usr/include/machine/pte.h /usr/include/ctype.h /usr/include/errno.h |
| 74 | main.o: /usr/include/netdb.h /usr/include/nlist.h /usr/include/stdio.h |
| 75 | mbuf.o: mbuf.c /usr/include/stdio.h /usr/include/sys/param.h |
| 76 | mbuf.o: /usr/include/sys/types.h /usr/include/signal.h |
| 77 | mbuf.o: /usr/include/machine/machparam.h /usr/include/sys/mbuf.h |
| 78 | route.o: route.c /usr/include/stdio.h /usr/include/strings.h |
| 79 | route.o: /usr/include/sys/param.h /usr/include/sys/types.h |
| 80 | route.o: /usr/include/signal.h /usr/include/machine/machparam.h |
| 81 | route.o: /usr/include/sys/socket.h /usr/include/sys/mbuf.h |
| 82 | route.o: /usr/include/net/if.h /usr/include/net/if_arp.h |
| 83 | route.o: /usr/include/net/route.h /usr/include/netinet/in.h |
| 84 | route.o: /usr/include/netns/ns.h /usr/include/netdb.h |
| 85 | unix.o: unix.c /usr/include/sys/param.h /usr/include/sys/types.h |
| 86 | unix.o: /usr/include/signal.h /usr/include/machine/machparam.h |
| 87 | unix.o: /usr/include/sys/protosw.h /usr/include/sys/socket.h |
| 88 | unix.o: /usr/include/sys/socketvar.h /usr/include/sys/mbuf.h |
| 89 | unix.o: /usr/include/sys/un.h /usr/include/sys/unpcb.h /usr/include/sys/file.h |
| 90 | ns.o: ns.c /usr/include/stdio.h /usr/include/errno.h /usr/include/nlist.h |
| 91 | ns.o: /usr/include/sys/types.h /usr/include/sys/socket.h |
| 92 | ns.o: /usr/include/sys/socketvar.h /usr/include/sys/mbuf.h |
| 93 | ns.o: /usr/include/sys/protosw.h /usr/include/net/route.h /usr/include/net/if.h |
| 94 | ns.o: /usr/include/net/if_arp.h /usr/include/netinet/tcp_fsm.h |
| 95 | ns.o: /usr/include/netinet/tcp_timer.h /usr/include/netns/ns.h |
| 96 | ns.o: /usr/include/netns/ns_pcb.h /usr/include/netns/idp.h |
| 97 | ns.o: /usr/include/netns/idp_var.h /usr/include/netns/ns_error.h |
| 98 | ns.o: /usr/include/netns/sp.h /usr/include/netns/spidp.h |
| 99 | ns.o: /usr/include/netns/spp_var.h /usr/include/netns/spp_debug.h |
| 100 | |
| 101 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |