1# 2# Copyright (c) 1988 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, advertising 8# materials, and other materials related to such redistribution and 9# use acknowledge that the software was developed by the University 10# of California, Berkeley. The name of the University may not be 11# used to endorse or promote products derived from this software 12# without specific prior written permission. THIS SOFTWARE IS PROVIDED 13# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, 14# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND 15# FITNESS FOR A PARTICULAR PURPOSE. 16# 17# @(#)Makefile 5.1 (Berkeley) 10/22/88 18# 19 20CFLAGS= -O 21LIBC= /lib/libc.a 22SRCS= ktrace.c kdump.c subr.c ioctl.c 23OBJS= ktrace.o kdump.o subr.o ioctl.o 24MAN= ktrace.0 kdump.0 25 26all: ktrace kdump 27 28ktrace: ${LIBC} subr.o 29 ${CC} -o $@ ${CFLAGS} $@.c subr.o 30 31kdump: ${LIBC} ioctl.o subr.o 32 ${CC} -o $@ ${CFLAGS} $@.c ioctl.o subr.o 33 34ioctl.c: mkioctls 35 ./mkioctls > ioctl.c 36 37clean: 38 rm -f ${OBJS} core ktrace kdump 39 40cleandir: clean 41 rm -f ${MAN} tags .depend 42 43depend: ${SRCS} 44 mkdep -p ${CFLAGS} ${SRCS} 45 46install: ${MAN} 47 install -s -o bin -g bin -m 755 ktrace ${DESTDIR}/usr/bin 48 install -s -o bin -g bin -m 755 kdump ${DESTDIR}/usr/bin 49 : install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 50 51lint: ${SRCS} 52 lint ${CFLAGS} ${SRCS} 53 54tags: ${SRCS} 55 ctags ${SRCS} 56