xref: /original-bsd/old/dump.4.1/Makefile (revision a9c19d04)
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.1 (Berkeley) 06/05/85
7#
8#	dump.h			header file
9#	dumpitime.c		reads /etc/ddate
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#	l3tol.c			3-byte to 4-byte unpacking
16#
17#	DEBUG			use local directory to find ddate and dumpdates
18#	TDEBUG			trace out the process forking
19#
20PSRCS = \
21	dump.h dumpmain.c dumptraverse.c dumptape.c dumpoptr.c dumpitime.c
22
23SRCS =  \
24	dump.h dumpitime.c \
25	dumpmain.c dumpoptr.c dumptape.c \
26	dumptraverse.c unctime.c l3tol.c
27
28OBJS = \
29	dumpitime.o \
30	dumpmain.o dumpoptr.o \
31	dumptape.o dumptraverse.o unctime.o l3tol.o
32
33DFLAGS =
34CFLAGS = -O $(DFLAGS)
35
36dump:	$(OBJS)
37	$(CC) $(CFLAGS) $(OBJS) -o dump
38install:
39	install -s dump $(DESTDIR)/etc/dump.4.1
40clean:
41	rm -f *.o dump
42
43lint:
44	lint $(DFLAGS) $(SRCS)
45
46psrcs:
47	echo $(PSRCS)
48