temp files should be protected; bug report 4.3BSD/usr.bin/186
[unix-history] / usr / src / usr.bin / netstat / Makefile
CommitLineData
b36fc510 1#
51a16129 2# Copyright (c) 1987 Regents of the University of California.
ee3f90a5
MK
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms are permitted
b36fc510
KB
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.
5ff67f98 16#
0a63a4ec 17# @(#)Makefile 5.10 (Berkeley) %G%
5ff67f98 18#
51a16129
KB
19CFLAGS= -O
20LIBC= /lib/libc.a
21SRCS= host.c inet.c if.c main.c mbuf.c route.c unix.c ns.c
a5545777 22OBJS= host.o inet.o if.o main.o mbuf.o route.o unix.o ns.o bbnnet.o
0f6cd5ba 23
51a16129 24all: netstat
0f6cd5ba 25
51a16129
KB
26netstat: ${OBJS} ${LIBC}
27 ${CC} -o $@ ${CFLAGS} ${OBJS}
0f6cd5ba 28
0a63a4ec 29clean:
51a16129 30 rm -f ${OBJS} core netstat
300a5f74 31
0a63a4ec
KB
32cleandir: clean
33 rm -f ${MAN} tags .depend
34
35depend: ${SRCS}
51a16129
KB
36 mkdep ${CFLAGS} ${SRCS}
37
0a63a4ec 38install: ${MAN}
51a16129 39 install -s -o bin -g kmem -m 2755 netstat ${DESTDIR}/usr/ucb/netstat
0a63a4ec 40 install -c -o bin -g bin -m 444 netstat.0 ${DESTDIR}/usr/man/cat1
51a16129 41
0a63a4ec 42lint: ${SRCS}
51a16129
KB
43 lint ${CFLAGS} ${SRCS}
44
0a63a4ec 45tags: ${SRCS}
51a16129 46 ctags ${SRCS}