99d092ab95563d1bd4e234ef5090fc75bf42a035
[openafs.git] / src / uss / Makefile.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
4 # This software has been released under the terms of the IBM Public
5 # License.  For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10 include @TOP_OBJDIR@/src/config/Makefile.lwp
11
12 INSTALL = @INSTALL@
13 INSTALL_DATA = @INSTALL_DATA@
14 INSTALL_PROGRAM = @INSTALL_PROGRAM@
15 INSTALL_SCRIPT = @INSTALL_SCRIPT@
16
17 all: uss
18
19 #
20 # Build targets
21 #
22 LIBS=${TOP_LIBDIR}/libvolser.a \
23         ${TOP_LIBDIR}/libvldb.a  \
24         ${TOP_LIBDIR}/libkauth.a \
25         ${TOP_LIBDIR}/libprot.a \
26         ${TOP_LIBDIR}/libubik.a \
27         ${TOP_LIBDIR}/libauth.a \
28         ${TOP_LIBDIR}/librxkad.a \
29         ${TOP_LIBDIR}/libsys.a \
30         ${TOP_LIBDIR}/librx.a \
31         ${TOP_LIBDIR}/libsys.a \
32         ${TOP_LIBDIR}/liblwp.a \
33         ${TOP_LIBDIR}/libcmd.a \
34         ${TOP_LIBDIR}/libcom_err.a \
35         ${TOP_LIBDIR}/util.a \
36         ${TOP_LIBDIR}/libafshcrypto_lwp.a
37
38 OBJS =  uss_procs.o \
39         uss_common.o \
40         uss_vol.o \
41         uss_acl.o \
42         uss_ptserver.o \
43         uss_kauth.o \
44         uss_fs.o \
45         lex.yy.o \
46         y.tab.o 
47
48 uss: uss.o ${OBJS} $(LIBS)
49         $(AFS_LDRULE) uss.o ${OBJS} ${LIBS} $(LIB_roken) $(LIB_crypt) $(XLIBS)
50
51 uss.o:  uss.c AFS_component_version_number.c
52
53 CFLAGS_lex.yy.o = @CFLAGS_NOUNUSED@
54 lex.yy.o : lex.yy.c y.tab.c
55
56 lex.yy.c : lex.l
57         ${LEX} ${srcdir}/lex.l
58
59 y.tab.o : y.tab.c
60
61 uss.c: uss_common.h uss_procs.h uss_kauth.h uss_fs.h
62
63 uss_procs.c : uss_procs.h uss_common.h uss_acl.h
64
65 uss_common.c : uss_common.h
66
67 uss_vol.c : uss_vol.h uss_common.h uss_fs.h
68
69 uss_acl.c : uss_acl.h uss_common.h uss_fs.h
70
71 uss_ptserver.c: uss_ptserver.h
72
73 uss_kauth.c: uss_kauth.h uss_common.h
74
75 uss_fs.c: uss_fs.h
76
77 y.tab.c : grammar.y
78         ${YACC} -d ${srcdir}/grammar.y
79
80 #
81 # Installation targets
82 #
83 install:
84         ${INSTALL} -d ${DESTDIR}${sbindir}
85         ${INSTALL_PROGRAM} uss ${DESTDIR}${sbindir}/uss
86
87 dest:
88         ${INSTALL} -d ${DEST}/etc
89         ${INSTALL_PROGRAM} uss ${DEST}/etc/uss
90
91 #
92 # Misc. targets
93 #
94 clean:
95         $(RM) -f *.o uss y.tab.c y.tab.h lex.yy.c core AFS_component_version_number.c
96
97 include ../config/Makefile.version