cleanup, add man page
[unix-history] / usr / src / sbin / dump / Makefile
CommitLineData
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#
17# @(#)Makefile 5.7 (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
30DFLAGS=
31CFLAGS= -O ${DFLAGS}
32LIBC= /lib/libc.a
33PSRCS= /usr/include/protocols/dumprestore.h dump.h dumpmain.c \
34 dumptraverse.c dumptape.c dumpoptr.c dumpitime.c unctime.c
35SRCS= dump.h dumpitime.c dumpmain.c dumpoptr.c dumprmt.c dumptape.c \
5e19f2d7 36 dumptraverse.c unctime.c
62be6312
KB
37OBJS= dumpitime.o dumpmain.o dumpoptr.o dumptape.o dumptraverse.o \
38 unctime.o
39ROBJS= dumpitime.o dumprmain.o dumpoptr.o dumprmt.o dumprtape.o \
40 dumptraverse.o unctime.o
89243050 41MAN= dump.0 rdump.0
5e19f2d7 42
62be6312 43all: dump rdump
81f0a178 44
89243050 45dump: ${OBJS} ${LIBC}
62be6312 46 ${CC} -o $@ ${CFLAGS} ${OBJS}
5e19f2d7 47
89243050 48rdump: ${ROBJS} ${LIBC}
62be6312 49 ${CC} -o $@ ${CFLAGS} ${ROBJS}
81f0a178 50
62be6312
KB
51dumprmain.o: dumpmain.c
52 ${CC} -c -DRDUMP ${CFLAGS} dumpmain.c -o dumprmain.o
5e19f2d7 53
62be6312
KB
54dumprtape.o: dumptape.c
55 ${CC} -c -DRDUMP ${CFLAGS} dumptape.c -o dumprtape.o
b45e25c0 56
89243050 57clean: ${SRCS}
62be6312 58 rm -f ${ROBJS} ${OBJS} rdump dump core
81f0a178 59
89243050 60depend: ${SRCS}
62be6312 61 mkdep ${CFLAGS} ${SRCS}
81f0a178 62
89243050 63install: ${MAN}
62be6312
KB
64 install -s -o root -g tty -m 6755 rdump ${DESTDIR}/etc/rdump
65 install -s -o bin -g tty -m 2755 dump ${DESTDIR}/etc/dump
89243050 66 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
cf5106db 67
89243050 68lint: ${SRCS}
62be6312 69 lint ${CFLAGS} ${SRCS}
b45e25c0 70
89243050 71tags: ${SRCS}
62be6312 72 ctags ${SRCS}