2 # SSLeay/crypto/bn/Makefile
8 INCLUDES= -I.. -I../../include
10 INSTALLTOP=/usr/local/ssl
11 MAKE= make -f Makefile.ssl
12 MAKEDEPEND= makedepend -f Makefile.ssl
13 MAKEFILE= Makefile.ssl
17 CFLAGS= $(INCLUDES) $(CFLAG)
22 TEST=bntest.c exptest.c
25 LIB=$(TOP)/libcrypto.a
26 LIBSRC= bn_add.c bn_div.c bn_exp.c bn_lib.c bn_mod.c bn_mul.c \
27 bn_print.c bn_rand.c bn_shift.c bn_sub.c bn_word.c \
28 bn_gcd.c bn_prime.c $(ERRC).c bn_sqr.c bn_mulw.c bn_recp.c bn_mont.c
30 LIBOBJ= bn_add.o bn_div.o bn_exp.o bn_lib.o bn_mod.o bn_mul.o \
31 bn_print.o bn_rand.o bn_shift.o bn_sub.o bn_word.o \
32 bn_gcd.o bn_prime.o $(ERRC).o bn_sqr.o $(BN_MULW) bn_recp.o bn_mont.o
38 HEADER= bn_lcl.h bn_prime.h $(EXHEADER)
40 ALL= $(GENERAL) $(SRC) $(HEADER)
43 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
48 cc -pg -I.. -I../../include bn_knuth.c -o knuth $(LIB) #../../../libefence.a
50 knuth.fast: bn_knuth.c
51 cc -pg -fast -I.. -I../../include bn_knuth.c -o knuth $(LIB) #../../../libefence.a
55 $(AR) $(LIB) $(LIBOBJ)
56 sh $(TOP)/util/ranlib.sh $(LIB)
60 perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
64 $(TOP)/util/point.sh Makefile.ssl Makefile ;
65 $(TOP)/util/mklink.sh ../../include $(EXHEADER)
66 $(TOP)/util/mklink.sh ../../test $(TEST)
67 $(TOP)/util/mklink.sh ../../apps $(APPS)
70 @for i in $(EXHEADER) ; \
72 (cp $$i $(INSTALLTOP)/include/$$i; \
73 chmod 644 $(INSTALLTOP)/include/$$i ); \
78 gcc -I../../include -g2 -ggdb -o exptest exptest.c ../../libcrypto.a
82 gcc -I.. -g div.c ../../libcrypto.a
90 lint -DLINT $(INCLUDES) $(SRC)>fluff
93 $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
96 perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
97 mv -f Makefile.new $(MAKEFILE)
100 /bin/rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff bn_mulw.s
103 perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).org # special case .org
104 perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h
105 perl ../err/err_genc.pl $(ERR).h $(ERRC).c
107 # DO NOT DELETE THIS LINE -- make depend depends on it.