opr: Add UUID handling functions
[openafs.git] / src / opr / Makefile.in
1 srcdir=@srcdir@
2 include @TOP_OBJDIR@/src/config/Makefile.config
3 include @TOP_OBJDIR@/src/config/Makefile.shared
4
5 objects = assert.o casestrcpy.o rbtree.o uuid.o
6
7 HEADERS = $(TOP_INCDIR)/afs/opr.h \
8           $(TOP_INCDIR)/afs/opr_assert.h \
9           $(TOP_INCDIR)/opr/jhash.h \
10           $(TOP_INCDIR)/opr/queue.h \
11           $(TOP_INCDIR)/opr/rbtree.h \
12           $(TOP_INCDIR)/opr/time.h \
13           $(TOP_INCDIR)/opr/uuid.h
14
15 all: $(HEADERS) $(TOP_LIBDIR)/libopr.a
16
17 libopr.a: $(objects)
18         -$(RM) -f $@
19         $(AR) crv $@ $(objects)
20         $(RANLIB) $@
21
22 $(TOP_LIBDIR)/libopr.a: libopr.a
23         $(INSTALL_DATA) libopr.a $@
24
25 $(TOP_INCDIR)/afs/opr.h: opr.h
26         $(INSTALL_DATA) $? $@
27
28 $(TOP_INCDIR)/afs/opr_assert.h: ${srcdir}/opr_assert.h
29         $(INSTALL_DATA) $? $@
30
31 $(TOP_INCDIR)/opr/jhash.h: ${srcdir}/jhash.h
32         $(INSTALL_DATA) $? $@
33
34 $(TOP_INCDIR)/opr/queue.h: ${srcdir}/queue.h
35         $(INSTALL_DATA) $? $@
36
37 $(TOP_INCDIR)/opr/rbtree.h: ${srcdir}/rbtree.h
38         $(INSTALL_DATA) $? $@
39
40 $(TOP_INCDIR)/opr/time.h: ${srcdir}/opr_time.h
41         $(INSTALL_DATA) $? $@
42
43 $(TOP_INCDIR)/opr/uuid.h: ${srcdir}/uuid.h
44         $(INSTALL_DATA) $? $@
45
46 clean:
47         rm -f $(objects) libopr.a
48
49 install: libopr.a
50         $(INSTALL_DATA) libopr.a $(DESTDIR)$(libdir)/libopr.a
51         $(INSTALL) -d $(DESTDIR)$(includedir)/opr
52         $(INSTALL_DATA) ${srcdir}/queue.h $(DESTDIR)$(includedir)/opr/queue.h
53
54 dest: libopr.a
55         $(INSTALL_DATA) libopr.a $(DEST)/lib/libopr.a
56         $(INSTALL) -d $(DEST)/include/opr
57         $(INSTALL_DATA) ${srcdir}/queue.h $(DEST)/include/opr/queue.h
58
59
60 buildtools: $(HEADERS) $(TOP_LIBDIR)/libopr.a
61