]>
Commit | Line | Data |
---|---|---|
e172d60d BM |
1 | # |
2 | # crypto/ecdh/Makefile | |
3 | # | |
4 | ||
5 | DIR= ecdh | |
6 | TOP= ../.. | |
7 | CC= cc | |
8 | INCLUDES= -I.. -I$(TOP) -I../../include | |
9 | CFLAG=-g -Wall | |
42ba5d23 | 10 | MAKEFILE= Makefile |
e172d60d BM |
11 | AR= ar r |
12 | ||
13 | CFLAGS= $(INCLUDES) $(CFLAG) | |
14 | ||
15 | GENERAL=Makefile | |
16 | TEST=ecdhtest.c | |
17 | APPS= | |
18 | ||
19 | LIB=$(TOP)/libcrypto.a | |
20 | LIBSRC= ech_lib.c ech_ossl.c ech_key.c ech_err.c | |
21 | ||
22 | LIBOBJ= ech_lib.o ech_ossl.o ech_key.o ech_err.o | |
23 | ||
24 | SRC= $(LIBSRC) | |
25 | ||
26 | EXHEADER= ecdh.h | |
6a50d0a4 | 27 | HEADER= ech_locl.h $(EXHEADER) |
e172d60d BM |
28 | |
29 | ALL= $(GENERAL) $(SRC) $(HEADER) | |
30 | ||
31 | top: | |
32 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | |
33 | ||
34 | all: lib | |
35 | ||
36 | lib: $(LIBOBJ) | |
37 | $(AR) $(LIB) $(LIBOBJ) | |
38 | $(RANLIB) $(LIB) || echo Never mind. | |
39 | @touch lib | |
40 | ||
41 | files: | |
42ba5d23 | 42 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO |
e172d60d BM |
43 | |
44 | links: | |
e172d60d BM |
45 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
46 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | |
47 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | |
48 | ||
49 | install: | |
81a86fcf | 50 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... |
a2ac429d | 51 | @headerlist="$(EXHEADER)"; for i in $$headerlist; \ |
e172d60d BM |
52 | do \ |
53 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | |
54 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | |
55 | done; | |
56 | ||
57 | tags: | |
58 | ctags $(SRC) | |
59 | ||
60 | tests: | |
61 | ||
62 | lint: | |
63 | lint -DLINT $(INCLUDES) $(SRC)>fluff | |
64 | ||
65 | depend: | |
ce92b6eb | 66 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... |
7304956e | 67 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) |
e172d60d BM |
68 | |
69 | dclean: | |
70 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | |
71 | mv -f Makefile.new $(MAKEFILE) | |
72 | ||
73 | clean: | |
74 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | |
75 | ||
76 | # DO NOT DELETE THIS LINE -- make depend depends on it. | |
77 | ||
af67804b | 78 | ech_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
ce92b6eb AP |
79 | ech_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h |
80 | ech_err.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h | |
81 | ech_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | |
82 | ech_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | |
83 | ech_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | |
84 | ech_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | |
85 | ech_err.o: ech_err.c | |
e172d60d | 86 | ech_key.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
5ce278a7 BL |
87 | ech_key.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
88 | ech_key.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | |
89 | ech_key.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | |
90 | ech_key.o: ../../include/openssl/engine.h ../../include/openssl/evp.h | |
91 | ech_key.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | |
92 | ech_key.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | |
e172d60d | 93 | ech_key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
5ce278a7 BL |
94 | ech_key.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h |
95 | ech_key.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | |
96 | ech_key.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h | |
97 | ech_key.o: ../../include/openssl/x509_vfy.h ech_key.c ech_locl.h | |
e172d60d | 98 | ech_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
5ce278a7 BL |
99 | ech_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
100 | ech_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | |
101 | ech_lib.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | |
ce92b6eb | 102 | ech_lib.o: ../../include/openssl/engine.h ../../include/openssl/err.h |
5ce278a7 BL |
103 | ech_lib.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h |
104 | ech_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | |
105 | ech_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | |
106 | ech_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | |
107 | ech_lib.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | |
108 | ech_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | |
109 | ech_lib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | |
110 | ech_lib.o: ech_lib.c ech_locl.h | |
b2466862 DSH |
111 | ech_ossl.o: ../../e_os.h ../../include/openssl/asn1.h |
112 | ech_ossl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | |
113 | ech_ossl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | |
e172d60d | 114 | ech_ossl.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h |
ce06265a DSH |
115 | ech_ossl.o: ../../include/openssl/ecdh.h ../../include/openssl/err.h |
116 | ech_ossl.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | |
117 | ech_ossl.o: ../../include/openssl/opensslconf.h | |
e172d60d BM |
118 | ech_ossl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
119 | ech_ossl.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | |
120 | ech_ossl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | |
fbeaa3c4 | 121 | ech_ossl.o: ../cryptlib.h ech_locl.h ech_ossl.c |