2 # SSLeay/crypto/Makefile
8 INCLUDE
= -I.
-I
$(TOP
) -I..
/include
9 # INCLUDES targets sudbirs!
10 INCLUDES
= -I..
-I..
/..
-I..
/..
/include
12 MAKEDEPPROG
= makedepend
13 MAKEDEPEND
= $(TOP
)/util
/domd
$(TOP
) -MD
$(MAKEDEPPROG
)
21 CFLAGS
= $(INCLUDE
) $(CFLAG
)
22 ASFLAGS
= $(INCLUDE
) $(ASFLAG
)
28 md2 md4 md5 sha mdc2 hmac ripemd \
29 des rc2 rc4 rc5 idea bf cast \
30 bn ec rsa dsa ecdsa ecdh dh dso engine aes \
31 buffer bio stack lhash rand err \
32 evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp ocsp ui krb5 \
35 GENERAL
=Makefile README crypto-lib.com
install.com
37 LIB
= $(TOP
)/libcrypto.a
38 SHARED_LIB
= libcrypto
$(SHLIB_EXT
)
39 LIBSRC
= cryptlib.c mem.c mem_clr.c mem_dbg.c cversion.c ex_data.c tmdiff.c cpt_err.c ebcdic.c uid.c o_time.c o_str.c o_dir.c
40 LIBOBJ
= cryptlib.o mem.o mem_clr.o mem_dbg.o cversion.o ex_data.o tmdiff.o cpt_err.o ebcdic.o uid.o o_time.o o_str.o o_dir.o
$(CPUID_OBJ
)
44 EXHEADER
= crypto.h tmdiff.h opensslv.h opensslconf.h ebcdic.h symhacks.h \
46 HEADER
= cryptlib.h buildinf.h md32_common.h o_time.h o_str.h o_dir.h
$(EXHEADER
)
48 ALL
= $(GENERAL
) $(SRC
) $(HEADER
)
51 @
(cd ..
; $(MAKE
) DIRS
=$(DIR
) all)
55 buildinf.h
: ..
/Makefile
56 ( echo
"#ifndef MK1MF_BUILD"; \
57 echo
' /* auto-generated by crypto/Makefile for crypto/cversion.c */'; \
58 echo
' #define CFLAGS "$(CC) $(CFLAG)"'; \
59 echo
' #define PLATFORM "$(PLATFORM)"'; \
60 echo
" #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
61 echo
'#endif' ) >buildinf.h
63 x86cpuid-elf.s
: x86cpuid.pl perlasm
/x86asm.pl
64 $(PERL
) x86cpuid.pl elf
$(CFLAGS
) $(PROCESSOR
) > $@
65 x86cpuid-cof.s
: x86cpuid.pl perlasm
/x86asm.pl
66 $(PERL
) x86cpuid.pl coff
$(CFLAGS
) $(PROCESSOR
) > $@
67 x86cpuid-out.s
: x86cpuid.pl perlasm
/x86asm.pl
68 $(PERL
) x86cpuid.pl a.out
$(CFLAGS
) $(PROCESSOR
) > $@
70 uplink.o
: ..
/ms
/uplink.c
71 $(CC
) $(CFLAGS
) -c
-o
$@ ..
/ms
/uplink.c
73 uplink-cof.s
: ..
/ms
/uplink.pl
74 $(PERL
) ..
/ms
/uplink.pl coff
> $@
76 x86_64cpuid.s
: x86_64cpuid.pl
77 $(PERL
) x86_64cpuid.pl
$@
78 ia64cpuid.s
: ia64cpuid.S
79 $(CC
) $(CFLAGS
) -E ia64cpuid.S
> $@
82 [ -z
"$(THIS)" ] ||
( if echo
${SDIRS} | fgrep
' des '; \
83 then cd des
&& $(MAKE
) des
; fi
)
84 [ -z
"$(THIS)" ] ||
( cd pkcs7
&& $(MAKE
) testapps
);
85 @if
[ -z
"$(THIS)" ]; then
$(MAKE
) -f
$(TOP
)/Makefile reflect THIS
=$@
; fi
90 (cd
$$i && echo
"making all in crypto/$$i..." && \
91 $(MAKE
) INCLUDES
='${INCLUDES}' all ) || exit
1; \
95 $(PERL
) $(TOP
)/util
/files.pl Makefile
>> $(TOP
)/MINFO
98 (cd
$$i && echo
"making 'files' in crypto/$$i..." && \
103 @
$(PERL
) $(TOP
)/util
/mklink.pl ..
/include/openssl
$(EXHEADER
)
104 @
$(PERL
) $(TOP
)/util
/mklink.pl ..
/test $(TEST
)
105 @
$(PERL
) $(TOP
)/util
/mklink.pl ..
/apps
$(APPS
)
106 @for i in
$(SDIRS
); do \
107 (cd
$$i && echo
"making links in crypto/$$i..." && \
112 $(AR
) $(LIB
) $(LIBOBJ
)
113 $(RANLIB
) $(LIB
) || echo Never mind.
116 shared
: buildinf.h lib subdirs
117 if
[ -n
"$(SHARED_LIBS)" ]; then \
118 (cd ..
; $(MAKE
) $(SHARED_LIB
)); \
122 @for i in
$(SDIRS
) ;\
124 (cd
$$i && echo
"making libs in crypto/$$i..." && \
129 @
[ -z
"$(THIS)" ] ||
(for i in
$(SDIRS
) ;\
131 (cd
$$i && echo
"making tests in crypto/$$i..." && \
134 @if
[ -z
"$(THIS)" ]; then
$(MAKE
) -f
$(TOP
)/Makefile reflect THIS
=$@
; fi
137 @
[ -n
"$(INSTALLTOP)" ] # should be set by top Makefile...
138 @headerlist
="$(EXHEADER)"; for i in
$$headerlist ;\
140 (cp
$$i $(INSTALL_PREFIX
)$(INSTALLTOP
)/include/openssl
/$$i; \
141 chmod
644 $(INSTALL_PREFIX
)$(INSTALLTOP
)/include/openssl
/$$i ); \
143 @for i in
$(SDIRS
) ;\
145 (cd
$$i && echo
"making install in crypto/$$i..." && \
150 @for i in
$(SDIRS
) ;\
152 (cd
$$i && echo
"making lint in crypto/$$i..." && \
157 [ -z
"$(THIS)" -o
-f buildinf.h
] || touch buildinf.h
# fake buildinf.h if it does not exist
158 [ -z
"$(THIS)" ] ||
$(MAKEDEPEND
) -- $(CFLAG
) $(INCLUDE
) $(DEPFLAG
) -- $(PROGS
) $(LIBSRC
)
159 [ -z
"$(THIS)" -o
-s buildinf.h
] ||
rm buildinf.h
160 @
[ -z
"$(THIS)" ] ||
(set
-e
; \
161 for i in
$(SDIRS
) ; do \
162 ( cd
$$i && echo
"making depend in crypto/$$i..." && \
163 $(MAKE
) INCLUDES
='${INCLUDES}' depend \
166 @if
[ -z
"$(THIS)" ]; then
$(MAKE
) -f
$(TOP
)/Makefile reflect THIS
=$@
; fi
169 rm -f buildinf.h
*.s
*.o
*/*.o
*.obj lib
tags core .pure .nfs
* *.old
*.bak fluff
170 @for i in
$(SDIRS
) ;\
172 (cd
$$i && echo
"making clean in crypto/$$i..." && \
177 $(PERL
) -pe
'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE
) >Makefile.new
178 mv
-f Makefile.new
$(MAKEFILE
)
179 @for i in
$(SDIRS
) ;\
181 (cd
$$i && echo
"making dclean in crypto/$$i..." && \
185 # DO NOT DELETE THIS LINE -- make depend depends on it.
187 cpt_err.o
: ..
/include/openssl
/bio.h ..
/include/openssl
/crypto.h
188 cpt_err.o
: ..
/include/openssl
/e_os2.h ..
/include/openssl
/err.h
189 cpt_err.o
: ..
/include/openssl
/lhash.h ..
/include/openssl
/opensslconf.h
190 cpt_err.o
: ..
/include/openssl
/opensslv.h ..
/include/openssl
/ossl_typ.h
191 cpt_err.o
: ..
/include/openssl
/safestack.h ..
/include/openssl
/stack.h
192 cpt_err.o
: ..
/include/openssl
/symhacks.h cpt_err.c
193 cryptlib.o
: ..
/e_os.h ..
/include/openssl
/bio.h ..
/include/openssl
/buffer.h
194 cryptlib.o
: ..
/include/openssl
/crypto.h ..
/include/openssl
/e_os2.h
195 cryptlib.o
: ..
/include/openssl
/err.h ..
/include/openssl
/lhash.h
196 cryptlib.o
: ..
/include/openssl
/opensslconf.h ..
/include/openssl
/opensslv.h
197 cryptlib.o
: ..
/include/openssl
/ossl_typ.h ..
/include/openssl
/safestack.h
198 cryptlib.o
: ..
/include/openssl
/stack.h ..
/include/openssl
/symhacks.h cryptlib.c
199 cryptlib.o
: cryptlib.h
200 cversion.o
: ..
/e_os.h ..
/include/openssl
/bio.h ..
/include/openssl
/buffer.h
201 cversion.o
: ..
/include/openssl
/crypto.h ..
/include/openssl
/e_os2.h
202 cversion.o
: ..
/include/openssl
/err.h ..
/include/openssl
/lhash.h
203 cversion.o
: ..
/include/openssl
/opensslconf.h ..
/include/openssl
/opensslv.h
204 cversion.o
: ..
/include/openssl
/ossl_typ.h ..
/include/openssl
/safestack.h
205 cversion.o
: ..
/include/openssl
/stack.h ..
/include/openssl
/symhacks.h buildinf.h
206 cversion.o
: cryptlib.h cversion.c
207 ebcdic.o
: ..
/include/openssl
/e_os2.h ..
/include/openssl
/opensslconf.h ebcdic.c
208 ex_data.o
: ..
/e_os.h ..
/include/openssl
/bio.h ..
/include/openssl
/buffer.h
209 ex_data.o
: ..
/include/openssl
/crypto.h ..
/include/openssl
/e_os2.h
210 ex_data.o
: ..
/include/openssl
/err.h ..
/include/openssl
/lhash.h
211 ex_data.o
: ..
/include/openssl
/opensslconf.h ..
/include/openssl
/opensslv.h
212 ex_data.o
: ..
/include/openssl
/ossl_typ.h ..
/include/openssl
/safestack.h
213 ex_data.o
: ..
/include/openssl
/stack.h ..
/include/openssl
/symhacks.h cryptlib.h
215 mem.o
: ..
/e_os.h ..
/include/openssl
/bio.h ..
/include/openssl
/buffer.h
216 mem.o
: ..
/include/openssl
/crypto.h ..
/include/openssl
/e_os2.h
217 mem.o
: ..
/include/openssl
/err.h ..
/include/openssl
/lhash.h
218 mem.o
: ..
/include/openssl
/opensslconf.h ..
/include/openssl
/opensslv.h
219 mem.o
: ..
/include/openssl
/ossl_typ.h ..
/include/openssl
/safestack.h
220 mem.o
: ..
/include/openssl
/stack.h ..
/include/openssl
/symhacks.h cryptlib.h
222 mem_clr.o
: ..
/include/openssl
/crypto.h ..
/include/openssl
/e_os2.h
223 mem_clr.o
: ..
/include/openssl
/opensslconf.h ..
/include/openssl
/opensslv.h
224 mem_clr.o
: ..
/include/openssl
/ossl_typ.h ..
/include/openssl
/safestack.h
225 mem_clr.o
: ..
/include/openssl
/stack.h ..
/include/openssl
/symhacks.h mem_clr.c
226 mem_dbg.o
: ..
/e_os.h ..
/include/openssl
/bio.h ..
/include/openssl
/buffer.h
227 mem_dbg.o
: ..
/include/openssl
/crypto.h ..
/include/openssl
/e_os2.h
228 mem_dbg.o
: ..
/include/openssl
/err.h ..
/include/openssl
/lhash.h
229 mem_dbg.o
: ..
/include/openssl
/opensslconf.h ..
/include/openssl
/opensslv.h
230 mem_dbg.o
: ..
/include/openssl
/ossl_typ.h ..
/include/openssl
/safestack.h
231 mem_dbg.o
: ..
/include/openssl
/stack.h ..
/include/openssl
/symhacks.h cryptlib.h
233 o_dir.o
: ..
/e_os.h ..
/include/openssl
/e_os2.h ..
/include/openssl
/opensslconf.h
234 o_dir.o
: LPdir_unix.c o_dir.c o_dir.h
235 o_str.o
: ..
/e_os.h ..
/include/openssl
/e_os2.h ..
/include/openssl
/opensslconf.h
236 o_str.o
: o_str.c o_str.h
237 o_time.o
: ..
/include/openssl
/e_os2.h ..
/include/openssl
/opensslconf.h o_time.c
239 tmdiff.o
: ..
/e_os.h ..
/include/openssl
/bio.h ..
/include/openssl
/buffer.h
240 tmdiff.o
: ..
/include/openssl
/crypto.h ..
/include/openssl
/e_os2.h
241 tmdiff.o
: ..
/include/openssl
/err.h ..
/include/openssl
/lhash.h
242 tmdiff.o
: ..
/include/openssl
/opensslconf.h ..
/include/openssl
/opensslv.h
243 tmdiff.o
: ..
/include/openssl
/ossl_typ.h ..
/include/openssl
/safestack.h
244 tmdiff.o
: ..
/include/openssl
/stack.h ..
/include/openssl
/symhacks.h
245 tmdiff.o
: ..
/include/openssl
/tmdiff.h cryptlib.h tmdiff.c
246 uid.o
: ..
/include/openssl
/crypto.h ..
/include/openssl
/e_os2.h
247 uid.o
: ..
/include/openssl
/opensslconf.h ..
/include/openssl
/opensslv.h
248 uid.o
: ..
/include/openssl
/ossl_typ.h ..
/include/openssl
/safestack.h
249 uid.o
: ..
/include/openssl
/stack.h ..
/include/openssl
/symhacks.h uid.c