Split up libtool support into LWP and pthread
[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 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/jhash.h \
12           $(TOP_INCDIR)/opr/queue.h \
13           $(TOP_INCDIR)/opr/rbtree.h \
14           $(TOP_INCDIR)/opr/time.h \
15           $(TOP_INCDIR)/opr/uuid.h
16
17 all: $(HEADERS) liboafs_opr.la $(TOP_LIBDIR)/libopr_pic.a $(TOP_LIBDIR)/libopr.a
18
19 liboafs_opr.la: liboafs_opr.la.sym $(LT_objs) $(LT_deps)
20         $(LT_LDLIB_shlib) $(LT_objs) $(LT_deps) $(LT_libs)
21
22 libopr.a: $(LT_objs)
23         $(LT_LDLIB_static) $(LT_objs)
24
25 libopr_pic.la: $(LT_objs)
26         $(LT_LDLIB_pic) $(LT_objs)
27
28 $(TOP_LIBDIR)/libopr.a: libopr.a
29         $(INSTALL_DATA) libopr.a $@
30
31 $(TOP_LIBDIR)/libopr_pic.a: libopr_pic.la
32         $(INSTALL_DATA) .libs/libopr_pic.a $@
33
34
35 $(TOP_INCDIR)/afs/opr.h: opr.h
36         $(INSTALL_DATA) $? $@
37
38 $(TOP_INCDIR)/afs/opr_assert.h: ${srcdir}/opr_assert.h
39         $(INSTALL_DATA) $? $@
40
41 $(TOP_INCDIR)/opr/jhash.h: ${srcdir}/jhash.h
42         $(INSTALL_DATA) $? $@
43
44 $(TOP_INCDIR)/opr/queue.h: ${srcdir}/queue.h
45         $(INSTALL_DATA) $? $@
46
47 $(TOP_INCDIR)/opr/rbtree.h: ${srcdir}/rbtree.h
48         $(INSTALL_DATA) $? $@
49
50 $(TOP_INCDIR)/opr/time.h: ${srcdir}/opr_time.h
51         $(INSTALL_DATA) $? $@
52
53 $(TOP_INCDIR)/opr/uuid.h: ${srcdir}/uuid.h
54         $(INSTALL_DATA) $? $@
55
56 clean:
57         $(LT_CLEAN)
58         rm -f libopr.a
59
60 install: libopr.a
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