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