|
|
Power 6/32 Unix version 1.21
# Copyright (c) 1982 Regents of the University of California
#
# @(#)Makefile 4.10 (Berkeley) 6/12/83
#
MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR}
DESTDIR=
LIBDIR=${DESTDIR}/lib
INCLDIR=${DESTDIR}/usr/include
CFLAGS= -O
FILES= main.c restore.c dirs.c symtab.c tape.c utilities.c interactive.c
OBJS= main.o restore.o dirs.o symtab.o utilities.o interactive.o
all: restore rrestore
restore: ${OBJS} tape.o
${CC} ${LDFLAGS} ${CFLAGS} -o restore ${OBJS} tape.o
rrestore: ${OBJS} rtape.o dumprmt.o
${CC} ${LDFLAGS} ${CFLAGS} -o rrestore ${OBJS} rtape.o dumprmt.o
rtape.o: tape.c
cp tape.c rtape.c
${CC} ${CFLAGS} -c -DRRESTORE rtape.c
rm -f rtape.c
dumprmt.o: ../dump/dumprmt.c
${CC} ${CFLAGS} -c ../dump/dumprmt.c
install.restore: restore
install -s restore ${DESTDIR}/etc/restore
rm -f ${DESTDIR}/etc/restor
ln ${DESTDIR}/etc/restore ${DESTDIR}/etc/restor
install.rrestore: rrestore
install -s -m 4755 rrestore ${DESTDIR}/etc/rrestore
install: install.restore
install.all: install.restore install.rrestore
clean:
rm -f restore *.o errs a.out core
cleansrc:
rm -f *.[ch] Makefile
lint:
lint ${FILES}
${OBJS}: restore.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.