2 # SSLeay/crypto/bn/Makefile
8 INCLUDES= -I.. -I../../include
10 INSTALLTOP=/usr/local/ssl
11 MAKE= make -f Makefile.ssl
12 MAKEDEPEND= $(TOP)/util/domd $(TOP)
13 MAKEFILE= Makefile.ssl
20 CFLAGS= $(INCLUDES) $(CFLAG)
25 TEST=bntest.c exptest.c
28 LIB=$(TOP)/libcrypto.a
29 LIBSRC= bn_add.c bn_div.c bn_exp.c bn_lib.c bn_mul.c \
30 bn_print.c bn_rand.c bn_shift.c bn_word.c bn_blind.c \
31 bn_gcd.c bn_prime.c $(ERRC).c bn_sqr.c bn_asm.c bn_recp.c bn_mont.c \
34 LIBOBJ= bn_add.o bn_div.o bn_exp.o bn_lib.o bn_mul.o \
35 bn_print.o bn_rand.o bn_shift.o bn_word.o bn_blind.o \
36 bn_gcd.o bn_prime.o $(ERRC).o bn_sqr.o $(BN_ASM) bn_recp.o bn_mont.o \
42 HEADER= bn_lcl.h bn_prime.h $(EXHEADER)
44 ALL= $(GENERAL) $(SRC) $(HEADER)
47 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
52 cc -pg -I.. -I../../include bn_knuth.c -o knuth $(LIB) #../../../libefence.a
54 knuth.fast: bn_knuth.c
55 cc -pg -fast -I.. -I../../include bn_knuth.c -o knuth $(LIB) #../../../libefence.a
59 $(AR) $(LIB) $(LIBOBJ)
64 asm/bn86-elf.o: asm/bn86unix.cpp
65 $(CPP) -DELF asm/bn86unix.cpp | as -o asm/bn86-elf.o
67 asm/co86-elf.o: asm/co86unix.cpp
68 $(CPP) -DELF asm/co86unix.cpp | as -o asm/co86-elf.o
71 asm/bn86-sol.o: asm/bn86unix.cpp
72 $(CC) -E -DSOL asm/bn86unix.cpp | sed 's/^#.*//' > asm/bn86-sol.s
73 as -o asm/bn86-sol.o asm/bn86-sol.s
76 asm/co86-sol.o: asm/co86unix.cpp
77 $(CC) -E -DSOL asm/co86unix.cpp | sed 's/^#.*//' > asm/co86-sol.s
78 as -o asm/co86-sol.o asm/co86-sol.s
82 asm/bn86-out.o: asm/bn86unix.cpp
83 $(CPP) -DOUT asm/bn86unix.cpp | as -o asm/bn86-out.o
85 asm/co86-out.o: asm/co86unix.cpp
86 $(CPP) -DOUT asm/co86unix.cpp | as -o asm/co86-out.o
89 asm/bn86bsdi.o: asm/bn86unix.cpp
90 $(CPP) -DBSDI asm/bn86unix.cpp | sed 's/ :/:/' | as -o asm/bn86bsdi.o
92 asm/co86bsdi.o: asm/co86unix.cpp
93 $(CPP) -DBSDI asm/co86unix.cpp | sed 's/ :/:/' | as -o asm/co86bsdi.o
95 asm/bn86unix.cpp: asm/bn-586.pl
96 (cd asm; $(PERL) bn-586.pl cpp >bn86unix.cpp )
98 asm/co86unix.cpp: asm/co-586.pl
99 (cd asm; $(PERL) co-586.pl cpp >co86unix.cpp )
101 # MIPS 64 bit assember
102 asm/mips3.o: asm/mips3.s
103 /usr/bin/as -mips3 -O2 -o asm/mips3.o asm/mips3.s
105 # MIPS 32 bit assember
106 asm/mips1.o: asm/mips1.s
107 /usr/bin/as -O2 -o asm/mips1.o asm/mips1.s
110 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
113 @$(TOP)/util/point.sh Makefile.ssl Makefile
114 @$(TOP)/util/mklink.sh ../../include $(EXHEADER)
115 @$(TOP)/util/mklink.sh ../../test $(TEST)
116 @$(TOP)/util/mklink.sh ../../apps $(APPS)
119 @for i in $(EXHEADER) ; \
121 (cp $$i $(INSTALLTOP)/include/$$i; \
122 chmod 644 $(INSTALLTOP)/include/$$i ); \
127 gcc -I../../include -g2 -ggdb -o exptest exptest.c ../../libcrypto.a
131 gcc -I.. -g div.c ../../libcrypto.a
139 lint -DLINT $(INCLUDES) $(SRC)>fluff
142 $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
145 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
146 mv -f Makefile.new $(MAKEFILE)
149 rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff bn_asm.s
153 $(ERRC).c: $(ERR).err
154 $(PERL) $(TOP)/util/err-ins.pl $(ERR).err $(ERR).org # special case .org
155 $(PERL) $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h
156 $(PERL) ../err/err_genc.pl -s $(ERR).h $(ERRC).c
158 # DO NOT DELETE THIS LINE -- make depend depends on it.
160 bn_add.o: ../../include/bio.h ../../include/buffer.h ../../include/e_os.h
161 bn_add.o: ../../include/err.h ../../include/stack.h ../cryptlib.h ../crypto.h
162 bn_add.o: ../opensslv.h bn.h bn_lcl.h
163 bn_asm.o: ../../include/bio.h ../../include/buffer.h ../../include/e_os.h
164 bn_asm.o: ../../include/err.h ../../include/stack.h ../cryptlib.h ../crypto.h
165 bn_asm.o: ../opensslv.h bn.h bn_lcl.h
166 bn_blind.o: ../../include/bio.h ../../include/buffer.h ../../include/e_os.h
167 bn_blind.o: ../../include/err.h ../../include/stack.h ../cryptlib.h ../crypto.h
168 bn_blind.o: ../opensslv.h bn.h bn_lcl.h
169 bn_div.o: ../../include/bio.h ../../include/buffer.h ../../include/e_os.h
170 bn_div.o: ../../include/err.h ../../include/stack.h ../cryptlib.h ../crypto.h
171 bn_div.o: ../opensslv.h bn.h bn_lcl.h
172 bn_err.o: ../../include/err.h bn.h
173 bn_exp.o: ../../include/bio.h ../../include/buffer.h ../../include/e_os.h
174 bn_exp.o: ../../include/err.h ../../include/stack.h ../cryptlib.h ../crypto.h
175 bn_exp.o: ../opensslv.h bn.h bn_lcl.h
176 bn_exp2.o: ../../include/bio.h ../../include/buffer.h ../../include/e_os.h
177 bn_exp2.o: ../../include/err.h ../../include/stack.h ../cryptlib.h ../crypto.h
178 bn_exp2.o: ../opensslv.h bn.h bn_lcl.h
179 bn_gcd.o: ../../include/bio.h ../../include/buffer.h ../../include/e_os.h
180 bn_gcd.o: ../../include/err.h ../../include/stack.h ../cryptlib.h ../crypto.h
181 bn_gcd.o: ../opensslv.h bn.h bn_lcl.h
182 bn_lib.o: ../../include/bio.h ../../include/buffer.h ../../include/e_os.h
183 bn_lib.o: ../../include/err.h ../../include/stack.h ../cryptlib.h ../crypto.h
184 bn_lib.o: ../opensslv.h bn.h bn_lcl.h
185 bn_mont.o: ../../include/bio.h ../../include/buffer.h ../../include/e_os.h
186 bn_mont.o: ../../include/err.h ../../include/stack.h ../cryptlib.h ../crypto.h
187 bn_mont.o: ../opensslv.h bn.h bn_lcl.h
188 bn_mpi.o: ../../include/bio.h ../../include/buffer.h ../../include/e_os.h
189 bn_mpi.o: ../../include/err.h ../../include/stack.h ../cryptlib.h ../crypto.h
190 bn_mpi.o: ../opensslv.h bn.h bn_lcl.h
191 bn_mul.o: ../../include/bio.h ../../include/buffer.h ../../include/e_os.h
192 bn_mul.o: ../../include/err.h ../../include/stack.h ../cryptlib.h ../crypto.h
193 bn_mul.o: ../opensslv.h bn.h bn_lcl.h
194 bn_prime.o: ../../include/bio.h ../../include/buffer.h ../../include/e_os.h
195 bn_prime.o: ../../include/err.h ../../include/rand.h ../../include/stack.h
196 bn_prime.o: ../cryptlib.h ../crypto.h ../opensslv.h bn.h bn_lcl.h bn_prime.h
197 bn_print.o: ../../include/bio.h ../../include/buffer.h ../../include/e_os.h
198 bn_print.o: ../../include/err.h ../../include/stack.h ../cryptlib.h ../crypto.h
199 bn_print.o: ../opensslv.h bn.h bn_lcl.h
200 bn_rand.o: ../../include/bio.h ../../include/buffer.h ../../include/e_os.h
201 bn_rand.o: ../../include/err.h ../../include/rand.h ../../include/stack.h
202 bn_rand.o: ../cryptlib.h ../crypto.h ../opensslv.h bn.h bn_lcl.h
203 bn_recp.o: ../../include/bio.h ../../include/buffer.h ../../include/e_os.h
204 bn_recp.o: ../../include/err.h ../../include/stack.h ../cryptlib.h ../crypto.h
205 bn_recp.o: ../opensslv.h bn.h bn_lcl.h
206 bn_shift.o: ../../include/bio.h ../../include/buffer.h ../../include/e_os.h
207 bn_shift.o: ../../include/err.h ../../include/stack.h ../cryptlib.h ../crypto.h
208 bn_shift.o: ../opensslv.h bn.h bn_lcl.h
209 bn_sqr.o: ../../include/bio.h ../../include/buffer.h ../../include/e_os.h
210 bn_sqr.o: ../../include/err.h ../../include/stack.h ../cryptlib.h ../crypto.h
211 bn_sqr.o: ../opensslv.h bn.h bn_lcl.h
212 bn_word.o: ../../include/bio.h ../../include/buffer.h ../../include/e_os.h
213 bn_word.o: ../../include/err.h ../../include/stack.h ../cryptlib.h ../crypto.h
214 bn_word.o: ../opensslv.h bn.h bn_lcl.h