| 1 | # Copyright (c) 1982 Regents of the University of California |
| 2 | # |
| 3 | # @(#)Makefile 4.7 (Berkeley) %G% |
| 4 | # |
| 5 | DESTDIR= |
| 6 | CFLAGS= -O |
| 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 |
| 9 | |
| 10 | all: restore rrestore |
| 11 | |
| 12 | restore: ${OBJS} tape.o |
| 13 | cc ${LDFLAGS} ${CFLAGS} -o restore ${OBJS} tape.o |
| 14 | |
| 15 | rrestore: ${OBJS} rtape.o dumprmt.o |
| 16 | cc ${LDFLAGS} -o rrestore ${OBJS} rtape.o dumprmt.o -ljobs |
| 17 | |
| 18 | rtape.o: rtape.c |
| 19 | cc ${CFLAGS} -c -DRRESTOR rtape.c |
| 20 | |
| 21 | install: rrestore restore |
| 22 | install restore ${DESTDIR}/etc/restor |
| 23 | install -m 4755 rrestore ${DESTDIR}/etc/rrestor |
| 24 | |
| 25 | clean: |
| 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} |
| 33 | |
| 34 | ${OBJS}: restore.h |