New Makefile variables $(RANLIB) and $(PERL).
[openssl.git] / crypto / bio / Makefile.ssl
1 #
2 # SSLeay/crypto/bio/Makefile
3 #
4
5 DIR=    bio
6 TOP=    ../..
7 CC=     cc
8 INCLUDES= -I.. -I../../include
9 CFLAG=-g
10 INSTALLTOP=/usr/local/ssl
11 MAKE=           make -f Makefile.ssl
12 MAKEDEPEND=     $(TOP)/util/domd $(TOP)
13 MAKEFILE=       Makefile.ssl
14 AR=             ar r
15
16 CFLAGS= $(INCLUDES) $(CFLAG)
17
18 ERR=bio
19 ERRC=bio_err
20 GENERAL=Makefile
21 TEST=
22 APPS=
23
24 LIB=$(TOP)/libcrypto.a
25 LIBSRC= bio_lib.c bio_cb.c $(ERRC).c \
26         bss_mem.c bss_null.c bss_fd.c \
27         bss_file.c bss_sock.c bss_conn.c \
28         bf_null.c bf_buff.c b_print.c b_dump.c \
29         b_sock.c bss_acpt.c bf_nbio.c bss_log.c
30 LIBOBJ= bio_lib.o bio_cb.o $(ERRC).o \
31         bss_mem.o bss_null.o bss_fd.o \
32         bss_file.o bss_sock.o bss_conn.o \
33         bf_null.o bf_buff.o b_print.o b_dump.o \
34         b_sock.o bss_acpt.o bf_nbio.o bss_log.o
35
36 SRC= $(LIBSRC)
37
38 EXHEADER= bio.h
39 HEADER= $(EXHEADER)
40
41 ALL=    $(GENERAL) $(SRC) $(HEADER)
42
43 top:
44         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
45
46 all:    lib
47
48 lib:    $(LIBOBJ)
49         $(AR) $(LIB) $(LIBOBJ)
50         $(RANLIB) $(LIB)
51         @touch lib
52
53 files:
54         $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
55
56 links:
57         @$(TOP)/util/point.sh Makefile.ssl Makefile
58         @$(TOP)/util/mklink.sh ../../include $(EXHEADER)
59         @$(TOP)/util/mklink.sh ../../test $(TEST)
60         @$(TOP)/util/mklink.sh ../../apps $(APPS)
61
62 install:
63         @for i in $(EXHEADER); \
64         do  \
65         (cp $$i $(INSTALLTOP)/include/$$i; \
66         chmod 644 $(INSTALLTOP)/include/$$i ); \
67         done;
68
69 tags:
70         ctags $(SRC)
71
72 tests:
73
74 lint:
75         lint -DLINT $(INCLUDES) $(SRC)>fluff
76
77 depend:
78         $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
79
80 dclean:
81         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
82         mv -f Makefile.new $(MAKEFILE)
83
84 clean:
85         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
86
87 errors: $(ERRC).c
88
89 $(ERRC).c: $(ERR).err
90         $(PERL) $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h
91         $(PERL) ../err/err_genc.pl -s $(ERR).h $(ERRC).c
92
93 # DO NOT DELETE THIS LINE -- make depend depends on it.
94
95 b_dump.o: ../../include/buffer.h ../../include/e_os.h ../../include/err.h
96 b_dump.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h bio.h
97 b_print.o: ../../include/buffer.h ../../include/e_os.h ../../include/err.h
98 b_print.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h bio.h
99 b_sock.o: ../../include/buffer.h ../../include/e_os.h ../../include/err.h
100 b_sock.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h bio.h
101 bf_buff.o: ../../include/asn1.h ../../include/blowfish.h ../../include/bn.h
102 bf_buff.o: ../../include/buffer.h ../../include/cast.h ../../include/des.h
103 bf_buff.o: ../../include/dh.h ../../include/dsa.h ../../include/e_os.h
104 bf_buff.o: ../../include/err.h ../../include/evp.h ../../include/idea.h
105 bf_buff.o: ../../include/md2.h ../../include/md5.h ../../include/mdc2.h
106 bf_buff.o: ../../include/objects.h ../../include/rc2.h ../../include/rc4.h
107 bf_buff.o: ../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
108 bf_buff.o: ../../include/sha.h ../../include/stack.h ../cryptlib.h ../crypto.h
109 bf_buff.o: ../opensslv.h bio.h
110 bf_nbio.o: ../../include/asn1.h ../../include/blowfish.h ../../include/bn.h
111 bf_nbio.o: ../../include/buffer.h ../../include/cast.h ../../include/des.h
112 bf_nbio.o: ../../include/dh.h ../../include/dsa.h ../../include/e_os.h
113 bf_nbio.o: ../../include/err.h ../../include/evp.h ../../include/idea.h
114 bf_nbio.o: ../../include/md2.h ../../include/md5.h ../../include/mdc2.h
115 bf_nbio.o: ../../include/objects.h ../../include/rand.h ../../include/rc2.h
116 bf_nbio.o: ../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
117 bf_nbio.o: ../../include/rsa.h ../../include/sha.h ../../include/stack.h
118 bf_nbio.o: ../cryptlib.h ../crypto.h ../opensslv.h bio.h
119 bf_null.o: ../../include/asn1.h ../../include/blowfish.h ../../include/bn.h
120 bf_null.o: ../../include/buffer.h ../../include/cast.h ../../include/des.h
121 bf_null.o: ../../include/dh.h ../../include/dsa.h ../../include/e_os.h
122 bf_null.o: ../../include/err.h ../../include/evp.h ../../include/idea.h
123 bf_null.o: ../../include/md2.h ../../include/md5.h ../../include/mdc2.h
124 bf_null.o: ../../include/objects.h ../../include/rc2.h ../../include/rc4.h
125 bf_null.o: ../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
126 bf_null.o: ../../include/sha.h ../../include/stack.h ../cryptlib.h ../crypto.h
127 bf_null.o: ../opensslv.h bio.h
128 bio_cb.o: ../../include/buffer.h ../../include/e_os.h ../../include/err.h
129 bio_cb.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h bio.h
130 bio_err.o: ../../include/err.h ../../include/stack.h ../crypto.h ../opensslv.h
131 bio_err.o: bio.h
132 bio_lib.o: ../../include/buffer.h ../../include/e_os.h ../../include/err.h
133 bio_lib.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h bio.h
134 bss_acpt.o: ../../include/buffer.h ../../include/e_os.h ../../include/err.h
135 bss_acpt.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h bio.h
136 bss_conn.o: ../../include/buffer.h ../../include/e_os.h ../../include/err.h
137 bss_conn.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h bio.h
138 bss_fd.o: ../../include/buffer.h ../../include/e_os.h ../../include/err.h
139 bss_fd.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h bio.h
140 bss_fd.o: bss_sock.c
141 bss_file.o: ../../include/buffer.h ../../include/e_os.h ../../include/err.h
142 bss_file.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h bio.h
143 bss_log.o: ../../include/buffer.h ../../include/e_os.h ../../include/err.h
144 bss_log.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h bio.h
145 bss_mem.o: ../../include/buffer.h ../../include/e_os.h ../../include/err.h
146 bss_mem.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h bio.h
147 bss_null.o: ../../include/buffer.h ../../include/e_os.h ../../include/err.h
148 bss_null.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h bio.h
149 bss_sock.o: ../../include/buffer.h ../../include/e_os.h ../../include/err.h
150 bss_sock.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h bio.h