xref: /original-bsd/local/ukc/dump/Makefile (revision 7db4c8dd)
1#
2# Copyright (c) 1980 Regents of the University of California.
3# All rights reserved.  The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
6#	@(#)Makefile	5.4 (Berkeley) 5/28/86
7#	@(#)Makefile	1.3 (UKC) 08/11/87
8#
9#	dump.h			header file
10#	dumpitime.c		reads /etc/dumpdates
11#	dumpmain.c		driver
12#	dumpoptr.c		operator interface
13#	dumptape.c		handles the mag tape and opening/closing
14#	dumplab.c		deal with tape labels
15#	dumptraverse.c		traverses the file system
16#	unctime.c		undo ctime
17#
18#	dumplabel.c		General tape label management program
19#
20#	DEBUG			use local directory to find ddate and dumpdates
21#	TDEBUG			trace out the process forking
22#
23PSRCS = \
24	/usr/include/protocols/dumprestore.h dump.h \
25	dumpmain.c dumptraverse.c dumptape.c dumplab.c \
26	dumpoptr.c dumpitime.c unctime.c dumplabel.c
27
28SRCS =  \
29	dump.h dumpitime.c \
30	dumpmain.c dumpoptr.c dumprmt.c dumprtape.c dumplab.c \
31	dumptraverse.c unctime.c
32
33OBJS = dumpitime.o dumpmain.o dumpoptr.o dumplab.o \
34	dumptape.o dumptraverse.o unctime.o
35
36ROBJS = dumpitime.o dumprmain.o dumpoptr.o dumplab.o \
37	dumprmt.o dumprtape.o dumptraverse.o unctime.o
38
39DFLAGS =
40CFLAGS = -O $(DFLAGS)
41
42all: dump rdump dumplabel
43
44rdump:	$(ROBJS)
45	$(CC) $(CFLAGS) $(ROBJS) -o rdump -lm
46
47dump:	$(OBJS)
48	$(CC) $(CFLAGS) $(OBJS) -o dump -lm
49
50dumplabel: dumplabel.o
51	$(CC) $(CFLAGS) dumplabel.o -o dumplabel
52
53install: rdump dump
54	install -s -m 6755 -g tty rdump $(DESTDIR)/etc
55	install -s -m 2755 -g tty dump $(DESTDIR)/etc
56	install -s -m 755 -g tty $(DESTDIR)/etc
57
58dumprmain.c:
59	ln -s dumpmain.c dumprmain.c
60dumprmain.o: dumprmain.c
61	${CC} -c -DRDUMP ${CFLAGS} dumprmain.c
62
63dumprtape.c:
64	ln -s dumptape.c dumprtape.c
65dumprtape.o: dumprtape.c
66	${CC} -c -DRDUMP ${CFLAGS} dumprtape.c
67
68clean:
69	rm -f *.o rdump dump errs dumprmain.c dumprtape.c dumplabel
70
71lint:
72	lint $(DFLAGS) $(SRCS)
73
74print:
75	pr $(PSRCS) | lpr
76
77$(OBJS): dump.h /usr/include/sys/param.h
78$(OBJS): /usr/include/sys/fs.h /usr/include/sys/inode.h
79$(OBJS): /usr/include/protocols/dumprestore.h /usr/include/sys/stat.h
80