Commit | Line | Data |
---|---|---|
54cf7c29 DF |
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 | # | |
e716ff75 | 6 | # @(#)Makefile 5.4 (Berkeley) %G% |
5e19f2d7 BJ |
7 | # |
8 | # dump.h header file | |
17a283c1 | 9 | # dumpitime.c reads /etc/dumpdates |
5e19f2d7 BJ |
10 | # dumpmain.c driver |
11 | # dumpoptr.c operator interface | |
12 | # dumptape.c handles the mag tape and opening/closing | |
13 | # dumptraverse.c traverses the file system | |
14 | # unctime.c undo ctime | |
15 | # | |
16 | # DEBUG use local directory to find ddate and dumpdates | |
17 | # TDEBUG trace out the process forking | |
18 | # | |
19 | PSRCS = \ | |
f8d6ea2d | 20 | /usr/include/protocols/dumprestore.h dump.h \ |
b45e25c0 | 21 | dumpmain.c dumptraverse.c dumptape.c dumpoptr.c dumpitime.c unctime.c |
5e19f2d7 BJ |
22 | |
23 | SRCS = \ | |
24 | dump.h dumpitime.c \ | |
c47275e3 | 25 | dumpmain.c dumpoptr.c dumprmt.c dumprtape.c \ |
5e19f2d7 BJ |
26 | dumptraverse.c unctime.c |
27 | ||
81f0a178 SL |
28 | OBJS = dumpitime.o dumpmain.o dumpoptr.o \ |
29 | dumptape.o dumptraverse.o unctime.o | |
30 | ||
31 | ROBJS = dumpitime.o dumprmain.o dumpoptr.o \ | |
128d5755 | 32 | dumprmt.o dumprtape.o dumptraverse.o unctime.o |
5e19f2d7 | 33 | |
9e92a7e9 | 34 | DFLAGS = |
81f0a178 SL |
35 | CFLAGS = -O $(DFLAGS) |
36 | ||
37 | all: dump rdump | |
5e19f2d7 | 38 | |
81f0a178 | 39 | rdump: $(ROBJS) |
23eeaca6 | 40 | $(CC) $(CFLAGS) $(ROBJS) -o rdump |
b45e25c0 | 41 | |
81f0a178 SL |
42 | dump: $(OBJS) |
43 | $(CC) $(CFLAGS) $(OBJS) -o dump | |
44 | ||
45 | install: rdump dump | |
e716ff75 KM |
46 | install -s -m 6755 -g tty rdump $(DESTDIR)/etc |
47 | install -s -m 2755 -g tty dump $(DESTDIR)/etc | |
81f0a178 | 48 | |
cf5106db KM |
49 | dumprmain.c: |
50 | ln -s dumpmain.c dumprmain.c | |
51 | dumprmain.o: dumprmain.c | |
1ddebffe | 52 | ${CC} -c -DRDUMP ${CFLAGS} dumprmain.c |
cf5106db KM |
53 | |
54 | dumprtape.c: | |
55 | ln -s dumptape.c dumprtape.c | |
56 | dumprtape.o: dumprtape.c | |
57 | ${CC} -c -DRDUMP ${CFLAGS} dumprtape.c | |
b45e25c0 | 58 | |
5e19f2d7 | 59 | clean: |
cf5106db | 60 | rm -f *.o rdump dump errs dumprmain.c dumprtape.c |
5e19f2d7 BJ |
61 | |
62 | lint: | |
63 | lint $(DFLAGS) $(SRCS) | |
64 | ||
b45e25c0 KM |
65 | print: |
66 | pr $(PSRCS) | lpr | |
67 | ||
1d9b1ad2 SL |
68 | $(OBJS): dump.h /usr/include/sys/param.h |
69 | $(OBJS): /usr/include/sys/fs.h /usr/include/sys/inode.h | |
f8d6ea2d | 70 | $(OBJS): /usr/include/protocols/dumprestore.h /usr/include/sys/stat.h |