file reorg, pathnames.h, paths.h
[unix-history] / usr / src / sbin / restore / Makefile
CommitLineData
5cd16d99 1#
91848bba
KB
2# Copyright (c) 1988 The Regents of the University of California.
3# All rights reserved.
8c5eec2f 4#
91848bba
KB
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#
7abf8d65 17# @(#)Makefile 5.7 (Berkeley) %G%
5cd16d99 18#
d2748719
KB
19VPATH= ../dump:
20CFLAGS= -O
21LIBC= /lib/libc.a
22SRCS= main.c interactive.c restore.c dirs.c symtab.c tape.c utilities.c \
91848bba 23 dumprmt.c
d2748719
KB
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
91848bba 27MAN= restore.0 rrestore.0
5cd16d99 28
ae1066e0 29all: restore rrestore
5cd16d99 30
d2748719
KB
31restore: ${OBJS} ${LIBC}
32 ${CC} ${CFLAGS} -o $@ ${OBJS}
141d2aed 33
d2748719
KB
34rrestore: ${ROBJS} ${LIBC}
35 ${CC} ${CFLAGS} -o $@ ${ROBJS}
5cd16d99 36
d2748719
KB
37rtape.o: ${LIBC} tape.c
38 ${CC} ${CFLAGS} -c -DRRESTORE tape.c -o rtape.o
ce5e9df4 39
91848bba 40clean:
d2748719 41 rm -f ${ROBJS} ${OBJS} core restore rrestore
5cd16d99 42
91848bba
KB
43cleandir: clean
44 rm -f ${MAN} tags .depend
45
46depend: ${SRCS}
d2748719 47 mkdep ${CFLAGS} ${SRCS}
5cd16d99 48
91848bba 49install: ${MAN}
7abf8d65
KB
50 install -s -o bin -g bin -m 755 restore ${DESTDIR}/sbin
51 install -s -o root -g bin -m 4755 rrestore ${DESTDIR}/sbin
91848bba 52 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
ae1066e0 53
91848bba 54lint: ${SRCS}
d2748719 55 lint ${CFLAGS} ${SRCS}
66da2b0f 56
91848bba 57tags: ${SRCS}
d2748719 58 ctags ${SRCS}