Commit | Line | Data |
---|---|---|
5cd16d99 KM |
1 | # Copyright (c) 1982 Regents of the University of California |
2 | # | |
ae1066e0 | 3 | # @(#)Makefile 4.6 (Berkeley) %G% |
5cd16d99 | 4 | # |
2d096f0c KM |
5 | DESTDIR= |
6 | CFLAGS= -O | |
ae1066e0 KM |
7 | FILES= main.c restore.c dirs.c symtab.c tape.c utilities.c |
8 | OBJS= main.o restore.o dirs.o symtab.o utilities.o | |
5cd16d99 | 9 | |
ae1066e0 | 10 | all: restore rrestore |
5cd16d99 | 11 | |
ae1066e0 KM |
12 | restore: ${OBJS} tape.o |
13 | cc ${LDFLAGS} ${CFLAGS} -o restore ${OBJS} tape.o | |
141d2aed | 14 | |
ae1066e0 KM |
15 | rrestore: ${OBJS} rtape.o dumprmt.o |
16 | cc ${LDFLAGS} -o rrestore ${OBJS} rtape.o dumprmt.o -ljobs | |
5cd16d99 | 17 | |
ae1066e0 KM |
18 | rtape.o: rtape.c |
19 | cc ${CFLAGS} -c -DRRESTOR rtape.c | |
5cd16d99 | 20 | |
ae1066e0 KM |
21 | install: rrestore restore |
22 | install restore ${DESTDIR}/etc/restor | |
23 | install -m 4755 rrestore ${DESTDIR}/etc/rrestor | |
5cd16d99 KM |
24 | |
25 | clean: | |
ae1066e0 KM |
26 | rm -f restore rrestore *.o errs |
27 | ||
28 | lint: | |
29 | lint ${FILES} | |
30 | ||
31 | print: | |
32 | @pr /usr/include/dumprestor.h restore.h ${FILES} |