Commit | Line | Data |
---|---|---|
ca67e7b4 C |
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 | # | |
6 | # @(#)Makefile 7.3 (Berkeley) 6/2/87 | |
7 | # | |
8 | CFLAGS= -O | |
9 | LIBC= /lib/libc.a | |
10 | SRCS= newfs.c mkfs.c | |
11 | OBJS= newfs.o mkfs.o | |
12 | ||
13 | all: newfs | |
14 | ||
15 | newfs: ${OBJS} ${LIBC} | |
16 | ${CC} ${CFLAGS} -o $@ ${OBJS} | |
17 | ||
18 | clean: FRC | |
19 | rm -f ${OBJS} core newfs | |
20 | ||
21 | depend: FRC | |
22 | mkdep ${CFLAGS} ${SRCS} | |
23 | ||
24 | install: FRC | |
25 | install -s -o bin -g bin -m 755 newfs ${DESTDIR}/etc/newfs | |
26 | ||
27 | lint: FRC | |
28 | lint ${CFLAGS} ${SRCS} | |
29 | ||
30 | tags: FRC | |
31 | ctags ${SRCS} | |
32 | ||
33 | FRC: | |
34 | ||
35 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
36 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
37 | ||
38 | newfs.o: newfs.c /usr/include/sys/param.h /usr/include/sys/types.h | |
39 | newfs.o: /usr/include/signal.h /usr/include/machine/trap.h | |
40 | newfs.o: /usr/include/machine/machparam.h /usr/include/machine/endian.h | |
41 | newfs.o: /usr/include/sys/stat.h /usr/include/sys/fs.h /usr/include/sys/dir.h | |
42 | newfs.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
43 | newfs.o: /usr/include/sys/ttydev.h /usr/include/sys/disklabel.h | |
44 | newfs.o: /usr/include/sys/file.h /usr/include/stdio.h /usr/include/ctype.h | |
45 | mkfs.o: mkfs.c /usr/include/stdio.h /usr/include/a.out.h | |
46 | mkfs.o: /usr/include/sys/exec.h /usr/include/sys/param.h | |
47 | mkfs.o: /usr/include/sys/types.h /usr/include/signal.h | |
48 | mkfs.o: /usr/include/machine/trap.h /usr/include/machine/machparam.h | |
49 | mkfs.o: /usr/include/machine/endian.h /usr/include/sys/inode.h | |
50 | mkfs.o: /usr/include/sys/fs.h /usr/include/sys/dir.h | |
51 | mkfs.o: /usr/include/sys/disklabel.h /usr/include/machine/endian.h | |
52 | ||
53 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |