1216a0d4caae7982530c0df143f9f24f61454caa
[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 DESTDIR=@DESTDIR@
20 SRCDIR=@SRCDIR@
21 TOP_SRCDIR=@TOP_SRCDIR@
22 SYS_NAME=@AFS_SYSNAME@
23
24
25 include ../config/Makefile.${SYS_NAME}
26
27 CFLAGS= ${DBUG} -w -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
28 LIBC=   /lib/libc.a
29 SRCS=   dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c \
30         pass5.c setup.c utilities.c ufs_subr.c ufs_tables.c dirutils.c\
31         vprintf.c proplist.c
32 LOCOBJS=dir.o inode.o main.o pass1.o pass1b.o pass2.o pass3.o pass4.o \
33         pass5.o setup.o utilities.o dirutils.o vprintf.o proplist.o
34 SYSOBJS=ufs_subr.o ufs_tables.o
35 OBJS=   ${LOCOBJS} ${SYSOBJS}
36 MAN =
37 #MAN=   fsck.0
38
39 include ../config/Makefile.version
40
41 all: vfsck
42
43 vfsck: main.o ${OBJS} 
44
45 ${OBJS}:        ${SRCS}
46         case ${SYS_NAME} in                                     \
47           hp_ux11? )                                            \
48             ${CC} -o vfsck -I/usr/old/usr/include ${DBUG} -w -I${SRCDIR}include ${SRCS} ${NON_SHARED} +DA1.0 -Wl,-a,archive -D_FILE64 \
49                         ;;                                      \
50           hp?00_ux101 | hp_ux10? )                              \
51             ${CC} -o vfsck ${CFLAGS} ${SRCS} ${NON_SHARED} ${XLIBS} -D_FILE64\
52                         ;;                                      \
53             * )                                                 \
54             ${CC} -o vfsck ${CFLAGS} ${SRCS} ${NON_SHARED} ${XLIBS}\
55                         ;;                                      \
56         esac
57
58 main.o: main.c AFS_component_version_number.c
59
60 #${LOCOBJS}:
61 #       ${CC} ${CFLAGS} -c $*.c
62
63 clean:
64         rm -f ${OBJS} vfsck core AFS_component_version_number.c
65
66 cleandir: clean
67         rm -f ${MAN} tags .depend
68
69 depend: ${SRCS}
70         mkdep ${CFLAGS} ${SRCS}
71
72 system: install
73
74 install: all ${MAN}
75         ${INSTALL} -s -c vfsck ${DESTDIR}/root.server/etc
76         ${INSTALL} -s -c vfsck ${DESTDIR}/root.server/usr/afs/bin
77         case ${SYS_NAME} in                             \
78                 hp_ux10? )                              \
79                         ${CP} bcheckrc ${DESTDIR}/root.server/etc; \
80                         ;;                              \
81                 hp_ux11? )                              \
82                         ${CP} bcheckrc-hp_ux110 ${DESTDIR}/root.server/etc/bcheckrc; \
83                         ;;                              \
84         esac
85         case ${SYS_NAME} in                             \
86                 hp_ux10? | hp_ux11? )                   \
87                          ${CP} mount ${DESTDIR}/root.server/etc ;\
88                          ${CP} umount ${DESTDIR}/root.server/etc; \
89                          chmod 755 ${DESTDIR}/root.server/etc/bcheckrc ${DESTDIR}/root.server/etc/mount ${DESTDIR}/root.server/etc/umount ;\
90                                 ;;                                      \
91         esac