b4db6d6f64e432382cebab99d3527660af0afd3c
[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 # uss Makefile
9
10 DEST=@DEST@
11 TOP_INCDIR=@TOP_INCDIR@
12 TOP_LIBDIR=@TOP_LIBDIR@
13 TOP_OBJDIR=@TOP_OBJDIR@
14 srcdir=@srcdir@
15 VPATH=${srcdir}
16 prefix=@prefix@
17 exec_prefix=@exec_prefix@
18 bindir=@bindir@
19 sbindir=@sbindir@
20 libexecdir=@libexecdir@
21 libdir=@libdir@
22 includedir=@includedir@
23 mandir=@mandir@
24 afssrvbindir=@afssrvbindir@
25 afssrvsbindir=@afssrvsbindir@
26 afssrvlibexecdir=@afssrvlibexecdir@
27 COMPILE_ET=${TOP_OBJDIR}/src/comerr/compile_et
28 RXGEN=${TOP_OBJDIR}/src/rxgen/rxgen
29 TOP_SRCDIR=@TOP_SRCDIR@
30 SYS_NAME=@AFS_SYSNAME@
31
32 SHELL=/bin/sh
33
34 include ../config/Makefile.${SYS_NAME}
35
36 all: uss
37
38 CFLAGS=-I. -I${srcdir} ${DBUG} -I${TOP_OBJDIR}/src/config \
39         -I${TOP_INCDIR} -I. ${XCFLAGS}
40
41 #
42 # Build targets
43 #
44 LIBS=${TOP_LIBDIR}/libvolser.a \
45         ${TOP_LIBDIR}/libvldb.a  \
46         ${TOP_LIBDIR}/libkauth.a \
47         ${TOP_LIBDIR}/libprot.a \
48         ${TOP_LIBDIR}/libubik.a \
49         ${TOP_LIBDIR}/libauth.a \
50         ${TOP_LIBDIR}/librxkad.a \
51         ${TOP_LIBDIR}/libsys.a \
52         ${TOP_LIBDIR}/libdes.a \
53         ${TOP_LIBDIR}/librx.a \
54         ${TOP_LIBDIR}/libsys.a \
55         ${TOP_LIBDIR}/liblwp.a \
56         ${TOP_LIBDIR}/libcmd.a \
57         ${TOP_LIBDIR}/libcom_err.a\
58         ${TOP_LIBDIR}/util.a \
59         ${XLIBS}
60
61 OBJS =  uss_procs.o \
62         uss_common.o \
63         uss_vol.o \
64         uss_acl.o \
65         uss_ptserver.o \
66         uss_kauth.o \
67         uss_fs.o \
68         lex.yy.o \
69         y.tab.o 
70
71 uss: uss.o ${OBJS} 
72         ${CC} ${CFLAGS} -o uss uss.o ${OBJS} ${LIBS}
73
74 uss.o:  uss.c AFS_component_version_number.c
75         ${CC} -c ${CFLAGS} ${srcdir}/uss.c
76
77 uss_procs.o : uss_procs.c
78         ${CC} -c ${CFLAGS} ${srcdir}/uss_procs.c
79
80 uss_common.o : uss_common.c
81         ${CC} -c ${CFLAGS} ${srcdir}/uss_common.c
82
83 uss_vol.o : uss_vol.c
84         ${CC} -c ${CFLAGS} ${srcdir}/uss_vol.c
85
86 uss_acl.o : uss_acl.c
87         ${CC} -c ${CFLAGS} ${srcdir}/uss_acl.c
88
89 uss_ptserver.o : uss_ptserver.c
90         ${CC} -c ${CFLAGS} ${srcdir}/uss_ptserver.c
91
92 uss_kauth.o : uss_kauth.c
93         ${CC} -c ${CFLAGS} ${srcdir}/uss_kauth.c
94
95 uss_fs.o : uss_fs.c
96         ${CC} -c ${CFLAGS} ${srcdir}/uss_fs.c
97
98 lex.yy.o : lex.yy.c y.tab.c
99         ${CC} -c ${CFLAGS} lex.yy.c
100
101 lex.yy.c : lex.c
102         ${LEX} ${srcdir}/lex.c
103
104 y.tab.o : y.tab.c
105         ${CC} -c ${CFLAGS} y.tab.c
106
107 uss.c: uss_common.h uss_procs.h uss_kauth.h uss_fs.h
108
109 uss_procs.c : uss_procs.h uss_common.h uss_acl.h
110
111 uss_common.c : uss_common.h
112
113 uss_vol.c : uss_vol.h uss_common.h uss_fs.h
114
115 uss_acl.c : uss_acl.h uss_common.h uss_fs.h
116
117 uss_ptserver.c: uss_ptserver.h
118
119 uss_kauth.c: uss_kauth.h uss_common.h
120
121 uss_fs.c: uss_fs.h
122
123 y.tab.c : grammar.y
124         ${YACC} -d ${srcdir}/grammar.y
125
126 #
127 # Installation targets
128 #
129 install: ${DESTDIR}${sbindir}/uss
130
131 ${DEST}/etc/uss: uss
132         ${INSTALL} $? $@
133
134 #
135 # Misc. targets
136 #
137 clean:
138         $(RM) -f *.o uss y.tab.c y.tab.h lex.yy.c core AFS_component_version_number.c
139
140 include ../config/Makefile.version
141
142 #
143 ${DESTDIR}${sbindir}/uss: uss
144         ${INSTALL} $? $@
145
146 dest: ${DEST}/etc/uss
147