rm byte-swapping
[unix-history] / usr / src / sbin / restore / Makefile
CommitLineData
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
8DESTDIR=
9CFLAGS= -O
f97d7036
KM
10FILES= main.c interactive.c restore.c dirs.c symtab.c tape.c utilities.c
11OBJS= main.o interactive.o restore.o dirs.o symtab.o utilities.o
5cd16d99 12
ae1066e0 13all: restore rrestore
5cd16d99 14
ae1066e0
KM
15restore: ${OBJS} tape.o
16 cc ${LDFLAGS} ${CFLAGS} -o restore ${OBJS} tape.o
141d2aed 17
ae1066e0 18rrestore: ${OBJS} rtape.o dumprmt.o
ce5e9df4 19 cc ${LDFLAGS} -o rrestore ${OBJS} rtape.o dumprmt.o
5cd16d99 20
ce5e9df4
SL
21rtape.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
26dumprmt.o: ../dump/dumprmt.c
27 cc ${CFLAGS} -c ../dump/dumprmt.c
5cd16d99 28
ae1066e0 29install: rrestore restore
740c7392
KM
30 install -s restore ${DESTDIR}/etc/restore
31 install -s -m 4755 rrestore ${DESTDIR}/etc/rrestore
5cd16d99
KM
32
33clean:
ce5e9df4 34 rm -f restore rrestore *.o errs a.out core
ae1066e0
KM
35
36lint:
37 lint ${FILES}
38
39print:
d9127117 40 @pr /usr/include/protocols/dumprestore.h restore.h ${FILES}
c14b4534
KM
41
42${OBJS}: restore.h