|
|
1.1 root 1: # Copyright (c) 1982 Regents of the University of California
2: #
3: # @(#)Makefile 4.10 (Berkeley) 6/12/83
4: #
5:
6: MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR}
7: DESTDIR=
8: LIBDIR=${DESTDIR}/lib
9: INCLDIR=${DESTDIR}/usr/include
10: CFLAGS= -O
1.1.1.2 ! root 11: FILES= main.c restore.c dirs.c symtab.c tape.c utilities.c interactive.c
! 12: OBJS= main.o restore.o dirs.o symtab.o utilities.o interactive.o
1.1 root 13:
14: all: restore rrestore
15:
16: restore: ${OBJS} tape.o
17: ${CC} ${LDFLAGS} ${CFLAGS} -o restore ${OBJS} tape.o
18:
19: rrestore: ${OBJS} rtape.o dumprmt.o
20: ${CC} ${LDFLAGS} ${CFLAGS} -o rrestore ${OBJS} rtape.o dumprmt.o
21:
22: rtape.o: tape.c
23: cp tape.c rtape.c
24: ${CC} ${CFLAGS} -c -DRRESTORE rtape.c
25: rm -f rtape.c
26:
27: dumprmt.o: ../dump/dumprmt.c
28: ${CC} ${CFLAGS} -c ../dump/dumprmt.c
29:
30: install.restore: restore
31: install -s restore ${DESTDIR}/etc/restore
32: rm -f ${DESTDIR}/etc/restor
33: ln ${DESTDIR}/etc/restore ${DESTDIR}/etc/restor
34:
35: install.rrestore: rrestore
1.1.1.2 ! root 36: install -s -m 4755 rrestore ${DESTDIR}/etc/rrestore
1.1 root 37:
38: install: install.restore
39:
40: install.all: install.restore install.rrestore
41:
42: clean:
43: rm -f restore *.o errs a.out core
44:
45: cleansrc:
46: rm -f *.[ch] Makefile
47:
48: lint:
49: lint ${FILES}
50:
51: ${OBJS}: restore.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.