2 # OpenSSL/crypto/Makefile
8 INCLUDE
= -I.
-I
$(TOP
) -I..
/include -Iinclude
$(ZLIB_INCLUDE
)
9 # INCLUDES targets sudbirs!
10 INCLUDES
= -I..
-I..
/..
-I..
/modes
-I..
/include -I..
/..
/include $(ZLIB_INCLUDE
)
12 MAKEDEPPROG
= makedepend
13 MAKEDEPEND
= $(TOP
)/util
/domd
$(TOP
) -MD
$(MAKEDEPPROG
)
18 RECURSIVE_MAKE
= [ -n
"$(SDIRS)" ] && for i in
$(SDIRS
) ; do \
19 (cd
$$i && echo
"making $$target in $(DIR)/$$i..." && \
20 $(MAKE
) -e TOP
=..
/.. DIR
=$$i INCLUDES
='$(INCLUDES)' $$target ) || exit
1; \
26 CFLAGS
= $(INCLUDE
) $(CFLAG
)
27 ASFLAGS
= $(INCLUDE
) $(ASFLAG
)
33 GENERAL
=Makefile README crypto-lib.com
install.com
35 LIB
= $(TOP
)/libcrypto.a
36 SHARED_LIB
= libcrypto
$(SHLIB_EXT
)
37 LIBSRC
= cryptlib.c mem.c mem_clr.c mem_dbg.c cversion.c ex_data.c cpt_err.c \
38 ebcdic.c uid.c o_time.c o_str.c o_dir.c thr_id.c lock.c fips_ers.c \
40 LIBOBJ
= cryptlib.o mem.o mem_dbg.o cversion.o ex_data.o cpt_err.o \
41 ebcdic.o uid.o o_time.o o_str.o o_dir.o thr_id.o lock.o fips_ers.o \
42 o_init.o o_fips.o
$(CPUID_OBJ
)
46 HEADER
= buildinf.h arm_arch.h ppc_arch.h sparc_arch.h
48 ALL
= $(GENERAL
) $(SRC
) $(HEADER
)
51 @
(cd ..
; $(MAKE
) DIRS
=$(DIR
) all)
55 fips
: cryptlib.o thr_id.o uid.o
$(CPUID_OBJ
)
56 [ -n
"$(SDIRS)" ] && for i in
$(SDIRS
) ; do \
57 ( obj
=`$(PERL) $(TOP)/util/fipsobj.pl $$i` && \
58 cd
$$i && echo
"making fips in $(DIR)/$$i..." && \
59 $(MAKE
) -e TOP
=..
/.. DIR
=$$i INCLUDES
='$(INCLUDES)' $$obj ) || exit
1; \
62 buildinf.h
: ..
/Makefile
63 $(PERL
) $(TOP
)/util
/mkbuildinf.pl
"$(CC) $(CFLAGS)" "$(PLATFORM)" >buildinf.h
65 x86cpuid.s
: x86cpuid.pl perlasm
/x86asm.pl
66 $(PERL
) x86cpuid.pl
$(PERLASM_SCHEME
) $(CFLAGS
) $(PROCESSOR
) > $@
68 applink.o
: $(TOP
)/ms
/applink.c
69 $(CC
) $(CFLAGS
) -c
-o
$@
$(TOP
)/ms
/applink.c
71 uplink.o
: $(TOP
)/ms
/uplink.c applink.o
72 $(CC
) $(CFLAGS
) -c
-o
$@
$(TOP
)/ms
/uplink.c
74 uplink-x86.s
: $(TOP
)/ms
/uplink-x86.pl
75 $(PERL
) $(TOP
)/ms
/uplink-x86.pl
$(PERLASM_SCHEME
) > $@
77 x86_64cpuid.s
: x86_64cpuid.pl
; $(PERL
) x86_64cpuid.pl
$(PERLASM_SCHEME
) > $@
78 ia64cpuid.s
: ia64cpuid.S
; $(CC
) $(CFLAGS
) -E ia64cpuid.S
> $@
79 ppccpuid.s
: ppccpuid.pl
; $(PERL
) ppccpuid.pl
$(PERLASM_SCHEME
) $@
80 pariscid.s
: pariscid.pl
; $(PERL
) pariscid.pl
$(PERLASM_SCHEME
) $@
81 alphacpuid.s
: alphacpuid.pl
82 (preproc
=$$$$.
$@.S
; trap
"rm $$preproc" INT
; \
83 $(PERL
) alphacpuid.pl
> $$preproc && \
84 $(CC
) -E
-P
$$preproc > $@
&& rm $$preproc)
85 arm64cpuid.S
: arm64cpuid.pl
; $(PERL
) arm64cpuid.pl
$(PERLASM_SCHEME
) > $@
86 armv4cpuid.S
: armv4cpuid.pl
; $(PERL
) armv4cpuid.pl
$(PERLASM_SCHEME
) > $@
89 @target
=all; $(RECURSIVE_MAKE
)
92 $(PERL
) $(TOP
)/util
/files.pl
"CPUID_OBJ=$(CPUID_OBJ)" Makefile
>> $(TOP
)/MINFO
93 @target
=files
; $(RECURSIVE_MAKE
)
95 # lib: $(LIB): are splitted to avoid end-less loop
99 $(AR
) $(LIB
) $(LIBOBJ
)
100 $(RANLIB
) $(LIB
) || echo Never mind.
102 shared
: buildinf.h lib subdirs
103 if
[ -n
"$(SHARED_LIBS)" ]; then \
104 (cd ..
; $(MAKE
) $(SHARED_LIB
)); \
108 @target
=lib
; $(RECURSIVE_MAKE
)
111 @target
=lint
; $(RECURSIVE_MAKE
)
114 @
[ -z
"$(THIS)" -o
-f buildinf.h
] || touch buildinf.h
# fake buildinf.h if it does not exist
115 @
[ -z
"$(THIS)" ] ||
$(MAKEDEPEND
) -- $(CFLAG
) $(INCLUDE
) $(DEPFLAG
) -- $(PROGS
) $(LIBSRC
)
116 @
[ -z
"$(THIS)" -o
-s buildinf.h
] ||
rm buildinf.h
117 @
[ -z
"$(THIS)" ] ||
(set
-e
; target
=depend
; $(RECURSIVE_MAKE
) )
118 @if
[ -z
"$(THIS)" ]; then
$(MAKE
) -f
$(TOP
)/Makefile reflect THIS
=$@
; fi
121 rm -f buildinf.h
*.s
*.o
*/*.o
*.obj lib
tags core .pure .nfs
* *.old
*.bak fluff
122 @target
=clean; $(RECURSIVE_MAKE
)
125 $(PERL
) -pe
'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE
) >Makefile.new
126 mv
-f Makefile.new
$(MAKEFILE
)
127 @target
=dclean
; $(RECURSIVE_MAKE
)
129 # DO NOT DELETE THIS LINE -- make depend depends on it.
131 cpt_err.o
: ..
/include/openssl
/bio.h ..
/include/openssl
/crypto.h
132 cpt_err.o
: ..
/include/openssl
/e_os2.h ..
/include/openssl
/err.h
133 cpt_err.o
: ..
/include/openssl
/lhash.h ..
/include/openssl
/opensslconf.h
134 cpt_err.o
: ..
/include/openssl
/opensslv.h ..
/include/openssl
/ossl_typ.h
135 cpt_err.o
: ..
/include/openssl
/safestack.h ..
/include/openssl
/stack.h
136 cpt_err.o
: ..
/include/openssl
/symhacks.h cpt_err.c
137 cryptlib.o
: ..
/e_os.h ..
/include/openssl
/bio.h ..
/include/openssl
/buffer.h
138 cryptlib.o
: ..
/include/openssl
/crypto.h ..
/include/openssl
/e_os2.h
139 cryptlib.o
: ..
/include/openssl
/err.h ..
/include/openssl
/lhash.h
140 cryptlib.o
: ..
/include/openssl
/opensslconf.h ..
/include/openssl
/opensslv.h
141 cryptlib.o
: ..
/include/openssl
/ossl_typ.h ..
/include/openssl
/safestack.h
142 cryptlib.o
: ..
/include/openssl
/stack.h ..
/include/openssl
/symhacks.h cryptlib.c
143 cryptlib.o
: include/internal
/cryptlib.h
144 cversion.o
: ..
/e_os.h ..
/include/openssl
/bio.h ..
/include/openssl
/buffer.h
145 cversion.o
: ..
/include/openssl
/crypto.h ..
/include/openssl
/e_os2.h
146 cversion.o
: ..
/include/openssl
/err.h ..
/include/openssl
/lhash.h
147 cversion.o
: ..
/include/openssl
/opensslconf.h ..
/include/openssl
/opensslv.h
148 cversion.o
: ..
/include/openssl
/ossl_typ.h ..
/include/openssl
/safestack.h
149 cversion.o
: ..
/include/openssl
/stack.h ..
/include/openssl
/symhacks.h buildinf.h
150 cversion.o
: cversion.c
include/internal
/cryptlib.h
151 ebcdic.o
: ..
/include/openssl
/e_os2.h ..
/include/openssl
/opensslconf.h ebcdic.c
152 ex_data.o
: ..
/e_os.h ..
/include/openssl
/bio.h ..
/include/openssl
/buffer.h
153 ex_data.o
: ..
/include/openssl
/crypto.h ..
/include/openssl
/e_os2.h
154 ex_data.o
: ..
/include/openssl
/err.h ..
/include/openssl
/lhash.h
155 ex_data.o
: ..
/include/openssl
/opensslconf.h ..
/include/openssl
/opensslv.h
156 ex_data.o
: ..
/include/openssl
/ossl_typ.h ..
/include/openssl
/safestack.h
157 ex_data.o
: ..
/include/openssl
/stack.h ..
/include/openssl
/symhacks.h ex_data.c
158 ex_data.o
: include/internal
/cryptlib.h
159 fips_ers.o
: ..
/include/openssl
/opensslconf.h fips_ers.c
160 lock.o
: ..
/e_os.h ..
/include/openssl
/bio.h ..
/include/openssl
/buffer.h
161 lock.o
: ..
/include/openssl
/crypto.h ..
/include/openssl
/e_os2.h
162 lock.o
: ..
/include/openssl
/err.h ..
/include/openssl
/lhash.h
163 lock.o
: ..
/include/openssl
/opensslconf.h ..
/include/openssl
/opensslv.h
164 lock.o
: ..
/include/openssl
/ossl_typ.h ..
/include/openssl
/safestack.h
165 lock.o
: ..
/include/openssl
/stack.h ..
/include/openssl
/symhacks.h
166 lock.o
: include/internal
/cryptlib.h lock.c
167 mem.o
: ..
/e_os.h ..
/include/openssl
/bio.h ..
/include/openssl
/buffer.h
168 mem.o
: ..
/include/openssl
/crypto.h ..
/include/openssl
/e_os2.h
169 mem.o
: ..
/include/openssl
/err.h ..
/include/openssl
/lhash.h
170 mem.o
: ..
/include/openssl
/opensslconf.h ..
/include/openssl
/opensslv.h
171 mem.o
: ..
/include/openssl
/ossl_typ.h ..
/include/openssl
/safestack.h
172 mem.o
: ..
/include/openssl
/stack.h ..
/include/openssl
/symhacks.h
173 mem.o
: include/internal
/cryptlib.h mem.c
174 mem_clr.o
: ..
/include/openssl
/crypto.h ..
/include/openssl
/e_os2.h
175 mem_clr.o
: ..
/include/openssl
/opensslconf.h ..
/include/openssl
/opensslv.h
176 mem_clr.o
: ..
/include/openssl
/ossl_typ.h ..
/include/openssl
/safestack.h
177 mem_clr.o
: ..
/include/openssl
/stack.h ..
/include/openssl
/symhacks.h mem_clr.c
178 mem_dbg.o
: ..
/e_os.h ..
/include/openssl
/bio.h ..
/include/openssl
/buffer.h
179 mem_dbg.o
: ..
/include/openssl
/crypto.h ..
/include/openssl
/e_os2.h
180 mem_dbg.o
: ..
/include/openssl
/err.h ..
/include/openssl
/lhash.h
181 mem_dbg.o
: ..
/include/openssl
/opensslconf.h ..
/include/openssl
/opensslv.h
182 mem_dbg.o
: ..
/include/openssl
/ossl_typ.h ..
/include/openssl
/safestack.h
183 mem_dbg.o
: ..
/include/openssl
/stack.h ..
/include/openssl
/symhacks.h
184 mem_dbg.o
: include/internal
/cryptlib.h mem_dbg.c
185 o_dir.o
: ..
/e_os.h ..
/include/internal
/o_dir.h ..
/include/openssl
/e_os2.h
186 o_dir.o
: ..
/include/openssl
/opensslconf.h LPdir_unix.c o_dir.c
187 o_fips.o
: ..
/e_os.h ..
/include/openssl
/bio.h ..
/include/openssl
/buffer.h
188 o_fips.o
: ..
/include/openssl
/crypto.h ..
/include/openssl
/e_os2.h
189 o_fips.o
: ..
/include/openssl
/err.h ..
/include/openssl
/lhash.h
190 o_fips.o
: ..
/include/openssl
/opensslconf.h ..
/include/openssl
/opensslv.h
191 o_fips.o
: ..
/include/openssl
/ossl_typ.h ..
/include/openssl
/safestack.h
192 o_fips.o
: ..
/include/openssl
/stack.h ..
/include/openssl
/symhacks.h
193 o_fips.o
: include/internal
/cryptlib.h o_fips.c
194 o_init.o
: ..
/e_os.h ..
/include/openssl
/bio.h ..
/include/openssl
/crypto.h
195 o_init.o
: ..
/include/openssl
/e_os2.h ..
/include/openssl
/err.h
196 o_init.o
: ..
/include/openssl
/lhash.h ..
/include/openssl
/opensslconf.h
197 o_init.o
: ..
/include/openssl
/opensslv.h ..
/include/openssl
/ossl_typ.h
198 o_init.o
: ..
/include/openssl
/safestack.h ..
/include/openssl
/stack.h
199 o_init.o
: ..
/include/openssl
/symhacks.h o_init.c
200 o_str.o
: ..
/e_os.h ..
/include/internal
/o_str.h ..
/include/openssl
/e_os2.h
201 o_str.o
: ..
/include/openssl
/opensslconf.h o_str.c
202 o_time.o
: ..
/include/openssl
/crypto.h ..
/include/openssl
/e_os2.h
203 o_time.o
: ..
/include/openssl
/opensslconf.h ..
/include/openssl
/opensslv.h
204 o_time.o
: ..
/include/openssl
/ossl_typ.h ..
/include/openssl
/safestack.h
205 o_time.o
: ..
/include/openssl
/stack.h ..
/include/openssl
/symhacks.h o_time.c
206 thr_id.o
: ..
/e_os.h ..
/include/openssl
/bio.h ..
/include/openssl
/buffer.h
207 thr_id.o
: ..
/include/openssl
/crypto.h ..
/include/openssl
/e_os2.h
208 thr_id.o
: ..
/include/openssl
/err.h ..
/include/openssl
/lhash.h
209 thr_id.o
: ..
/include/openssl
/opensslconf.h ..
/include/openssl
/opensslv.h
210 thr_id.o
: ..
/include/openssl
/ossl_typ.h ..
/include/openssl
/safestack.h
211 thr_id.o
: ..
/include/openssl
/stack.h ..
/include/openssl
/symhacks.h
212 thr_id.o
: include/internal
/cryptlib.h thr_id.c
213 uid.o
: ..
/include/openssl
/crypto.h ..
/include/openssl
/e_os2.h
214 uid.o
: ..
/include/openssl
/opensslconf.h ..
/include/openssl
/opensslv.h
215 uid.o
: ..
/include/openssl
/ossl_typ.h ..
/include/openssl
/safestack.h
216 uid.o
: ..
/include/openssl
/stack.h ..
/include/openssl
/symhacks.h uid.c