date and time created 87/02/15 16:03:39 by lepreau
[unix-history] / usr / src / sbin / newfs / Makefile
CommitLineData
7f96f8d9
MK
1#
2# Copyright (c) 1987 Regents of the University of California.
3# All rights reserved. The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
89dd79e0 6# @(#)Makefile 7.2 (Berkeley) %G%
7f96f8d9
MK
7#
8DESTDIR=
9CFLAGS= -O
10LDFLAGS=
11
12SRCS= newfs.c mkfs.c
13OBJS= newfs.o mkfs.o
14
15all: newfs
16
89dd79e0
MK
17newfs: ${OBJS}
18 cc ${LDFLAGS} ${CFLAGS} -o newfs ${OBJS}
7f96f8d9
MK
19
20install: all
21 install -s newfs ${DESTDIR}/etc/newfs
22
23clean:
24 rm -f newfs *.o errs a.out core
25
26lint:
27 lint ${SRCS}
28
29depend:
30 cc -M ${INCPATH} ${SRCS} | \
31 awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
32 else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
33 else rec = rec " " $$2 } } \
34 END { print rec } ' > makedep
35 echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
36 echo '$$r makedep' >>eddep
37 echo 'w' >>eddep
38 cp Makefile Makefile.bak
39 ed - Makefile < eddep
40 rm eddep makedep
41 echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
42 echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
43 echo '# see make depend above' >> Makefile
44
45# DO NOT DELETE THIS LINE -- make depend uses it
46
47
48newfs.o: newfs.c /usr/include/sys/param.h /usr/include/machine/machparam.h
49newfs.o: /usr/include/signal.h /usr/include/sys/types.h /usr/include/sys/stat.h
50newfs.o: /usr/include/sys/fs.h /usr/include/sys/dir.h /usr/include/sys/ioctl.h
51newfs.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
52newfs.o: /usr/include/sys/disklabel.h /usr/include/sys/file.h
53newfs.o: /usr/include/stdio.h /usr/include/ctype.h
54mkfs.o: mkfs.c /usr/include/stdio.h /usr/include/a.out.h
55mkfs.o: /usr/include/sys/exec.h /usr/include/sys/param.h
56mkfs.o: /usr/include/machine/machparam.h /usr/include/signal.h
57mkfs.o: /usr/include/sys/types.h /usr/include/sys/inode.h /usr/include/sys/fs.h
58mkfs.o: /usr/include/sys/dir.h /usr/include/sys/disklabel.h
59# DEPENDENCIES MUST END AT END OF FILE
60# IF YOU PUT STUFF HERE IT WILL GO AWAY
61# see make depend above