c5e7452cb8b9852701ac1c28a647e23b99781aa3
[openafs.git] / src / vfsck / Makefile.in
1 #
2 # Copyright (c) 1987 The Regents of the University of California.
3 # All rights reserved.
4 #
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.
16 #
17 #       @(#)Makefile    5.12 (Berkeley) 6/26/89
18 #
19 srcdir=@srcdir@
20 include @TOP_OBJDIR@/src/config/Makefile.config
21 include @TOP_OBJDIR@/src/config/Makefile.lwp
22
23
24 MODULE_CFLAGS=${VFSCK_CFLAGS}
25
26 SRCS= dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c \
27         pass4.c pass5.c setup.c utilities.c ufs_subr.c \
28         ufs_tables.c dirutils.c vprintf.c
29
30 OBJS= dir.o inode.o main.o pass1.o pass1b.o pass2.o pass3.o pass4.o \
31         pass5.o setup.o utilities.o dirutils.o vprintf.o \
32         ufs_subr.o ufs_tables.o
33
34 all: vfsck
35
36 vfsck: ${OBJS}
37         $(AFS_LDRULE) ${OBJS} ${NON_SHARED} ${XLIBS}
38
39 main.o: main.c AFS_component_version_number.c
40
41
42 #
43 # Installation targets
44 #
45 install: vfsck
46         ${INSTALL} -d ${DESTDIR}${afssrvlibexecdir}
47         ${INSTALL_PROGRAM} vfsck ${DESTDIR}${afssrvlibexecdir}/vfsck
48
49 dest: vfsck
50         ${INSTALL} -d ${DEST}/root.server/etc
51         ${INSTALL} -d ${DEST}/root.server/usr/afs/bin
52         ${INSTALL_PROGRAM} vfsck ${DEST}/root.server/etc/vfsck
53         ${INSTALL_PROGRAM} vfsck ${DEST}/root.server/usr/afs/bin/vfsck
54         case ${SYS_NAME} in \
55                 hp_ux10?) \
56                         ${CP} ${srcdir}/bcheckrc ${DEST}/root.server/etc ;; \
57                 hp_ux11?) \
58                         ${CP} ${srcdir}/bcheckrc-hp_ux110 ${DEST}/root.server/etc/bcheckrc ;; \
59         esac
60         case ${SYS_NAME} in \
61                 hp_ux10? | hp_ux11? ) \
62                         ${CP} ${srcdir}/mount ${DEST}/root.server/etc; \
63                         ${CP} ${srcdir}/umount ${DEST}/root.server/etc; \
64                         chmod 755 ${DEST}/root.server/etc/bcheckrc ${DEST}/root.server/etc/mount ${DEST}/root.server/etc/umount ;\
65                                 ;; \
66         esac
67
68 #
69 # Misc targets
70 #
71 clean:
72         $(RM) -f ${OBJS} vfsck core AFS_component_version_number.c
73
74 include ../config/Makefile.version