095e691fcfbb23f20e369c906770288bd139b025
[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 all: $(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      $(TOP_LIBDIR)/libopr.a
13
14 libopr.a: $(objects)
15         -$(RM) -f $@
16         $(AR) crv $@ $(objects)
17         $(RANLIB) $@
18
19 $(TOP_LIBDIR)/libopr.a: libopr.a
20         $(INSTALL_DATA) libopr.a $@
21
22 $(TOP_INCDIR)/afs/opr.h: opr.h
23         $(INSTALL_DATA) opr.h $@
24
25 $(TOP_INCDIR)/afs/opr_assert.h: opr_assert.h
26         $(INSTALL_DATA) opr_assert.h $@
27
28 $(TOP_INCDIR)/opr/jhash.h: jhash.h
29         $(INSTALL_DATA) jhash.h $@
30
31 $(TOP_INCDIR)/opr/queue.h: queue.h
32         $(INSTALL_DATA) queue.h $@
33
34 $(TOP_INCDIR)/opr/rbtree.h: rbtree.h
35         $(INSTALL_DATA) rbtree.h $@
36
37 clean:
38         rm -f $(objects) libopr.a
39
40 install: libopr.a
41         $(INSTALL_DATA) libopr.a $(DESTDIR)$(libdir)/libopr.a
42
43 dest: libopr.a
44         $(INSTALL_DATA) libopr.a $(DEST)/lib/libopr.a
45