|
|
1.1 root 1: # @(#)Makefile 4.4 (Berkeley) 83/09/10
2: #
3: DESTDIR=
4: AS=/bin/as
5: CC=/bin/cc
6: LD=/bin/ld
7: INCLDIR=${DESTDIR}/usr/include
8: LIBDIR=${DESTDIR}/lib
9: ULIBDIR=${DESTDIR}/usr/lib
10: MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR}
11: SYSDIR=../../../..
12: COPT=
13: CFLAGS=-O
14:
15: fsck: fsck.o ufs_subr.o ufs_tables.o
16: ${CC} ${COPT} -o fsck fsck.o ufs_subr.o ufs_tables.o ${LIBDIR}/libc.a
17:
18: fscklc.o: fsck.c
19: ${CC} ${COPT} ${CFLAGS} -c fsck.c
20: ${LD} -r -o fscklc.o fsck.o ${LIBDIR}/libc.a
21:
22: ufs_subr.o: ${SYSDIR}/sys/sys/ufs_subr.c
23: ${CC} ${CFLAGS} -c ${SYSDIR}/sys/sys/ufs_subr.c
24:
25: ufs_tables.o: ${SYSDIR}/sys/sys/ufs_tables.c
26: ${CC} ${CFLAGS} -c ${SYSDIR}/sys/sys/ufs_tables.c
27:
28: lint:
29: lint fsck.c
30:
31: install: fsck
32: install fsck ${DESTDIR}/etc/fsck
33:
34: clean:
35: rm -f fsck fscklc.o fsck.o ufs_subr.o ufs_tables.o
36: rm -f errs a.out core
37:
38: cleansrc:
39: rm -f *.c Makefile
40:
41: depend:
42: echo >x.c
43: for i in fsck; do \
44: (echo $$i: $$i.c >>makedep; \
45: /bin/grep '^#[ ]*include' x.c $$i.c | sed \
46: -e '/\.\.\/h/d' \
47: -e 's,<\(.*\)>,"/usr/include/\1",' \
48: -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
49: -e 's/\.c//' >>makedep); done
50: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
51: echo '$$r makedep' >>eddep
52: echo 'w' >>eddep
53: cp Makefile Makefile.bak
54: ed - Makefile < eddep
55: rm eddep makedep x.c
56: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
57: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
58: echo '# see make depend above' >> Makefile
59:
60: # DO NOT DELETE THIS LINE -- make depend uses it
61:
62: fsck: fsck.c
63: fsck: ${INCLDIR}/stdio.h
64: fsck: ${INCLDIR}/ctype.h
65: fsck: ${INCLDIR}/sys/param.h
66: fsck: ${INCLDIR}/sys/fs.h
67: fsck: ${INCLDIR}/sys/inode.h
68: fsck: ${INCLDIR}/sys/dir.h
69: fsck: ${INCLDIR}/sys/stat.h
70: fsck: ${INCLDIR}/sys/wait.h
71: fsck: ${INCLDIR}/fstab.h
72: # DEPENDENCIES MUST END AT END OF FILE
73: # IF YOU PUT STUFF HERE IT WILL GO AWAY
74: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.