9d19276f2da1c232f562ec95747c912b7e801bce
[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
5 objects = assert.o casestrcpy.o rbtree.o
6
7 HEADERS = $(TOP_INCDIR)/afs/opr.h \
8           $(TOP_INCDIR)/afs/opr_assert.h \
9           $(TOP_INCDIR)/opr/jhash.h \
10           $(TOP_INCDIR)/opr/queue.h \
11           $(TOP_INCDIR)/opr/rbtree.h
12
13 all: $(HEADERS) $(TOP_LIBDIR)/libopr.a
14
15 libopr.a: $(objects)
16         -$(RM) -f $@
17         $(AR) crv $@ $(objects)
18         $(RANLIB) $@
19
20 $(TOP_LIBDIR)/libopr.a: libopr.a
21         $(INSTALL_DATA) libopr.a $@
22
23 $(TOP_INCDIR)/afs/opr.h: opr.h
24         $(INSTALL_DATA) $? $@
25
26 $(TOP_INCDIR)/afs/opr_assert.h: opr_assert.h
27         $(INSTALL_DATA) $? $@
28
29 $(TOP_INCDIR)/opr/jhash.h: jhash.h
30         $(INSTALL_DATA) $? $@
31
32 $(TOP_INCDIR)/opr/queue.h: queue.h
33         $(INSTALL_DATA) $? $@
34
35 $(TOP_INCDIR)/opr/rbtree.h: rbtree.h
36         $(INSTALL_DATA) $? $@
37
38 clean:
39         rm -f $(objects) libopr.a
40
41 install: libopr.a
42         $(INSTALL_DATA) libopr.a $(DESTDIR)$(libdir)/libopr.a
43
44 dest: libopr.a
45         $(INSTALL_DATA) libopr.a $(DEST)/lib/libopr.a
46
47 buildtools: $(HEADERS)
48