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