1 # Copyright 2000, International Business Machines Corporation and others.
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
10 include ../config/Makefile.${SYS_NAME}
12 CFLAGS = ${OPTMZ} -I${TOP_SRCDIR}/config -I. -I$(SRCDIR)include ${XCFLAGS}
13 LDFLAGS = ${OPTMZ} ${XLDFLAGS}
15 objects = assert.o base64.o casestrcpy.o ktime.o volparse.o hostparse.o \
16 hputil.o kreltime.o isathing.o get_krbrlm.o uuid.o serverLog.o \
17 dirpath.o fileutil.o netutils.o flipbase64.o \
18 afs_atomlist.o afs_lhash.o snprintf.o ${REGEX_OBJ}
20 headers = assert.h potpourri.h itc.h errors.h afsutil.h pthread_glock.h \
21 dirpath.h afs_atomlist.h afs_lhash.h
23 include ../config/Makefile.version
25 system noversion: install
29 ${DESTDIR}bin/sys: sys
30 ${INSTALL} sys ${DESTDIR}bin/sys
32 install0: ${DESTDIR}include/afs/dirpath.h \
33 ${DESTDIR}include/afs/pthread_nosigs.h \
34 ${objects} util.a ${DESTDIR}bin/sys ${someheaders} doc
35 ${INSTALL} util.a ${DESTDIR}lib/afs
36 ${INSTALL} util.a ${DESTDIR}lib/afs/libafsutil.a
37 ${INSTALL} assert.h errors.h vice.h remote.h ktime.h fileutil.h \
38 netutils.h packages.h afsutil.h pthread_glock.h \
39 afs_atomlist.h afs_lhash.h \
41 ${INSTALL} potpourri.h ${DESTDIR}include
43 install: install0 kinstall ukinstall
46 ${INSTALL} assert.h errors.h vice.h remote.h ktime.h fileutil.h \
47 netutils.h packages.h afsutil.h pthread_glock.h \
48 afs_atomlist.h afs_lhash.h \
52 ${INSTALL} vice.h ../libafs/afs
53 ${INSTALL} base64.c ../libafs/afs/afs_base64.c
54 ${INSTALL} uuid.c ../libafs/afs/afs_uuid.c
55 ${INSTALL} afs_atomlist.c ../libafs/afs
56 ${INSTALL} afs_atomlist.h ../libafs/afs
57 ${INSTALL} afs_lhash.c ../libafs/afs
58 ${INSTALL} afs_lhash.h ../libafs/afs
60 ukinstall webinstall: install0
61 ${INSTALL} pthread_glock.h vice.h errors.h afsutil.h dirpath.h fileutil.h netutils.h casestrcpy.c dirpath.c hostparse.c fileutil.c netutils.c ../libuafs/afs
62 ${INSTALL} uuid.c ../libuafs/afs/afs_uuid.c
63 ${INSTALL} afs_atomlist.c ../libuafs/afs
64 ${INSTALL} afs_atomlist.h ../libuafs/afs
65 ${INSTALL} afs_lhash.c ../libuafs/afs
66 ${INSTALL} afs_lhash.h ../libuafs/afs
68 ${DESTDIR}include/afs/dirpath.h: dirpath.h
69 ${INSTALL} dirpath.h ${DESTDIR}include/afs
71 ${DESTDIR}include/afs/pthread_nosigs.h: pthread_nosigs.h
72 ${INSTALL} pthread_nosigs.h ${DESTDIR}include/afs
75 echo no documents in this directory
77 util.a: ${objects} AFS_component_version_number.o
79 $(AR) r util.a ${objects} AFS_component_version_number.o
82 volparse.o: volparse.c
83 ${CC} ${CFLAGS} -c volparse.c
85 snprintf.o: snprintf.c
86 ${CC} ${CFLAGS} -c snprintf.c
89 ${CC} ${CFLAGS} -c base64.c
91 hostparse.o: hostparse.c afsutil.h
92 ${CC} ${CFLAGS} -c hostparse.c
95 ${CC} ${CFLAGS} -c ktime.c
97 kreltime.o: kreltime.c
98 ${CC} ${CFLAGS} -c kreltime.c
100 get_krbrlm.o: get_krbrlm.c
101 ${CC} ${CFLAGS} -c get_krbrlm.c
104 ${CC} ${CFLAGS} -c uuid.c
106 sys.o: sys.c ${SRCDIR}include/afs/param.h AFS_component_version_number.c
107 ${CC} ${CFLAGS} -c sys.c
110 ${CC} ${LDFLAGS} -o sys sys.o
112 isathing.o: isathing.c
113 ${CC} ${CFLAGS} -c isathing.c
115 serverLog.o: serverLog.c
116 ${CC} ${CFLAGS} -c serverLog.c
118 dirpath.o: dirpath.c dirpath.h
119 ${CC} ${CFLAGS} -c dirpath.c
121 fileutil.o: fileutil.c fileutil.h
122 ${CC} ${CFLAGS} -c fileutil.c
124 netutils.o: netutils.c netutils.h
125 ${CC} ${CFLAGS} -c netutils.c
127 afs_atomlist.o: afs_atomlist.c afs_atomlist.h
128 ${CC} ${CFLAGS} -c afs_atomlist.c
130 afs_lhash.o: afs_lhash.c afs_lhash.h afs_atomlist.h
131 ${CC} ${CFLAGS} -c afs_lhash.c
135 rm -f util.a *.o core AFS_component_version_number.c