Support INSTALL_PREFIX for packagers.
[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 INSTALL_PREFIX=
11 OPENSSLDIR=     /usr/local/ssl
12 INSTALLTOP=/usr/local/ssl
13 MAKE=           make -f Makefile.ssl
14 MAKEDEPEND=     $(TOP)/util/domd $(TOP)
15 MAKEFILE=       Makefile.ssl
16 AR=             ar r
17
18 CFLAGS= $(INCLUDES) $(CFLAG)
19
20 GENERAL=Makefile
21 TEST=
22 APPS=
23
24 LIB=$(TOP)/libcrypto.a
25 LIBSRC= bio_lib.c bio_cb.c bio_err.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 bio_err.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= bss_file.c $(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         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
59         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
60         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
61
62 install:
63         @for i in $(EXHEADER); \
64         do  \
65         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
66         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$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) $(DEPFLAG) $(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 # DO NOT DELETE THIS LINE -- make depend depends on it.
88
89 b_dump.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
90 b_dump.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
91 b_dump.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
92 b_dump.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
93 b_dump.o: ../cryptlib.h
94 b_print.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
95 b_print.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
96 b_print.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
97 b_print.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
98 b_print.o: ../cryptlib.h
99 b_sock.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
100 b_sock.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
101 b_sock.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
102 b_sock.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
103 b_sock.o: ../cryptlib.h
104 bf_buff.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
105 bf_buff.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
106 bf_buff.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
107 bf_buff.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
108 bf_buff.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
109 bf_buff.o: ../../include/openssl/e_os.h ../../include/openssl/err.h
110 bf_buff.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
111 bf_buff.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
112 bf_buff.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h
113 bf_buff.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
114 bf_buff.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
115 bf_buff.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
116 bf_buff.o: ../../include/openssl/rsa.h ../../include/openssl/sha.h
117 bf_buff.o: ../../include/openssl/stack.h ../cryptlib.h
118 bf_nbio.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
119 bf_nbio.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
120 bf_nbio.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
121 bf_nbio.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
122 bf_nbio.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
123 bf_nbio.o: ../../include/openssl/e_os.h ../../include/openssl/err.h
124 bf_nbio.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
125 bf_nbio.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
126 bf_nbio.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h
127 bf_nbio.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
128 bf_nbio.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
129 bf_nbio.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
130 bf_nbio.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
131 bf_nbio.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
132 bf_nbio.o: ../cryptlib.h
133 bf_null.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
134 bf_null.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
135 bf_null.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
136 bf_null.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
137 bf_null.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
138 bf_null.o: ../../include/openssl/e_os.h ../../include/openssl/err.h
139 bf_null.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
140 bf_null.o: ../../include/openssl/md2.h ../../include/openssl/md5.h
141 bf_null.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h
142 bf_null.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
143 bf_null.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
144 bf_null.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
145 bf_null.o: ../../include/openssl/rsa.h ../../include/openssl/sha.h
146 bf_null.o: ../../include/openssl/stack.h ../cryptlib.h
147 bio_cb.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
148 bio_cb.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
149 bio_cb.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
150 bio_cb.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
151 bio_cb.o: ../cryptlib.h
152 bio_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
153 bio_err.o: ../../include/openssl/err.h ../../include/openssl/opensslv.h
154 bio_err.o: ../../include/openssl/stack.h
155 bio_lib.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
156 bio_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
157 bio_lib.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
158 bio_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
159 bio_lib.o: ../cryptlib.h
160 bss_acpt.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
161 bss_acpt.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
162 bss_acpt.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
163 bss_acpt.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
164 bss_acpt.o: ../cryptlib.h
165 bss_conn.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
166 bss_conn.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
167 bss_conn.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
168 bss_conn.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
169 bss_conn.o: ../cryptlib.h
170 bss_fd.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
171 bss_fd.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
172 bss_fd.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
173 bss_fd.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
174 bss_fd.o: ../cryptlib.h bss_sock.c
175 bss_file.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
176 bss_file.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
177 bss_file.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
178 bss_file.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
179 bss_file.o: ../cryptlib.h
180 bss_log.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
181 bss_log.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
182 bss_log.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
183 bss_log.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
184 bss_log.o: ../cryptlib.h
185 bss_mem.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
186 bss_mem.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
187 bss_mem.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
188 bss_mem.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
189 bss_mem.o: ../cryptlib.h
190 bss_null.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
191 bss_null.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
192 bss_null.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
193 bss_null.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
194 bss_null.o: ../cryptlib.h
195 bss_sock.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
196 bss_sock.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
197 bss_sock.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
198 bss_sock.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
199 bss_sock.o: ../cryptlib.h