Commit | Line | Data |
---|---|---|
54cf7c29 | 1 | # |
89243050 KB |
2 | # Copyright (c) 1987 The Regents of the University of California. |
3 | # All rights reserved. | |
54cf7c29 | 4 | # |
89243050 KB |
5 | # Redistribution and use in source and binary forms are permitted |
6 | # provided that the above copyright notice and this paragraph are | |
7 | # duplicated in all such forms and that any documentation, | |
8 | # advertising materials, and other materials related to such | |
9 | # distribution and use acknowledge that the software was developed | |
10 | # by the University of California, Berkeley. The name of the | |
11 | # University may not be used to endorse or promote products derived | |
12 | # from this software without specific prior written permission. | |
13 | # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
14 | # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
15 | # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
16 | # | |
7abf8d65 | 17 | # @(#)Makefile 5.9 (Berkeley) %G% |
5e19f2d7 BJ |
18 | # |
19 | # dump.h header file | |
17a283c1 | 20 | # dumpitime.c reads /etc/dumpdates |
5e19f2d7 BJ |
21 | # dumpmain.c driver |
22 | # dumpoptr.c operator interface | |
23 | # dumptape.c handles the mag tape and opening/closing | |
24 | # dumptraverse.c traverses the file system | |
25 | # unctime.c undo ctime | |
26 | # | |
27 | # DEBUG use local directory to find ddate and dumpdates | |
28 | # TDEBUG trace out the process forking | |
5e19f2d7 | 29 | |
62be6312 KB |
30 | DFLAGS= |
31 | CFLAGS= -O ${DFLAGS} | |
32 | LIBC= /lib/libc.a | |
33 | PSRCS= /usr/include/protocols/dumprestore.h dump.h dumpmain.c \ | |
34 | dumptraverse.c dumptape.c dumpoptr.c dumpitime.c unctime.c | |
35 | SRCS= dump.h dumpitime.c dumpmain.c dumpoptr.c dumprmt.c dumptape.c \ | |
5e19f2d7 | 36 | dumptraverse.c unctime.c |
62be6312 KB |
37 | OBJS= dumpitime.o dumpmain.o dumpoptr.o dumptape.o dumptraverse.o \ |
38 | unctime.o | |
39 | ROBJS= dumpitime.o dumprmain.o dumpoptr.o dumprmt.o dumprtape.o \ | |
40 | dumptraverse.o unctime.o | |
89243050 | 41 | MAN= dump.0 rdump.0 |
5e19f2d7 | 42 | |
62be6312 | 43 | all: dump rdump |
81f0a178 | 44 | |
89243050 | 45 | dump: ${OBJS} ${LIBC} |
62be6312 | 46 | ${CC} -o $@ ${CFLAGS} ${OBJS} |
5e19f2d7 | 47 | |
89243050 | 48 | rdump: ${ROBJS} ${LIBC} |
62be6312 | 49 | ${CC} -o $@ ${CFLAGS} ${ROBJS} |
81f0a178 | 50 | |
62be6312 KB |
51 | dumprmain.o: dumpmain.c |
52 | ${CC} -c -DRDUMP ${CFLAGS} dumpmain.c -o dumprmain.o | |
5e19f2d7 | 53 | |
62be6312 KB |
54 | dumprtape.o: dumptape.c |
55 | ${CC} -c -DRDUMP ${CFLAGS} dumptape.c -o dumprtape.o | |
b45e25c0 | 56 | |
2e095e64 | 57 | clean: |
62be6312 | 58 | rm -f ${ROBJS} ${OBJS} rdump dump core |
81f0a178 | 59 | |
2e095e64 KB |
60 | cleandir: clean |
61 | rm -f ${MAN} tags .depend | |
62 | ||
89243050 | 63 | depend: ${SRCS} |
62be6312 | 64 | mkdep ${CFLAGS} ${SRCS} |
81f0a178 | 65 | |
89243050 | 66 | install: ${MAN} |
7abf8d65 KB |
67 | install -s -o root -g tty -m 6755 rdump ${DESTDIR}/sbin/rdump |
68 | install -s -o bin -g tty -m 2755 dump ${DESTDIR}/sbin/dump | |
89243050 | 69 | install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 |
cf5106db | 70 | |
89243050 | 71 | lint: ${SRCS} |
62be6312 | 72 | lint ${CFLAGS} ${SRCS} |
b45e25c0 | 73 | |
89243050 | 74 | tags: ${SRCS} |
62be6312 | 75 | ctags ${SRCS} |