2 # Copyright (c) 1987 The Regents of the University of California.
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.
17 # @(#)Makefile 5.12 (Berkeley) 6/26/89
20 include @TOP_OBJDIR@/src/config/Makefile.config
22 CFLAGS=${COMMON_CFLAGS} ${XCFLAGS} ${ARCHFLAGS} ${VFSCK_CFLAGS}
24 SRCS= dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c \
25 pass4.c pass5.c setup.c utilities.c ufs_subr.c \
26 ufs_tables.c dirutils.c vprintf.c proplist.c
28 OBJS= dir.o inode.o main.o pass1.o pass1b.o pass2.o pass3.o pass4.o \
29 pass5.o setup.o utilities.o dirutils.o vprintf.o proplist.o \
30 ufs_subr.o ufs_tables.o
35 ${CC} -o vfsck ${CFLAGS} ${OBJS} ${NON_SHARED} ${XLIBS}
37 main.o: main.c AFS_component_version_number.c
41 # Installation targets
43 install: ${DESTDIR}${afssrvlibexecdir}/vfsck
45 ${DEST}/root.server/etc/vfsck: vfsck
48 ${DEST}/root.server/usr/afs/bin/vfsck: vfsck
51 ${DESTDIR}${afssrvlibexecdir}/vfsck: vfsck
54 dest: ${DEST}/root.server/etc/vfsck ${DEST}/root.server/usr/afs/bin/vfsck
57 ${CP} ${srcdir}/bcheckrc ${DEST}/root.server/etc ;; \
59 ${CP} ${srcdir}/bcheckrc-hp_ux110 ${DEST}/root.server/etc/bcheckrc ;; \
62 hp_ux10? | hp_ux11? ) \
63 ${CP} ${srcdir}/mount ${DEST}/root.server/etc; \
64 ${CP} ${srcdir}/umount ${DEST}/root.server/etc; \
65 chmod 755 ${DEST}/root.server/etc/bcheckrc ${DEST}/root.server/etc/mount ${DEST}/root.server/etc/umount ;\
73 $(RM) -f ${OBJS} vfsck core AFS_component_version_number.c
75 include ../config/Makefile.version