Commit | Line | Data |
---|---|---|
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 | # |
8 | DESTDIR= | |
9 | CFLAGS= -O | |
10 | LDFLAGS= | |
11 | ||
12 | SRCS= newfs.c mkfs.c | |
13 | OBJS= newfs.o mkfs.o | |
14 | ||
15 | all: newfs | |
16 | ||
89dd79e0 MK |
17 | newfs: ${OBJS} |
18 | cc ${LDFLAGS} ${CFLAGS} -o newfs ${OBJS} | |
7f96f8d9 MK |
19 | |
20 | install: all | |
21 | install -s newfs ${DESTDIR}/etc/newfs | |
22 | ||
23 | clean: | |
24 | rm -f newfs *.o errs a.out core | |
25 | ||
26 | lint: | |
27 | lint ${SRCS} | |
28 | ||
29 | depend: | |
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 | ||
48 | newfs.o: newfs.c /usr/include/sys/param.h /usr/include/machine/machparam.h | |
49 | newfs.o: /usr/include/signal.h /usr/include/sys/types.h /usr/include/sys/stat.h | |
50 | newfs.o: /usr/include/sys/fs.h /usr/include/sys/dir.h /usr/include/sys/ioctl.h | |
51 | newfs.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
52 | newfs.o: /usr/include/sys/disklabel.h /usr/include/sys/file.h | |
53 | newfs.o: /usr/include/stdio.h /usr/include/ctype.h | |
54 | mkfs.o: mkfs.c /usr/include/stdio.h /usr/include/a.out.h | |
55 | mkfs.o: /usr/include/sys/exec.h /usr/include/sys/param.h | |
56 | mkfs.o: /usr/include/machine/machparam.h /usr/include/signal.h | |
57 | mkfs.o: /usr/include/sys/types.h /usr/include/sys/inode.h /usr/include/sys/fs.h | |
58 | mkfs.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 |