Commit | Line | Data |
---|---|---|
5cd16d99 | 1 | # |
8c5eec2f DF |
2 | # Copyright (c) 1983 Regents of the University of California. |
3 | # All rights reserved. The Berkeley software License Agreement | |
4 | # specifies the terms and conditions for redistribution. | |
5 | # | |
740c7392 | 6 | # @(#)Makefile 5.3 (Berkeley) %G% |
5cd16d99 | 7 | # |
2d096f0c KM |
8 | DESTDIR= |
9 | CFLAGS= -O | |
f97d7036 KM |
10 | FILES= main.c interactive.c restore.c dirs.c symtab.c tape.c utilities.c |
11 | OBJS= main.o interactive.o restore.o dirs.o symtab.o utilities.o | |
5cd16d99 | 12 | |
ae1066e0 | 13 | all: restore rrestore |
5cd16d99 | 14 | |
ae1066e0 KM |
15 | restore: ${OBJS} tape.o |
16 | cc ${LDFLAGS} ${CFLAGS} -o restore ${OBJS} tape.o | |
141d2aed | 17 | |
ae1066e0 | 18 | rrestore: ${OBJS} rtape.o dumprmt.o |
ce5e9df4 | 19 | cc ${LDFLAGS} -o rrestore ${OBJS} rtape.o dumprmt.o |
5cd16d99 | 20 | |
ce5e9df4 SL |
21 | rtape.o: tape.c |
22 | cp tape.c rtape.c | |
71eeb54e | 23 | cc ${CFLAGS} -c -DRRESTORE rtape.c |
ce5e9df4 SL |
24 | rm -f rtape.c |
25 | ||
26 | dumprmt.o: ../dump/dumprmt.c | |
27 | cc ${CFLAGS} -c ../dump/dumprmt.c | |
5cd16d99 | 28 | |
ae1066e0 | 29 | install: rrestore restore |
740c7392 KM |
30 | install -s restore ${DESTDIR}/etc/restore |
31 | install -s -m 4755 rrestore ${DESTDIR}/etc/rrestore | |
5cd16d99 KM |
32 | |
33 | clean: | |
ce5e9df4 | 34 | rm -f restore rrestore *.o errs a.out core |
ae1066e0 KM |
35 | |
36 | lint: | |
37 | lint ${FILES} | |
38 | ||
39 | print: | |
d9127117 | 40 | @pr /usr/include/protocols/dumprestore.h restore.h ${FILES} |
c14b4534 KM |
41 | |
42 | ${OBJS}: restore.h |