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