opr: Add dictionary implementation
[openafs.git] / src / opr / Makefile.in
1 srcdir=@srcdir@
2 include @TOP_OBJDIR@/src/config/Makefile.config
3 include @TOP_OBJDIR@/src/config/Makefile.pthread
4 include @TOP_OBJDIR@/src/config/Makefile.libtool
5
6 LT_objs = assert.lo casestrcpy.lo dict.lo rbtree.lo uuid.lo
7 LT_libs = $(LIB_hcrypto) $(LIB_roken)
8
9 HEADERS = $(TOP_INCDIR)/afs/opr.h \
10           $(TOP_INCDIR)/afs/opr_assert.h \
11           $(TOP_INCDIR)/opr/dict.h \
12           $(TOP_INCDIR)/opr/jhash.h \
13           $(TOP_INCDIR)/opr/lock.h \
14           $(TOP_INCDIR)/opr/lockstub.h \
15           $(TOP_INCDIR)/opr/queue.h \
16           $(TOP_INCDIR)/opr/rbtree.h \
17           $(TOP_INCDIR)/opr/time.h \
18           $(TOP_INCDIR)/opr/uuid.h
19
20 all: $(HEADERS) liboafs_opr.la $(TOP_LIBDIR)/libopr_pic.a $(TOP_LIBDIR)/libopr.a
21
22 liboafs_opr.la: liboafs_opr.la.sym $(LT_objs) $(LT_deps)
23         $(LT_LDLIB_shlib) $(LT_objs) $(LT_deps) $(LT_libs)
24
25 libopr.a: $(LT_objs)
26         $(LT_LDLIB_static) $(LT_objs)
27
28 libopr_pic.la: $(LT_objs)
29         $(LT_LDLIB_pic) $(LT_objs)
30
31 $(TOP_LIBDIR)/libopr.a: libopr.a
32         $(INSTALL_DATA) libopr.a $@
33
34 $(TOP_LIBDIR)/libopr_pic.a: libopr_pic.la
35         $(INSTALL_DATA) .libs/libopr_pic.a $@
36
37
38 $(TOP_INCDIR)/afs/opr.h: opr.h
39         $(INSTALL_DATA) $? $@
40
41 $(TOP_INCDIR)/afs/opr_assert.h: ${srcdir}/opr_assert.h
42         $(INSTALL_DATA) $? $@
43
44 $(TOP_INCDIR)/opr/dict.h: ${srcdir}/dict.h
45         $(INSTALL_DATA) $? $@
46
47 $(TOP_INCDIR)/opr/jhash.h: ${srcdir}/jhash.h
48         $(INSTALL_DATA) $? $@
49
50 $(TOP_INCDIR)/opr/lockstub.h: ${srcdir}/lockstub.h
51         $(INSTALL_DATA) $? $@
52
53 $(TOP_INCDIR)/opr/queue.h: ${srcdir}/queue.h
54         $(INSTALL_DATA) $? $@
55
56 $(TOP_INCDIR)/opr/rbtree.h: ${srcdir}/rbtree.h
57         $(INSTALL_DATA) $? $@
58
59 $(TOP_INCDIR)/opr/lock.h: ${srcdir}/opr_lock.h
60         $(INSTALL_DATA) $? $@
61
62 $(TOP_INCDIR)/opr/time.h: ${srcdir}/opr_time.h
63         $(INSTALL_DATA) $? $@
64
65 $(TOP_INCDIR)/opr/uuid.h: ${srcdir}/uuid.h
66         $(INSTALL_DATA) $? $@
67
68 clean:
69         $(LT_CLEAN)
70         rm -f libopr.a
71
72 install: libopr.a
73         $(INSTALL_DATA) libopr.a $(DESTDIR)$(libdir)/libopr.a
74         $(INSTALL) -d $(DESTDIR)$(includedir)/opr
75         $(INSTALL_DATA) ${srcdir}/queue.h $(DESTDIR)$(includedir)/opr/queue.h
76
77 dest: libopr.a
78         $(INSTALL_DATA) libopr.a $(DEST)/lib/libopr.a
79         $(INSTALL) -d $(DEST)/include/opr
80         $(INSTALL_DATA) ${srcdir}/queue.h $(DEST)/include/opr/queue.h
81
82 buildtools: $(HEADERS) $(TOP_LIBDIR)/libopr.a
83