968f6e56f7a4ae535d8d9ca324a18683dd60d1c1
[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 \
7           softsig.lo threadname.lo uuid.lo
8 LT_libs = $(LIB_hcrypto) $(LIB_roken)
9
10 HEADERS = $(TOP_INCDIR)/afs/opr.h \
11           $(TOP_INCDIR)/afs/opr_assert.h \
12           $(TOP_INCDIR)/opr/dict.h \
13           $(TOP_INCDIR)/opr/ffs.h \
14           $(TOP_INCDIR)/opr/fmt.h \
15           $(TOP_INCDIR)/opr/jhash.h \
16           $(TOP_INCDIR)/opr/lock.h \
17           $(TOP_INCDIR)/opr/lockstub.h \
18           $(TOP_INCDIR)/opr/proc.h \
19           $(TOP_INCDIR)/opr/queue.h \
20           $(TOP_INCDIR)/opr/rbtree.h \
21           $(TOP_INCDIR)/opr/softsig.h \
22           $(TOP_INCDIR)/opr/time.h \
23           $(TOP_INCDIR)/opr/uuid.h
24
25 all: $(HEADERS) liboafs_opr.la $(TOP_LIBDIR)/libopr_pic.a $(TOP_LIBDIR)/libopr.a
26
27 liboafs_opr.la: liboafs_opr.la.sym $(LT_objs) $(LT_deps)
28         $(LT_LDLIB_shlib) $(LT_objs) $(LT_deps) $(LT_libs)
29
30 libopr.a: $(LT_objs)
31         $(LT_LDLIB_static) $(LT_objs)
32
33 libopr_pic.la: $(LT_objs)
34         $(LT_LDLIB_pic) $(LT_objs)
35
36 $(TOP_LIBDIR)/libopr.a: libopr.a
37         $(INSTALL_DATA) libopr.a $@
38
39 $(TOP_LIBDIR)/libopr_pic.a: libopr_pic.la
40         $(INSTALL_DATA) .libs/libopr_pic.a $@
41
42 $(TOP_INCDIR)/afs/opr.h: opr.h
43         $(INSTALL_DATA) $? $@
44
45 $(TOP_INCDIR)/afs/opr_assert.h: ${srcdir}/opr_assert.h
46         $(INSTALL_DATA) $? $@
47
48 $(TOP_INCDIR)/opr/dict.h: ${srcdir}/dict.h
49         $(INSTALL_DATA) $? $@
50
51 $(TOP_INCDIR)/opr/ffs.h: ${srcdir}/ffs.h
52         $(INSTALL_DATA) $? $@
53
54 $(TOP_INCDIR)/opr/fmt.h: ${srcdir}/fmt.h
55         $(INSTALL_DATA) $? $@
56
57 $(TOP_INCDIR)/opr/jhash.h: ${srcdir}/jhash.h
58         $(INSTALL_DATA) $? $@
59
60 $(TOP_INCDIR)/opr/lockstub.h: ${srcdir}/lockstub.h
61         $(INSTALL_DATA) $? $@
62
63 $(TOP_INCDIR)/opr/proc.h: ${srcdir}/proc.h
64         $(INSTALL_DATA) $? $@
65
66 $(TOP_INCDIR)/opr/queue.h: ${srcdir}/queue.h
67         $(INSTALL_DATA) $? $@
68
69 $(TOP_INCDIR)/opr/rbtree.h: ${srcdir}/rbtree.h
70         $(INSTALL_DATA) $? $@
71
72 $(TOP_INCDIR)/opr/lock.h: ${srcdir}/opr_lock.h
73         $(INSTALL_DATA) $? $@
74
75 $(TOP_INCDIR)/opr/time.h: ${srcdir}/opr_time.h
76         $(INSTALL_DATA) $? $@
77
78 $(TOP_INCDIR)/opr/uuid.h: ${srcdir}/uuid.h
79         $(INSTALL_DATA) $? $@
80
81 $(TOP_INCDIR)/opr/softsig.h: softsig.h
82         $(INSTALL_DATA) $? $@
83
84 clean:
85         $(LT_CLEAN)
86         rm -f libopr.a *.o
87
88 install: libopr.a ${srcdir}/opr.h ${srcdir}/opr_lock.h
89         $(INSTALL_DATA) libopr.a $(DESTDIR)$(libdir)/libopr.a
90         $(INSTALL) -d $(DESTDIR)$(includedir)/opr
91         $(INSTALL_DATA) ${srcdir}/queue.h $(DESTDIR)$(includedir)/opr/queue.h
92         $(INSTALL_DATA) ${srcdir}/opr_lock.h $(DESTDIR)$(includedir)/opr/lock.h
93         $(INSTALL) -d $(DESTDIR)$(includedir)/afs
94         $(INSTALL_DATA) ${srcdir}/opr.h $(DESTDIR)$(includedir)/afs/opr.h
95
96 dest: libopr.a ${srcdir}/opr.h ${srcdir}/opr_lock.h
97         $(INSTALL_DATA) libopr.a $(DEST)/lib/libopr.a
98         $(INSTALL) -d $(DEST)/include/opr
99         $(INSTALL_DATA) ${srcdir}/queue.h $(DEST)/include/opr/queue.h
100         $(INSTALL_DATA) ${srcdir}/opr_lock.h $(DEST)/include/opr/lock.h
101         $(INSTALL) -d $(DEST)/include/afs
102         $(INSTALL_DATA) ${srcdir}/opr.h $(DEST)/include/afs/opr.h
103
104 buildtools: $(HEADERS) $(TOP_LIBDIR)/libopr.a
105