1# 2# Copyright (c) 1988 The 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.8 (Berkeley) 07/30/89 18# 19VPATH= ../dump: 20CFLAGS= -O 21LIBC= /lib/libc.a 22SRCS= main.c interactive.c restore.c dirs.c symtab.c tape.c utilities.c \ 23 dumprmt.c 24OBJS= main.o interactive.o restore.o dirs.o symtab.o utilities.o tape.o 25ROBJS= main.o interactive.o restore.o dirs.o symtab.o utilities.o rtape.o \ 26 dumprmt.o 27MAN= restore.0 rrestore.0 28 29all: restore rrestore 30 31restore: ${OBJS} ${LIBC} 32 ${CC} ${CFLAGS} -o $@ ${OBJS} -lcompat 33 34rrestore: ${ROBJS} ${LIBC} 35 ${CC} ${CFLAGS} -o $@ ${ROBJS} -lcompat 36 37rtape.o: ${LIBC} tape.c 38 ${CC} ${CFLAGS} -c -DRRESTORE tape.c -o rtape.o 39 40clean: 41 rm -f ${ROBJS} ${OBJS} core restore rrestore 42 43cleandir: clean 44 rm -f ${MAN} tags .depend 45 46depend: ${SRCS} 47 mkdep ${CFLAGS} ${SRCS} 48 49install: ${MAN} 50 install -s -o bin -g bin -m 755 restore ${DESTDIR}/sbin 51 install -s -o root -g bin -m 4755 rrestore ${DESTDIR}/sbin 52 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 53 54lint: ${SRCS} 55 lint ${CFLAGS} ${SRCS} 56 57tags: ${SRCS} 58 ctags ${SRCS} 59