a896dbcef12a0b6f64bed0d76c6d327f60c3b13b
[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 proc.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/proc.h \
16           $(TOP_INCDIR)/opr/queue.h \
17           $(TOP_INCDIR)/opr/rbtree.h \
18           $(TOP_INCDIR)/opr/time.h \
19           $(TOP_INCDIR)/opr/uuid.h
20
21 all: $(HEADERS) liboafs_opr.la $(TOP_LIBDIR)/libopr_pic.a $(TOP_LIBDIR)/libopr.a
22
23 liboafs_opr.la: liboafs_opr.la.sym $(LT_objs) $(LT_deps)
24         $(LT_LDLIB_shlib) $(LT_objs) $(LT_deps) $(LT_libs)
25
26 libopr.a: $(LT_objs)
27         $(LT_LDLIB_static) $(LT_objs)
28
29 libopr_pic.la: $(LT_objs)
30         $(LT_LDLIB_pic) $(LT_objs)
31
32 $(TOP_LIBDIR)/libopr.a: libopr.a
33         $(INSTALL_DATA) libopr.a $@
34
35 $(TOP_LIBDIR)/libopr_pic.a: libopr_pic.la
36         $(INSTALL_DATA) .libs/libopr_pic.a $@
37
38
39 $(TOP_INCDIR)/afs/opr.h: opr.h
40         $(INSTALL_DATA) $? $@
41
42 $(TOP_INCDIR)/afs/opr_assert.h: ${srcdir}/opr_assert.h
43         $(INSTALL_DATA) $? $@
44
45 $(TOP_INCDIR)/opr/dict.h: ${srcdir}/dict.h
46         $(INSTALL_DATA) $? $@
47
48 $(TOP_INCDIR)/opr/jhash.h: ${srcdir}/jhash.h
49         $(INSTALL_DATA) $? $@
50
51 $(TOP_INCDIR)/opr/lockstub.h: ${srcdir}/lockstub.h
52         $(INSTALL_DATA) $? $@
53
54 $(TOP_INCDIR)/opr/proc.h: ${srcdir}/proc.h
55         $(INSTALL_DATA) $? $@
56
57 $(TOP_INCDIR)/opr/queue.h: ${srcdir}/queue.h
58         $(INSTALL_DATA) $? $@
59
60 $(TOP_INCDIR)/opr/rbtree.h: ${srcdir}/rbtree.h
61         $(INSTALL_DATA) $? $@
62
63 $(TOP_INCDIR)/opr/lock.h: ${srcdir}/opr_lock.h
64         $(INSTALL_DATA) $? $@
65
66 $(TOP_INCDIR)/opr/time.h: ${srcdir}/opr_time.h
67         $(INSTALL_DATA) $? $@
68
69 $(TOP_INCDIR)/opr/uuid.h: ${srcdir}/uuid.h
70         $(INSTALL_DATA) $? $@
71
72 clean:
73         $(LT_CLEAN)
74         rm -f libopr.a *.o
75
76 install: libopr.a
77         $(INSTALL_DATA) libopr.a $(DESTDIR)$(libdir)/libopr.a
78         $(INSTALL) -d $(DESTDIR)$(includedir)/opr
79         $(INSTALL_DATA) ${srcdir}/queue.h $(DESTDIR)$(includedir)/opr/queue.h
80
81 dest: libopr.a
82         $(INSTALL_DATA) libopr.a $(DEST)/lib/libopr.a
83         $(INSTALL) -d $(DEST)/include/opr
84         $(INSTALL_DATA) ${srcdir}/queue.h $(DEST)/include/opr/queue.h
85
86 buildtools: $(HEADERS) $(TOP_LIBDIR)/libopr.a
87