xref: /original-bsd/sbin/dump/Makefile (revision 01e9891b)
1# sccsid = "@(#)Makefile	1.4 (Berkeley) 02/23/82"
2#
3#	dump.h			header file
4#	dumpitime.c		reads /etc/ddate
5#	dumpmain.c		driver
6#	dumpoptr.c		operator interface
7#	dumptape.c		handles the mag tape and opening/closing
8#	dumptraverse.c		traverses the file system
9#	unctime.c		undo ctime
10#
11#	DEBUG			use local directory to find ddate and dumpdates
12#	TDEBUG			trace out the process forking
13#
14PSRCS = \
15	../../h/dumprestor.h dump.h \
16	dumpmain.c dumptraverse.c dumptape.c dumpoptr.c dumpitime.c unctime.c
17
18SRCS =  \
19	dump.h dumpitime.c \
20	dumpmain.c dumpoptr.c dumptape.c \
21	dumptraverse.c unctime.c
22
23OBJS = \
24	dumpitime.o \
25	dumpmain.o dumpoptr.o \
26	dumptape.o dumptraverse.o unctime.o
27
28DFLAGS =
29CFLAGS = -O -DKERNEL $(DFLAGS)
30
31dump:	$(OBJS)
32	$(CC) $(CFLAGS) $(OBJS) -o dump
33
34install:
35	install -s dump $(DESTDIR)/etc
36
37clean:
38	rm -f *.o dump
39
40lint:
41	lint $(DFLAGS) $(SRCS)
42
43print:
44	pr $(PSRCS) | lpr
45
46$(OBJS): dump.h ../../h/param.h ../../h/stat.h ../../h/fs.h
47$(OBJS): ../../h/inode.h ../../h/dumprestor.h
48