]>
Commit | Line | Data |
---|---|---|
65e81670 BM |
1 | # |
2 | # crypto/ec/Makefile | |
3 | # | |
4 | ||
5 | DIR= ec | |
6 | TOP= ../.. | |
7 | CC= cc | |
8 | INCLUDES= -I.. -I$(TOP) -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 | MAKEDEPPROG= makedepend | |
15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | |
16 | MAKEFILE= Makefile.ssl | |
17 | AR= ar r | |
18 | ||
19 | CFLAGS= $(INCLUDES) $(CFLAG) | |
20 | ||
21 | GENERAL=Makefile | |
22 | TEST=ectest.c | |
23 | APPS= | |
24 | ||
25 | LIB=$(TOP)/libcrypto.a | |
38e3c581 | 26 | LIBSRC= ec_lib.c ecp_smpl.c ecp_mont.c ecp_recp.c ecp_nist.c ec_cvt.c ec_mult.c |
65e81670 | 27 | |
38e3c581 | 28 | LIBOBJ= ec_lib.o ecp_smpl.o ecp_mont.o ecp_recp.o ecp_nist.o ec_cvt.o ec_mult.o |
65e81670 BM |
29 | |
30 | SRC= $(LIBSRC) | |
31 | ||
32 | EXHEADER= ec.h | |
33 | HEADER= ec_lcl.h $(EXHEADER) | |
34 | ||
35 | ALL= $(GENERAL) $(SRC) $(HEADER) | |
36 | ||
37 | top: | |
38 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | |
39 | ||
40 | all: lib | |
41 | ||
42 | lib: $(LIBOBJ) | |
43 | $(AR) $(LIB) $(LIBOBJ) | |
44 | @echo You may get an error following this line. Please ignore. | |
45 | - $(RANLIB) $(LIB) | |
46 | @touch lib | |
47 | ||
48 | files: | |
49 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | |
50 | ||
51 | links: | |
52 | @$(TOP)/util/point.sh Makefile.ssl Makefile | |
53 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | |
54 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | |
55 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | |
56 | ||
57 | install: | |
58 | @for i in $(EXHEADER) ; \ | |
59 | do \ | |
60 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | |
61 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | |
62 | done; | |
63 | ||
64 | tags: | |
65 | ctags $(SRC) | |
66 | ||
67 | tests: | |
68 | ||
69 | lint: | |
70 | lint -DLINT $(INCLUDES) $(SRC)>fluff | |
71 | ||
72 | depend: | |
73 | $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) | |
74 | ||
75 | dclean: | |
76 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | |
77 | mv -f Makefile.new $(MAKEFILE) | |
78 | ||
79 | clean: | |
80 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | |
81 | ||
82 | # DO NOT DELETE THIS LINE -- make depend depends on it. | |
83 | ||
84 | ec_cvt.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h | |
85 | ec_cvt.o: ../../include/openssl/ec.h ../../include/openssl/opensslconf.h | |
86 | ec_cvt.o: ec_cvt.c ec_lcl.h | |
87 | ec_lib.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h | |
88 | ec_lib.o: ../../include/openssl/ec.h ../../include/openssl/opensslconf.h | |
89 | ec_lib.o: ec_lcl.h ec_lib.c | |
90 | ec_mult.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h | |
91 | ec_mult.o: ../../include/openssl/ec.h ../../include/openssl/opensslconf.h | |
92 | ec_mult.o: ec_lcl.h ec_mult.c | |
93 | ecp_mont.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h | |
94 | ecp_mont.o: ../../include/openssl/ec.h ../../include/openssl/opensslconf.h | |
95 | ecp_mont.o: ec_lcl.h ecp_mont.c | |
38e3c581 BM |
96 | ecp_nist.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h |
97 | ecp_nist.o: ../../include/openssl/ec.h ../../include/openssl/opensslconf.h | |
98 | ecp_nist.o: ec_lcl.h ecp_nist.c | |
65e81670 BM |
99 | ecp_recp.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h |
100 | ecp_recp.o: ../../include/openssl/ec.h ../../include/openssl/opensslconf.h | |
101 | ecp_recp.o: ec_lcl.h ecp_recp.c | |
102 | ecp_smpl.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h | |
103 | ecp_smpl.o: ../../include/openssl/ec.h ../../include/openssl/opensslconf.h | |
104 | ecp_smpl.o: ec_lcl.h ecp_smpl.c |