5bf59040153ad35bd2d72f4a46c125ad346148f3
[openssl.git] / crypto / ecdh / Makefile
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
10 INSTALL_PREFIX=
11 OPENSSLDIR=     /usr/local/ssl
12 INSTALLTOP=/usr/local/ssl
13 MAKE=           make
14 MAKEDEPPROG=    makedepend
15 MAKEDEPEND=     $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
16 MAKEFILE=       Makefile
17 AR=             ar r
18
19 CFLAGS= $(INCLUDES) $(CFLAG)
20
21 GENERAL=Makefile
22 TEST=ecdhtest.c
23 APPS=
24
25 LIB=$(TOP)/libcrypto.a
26 LIBSRC= ech_lib.c ech_ossl.c ech_key.c ech_err.c
27
28 LIBOBJ= ech_lib.o ech_ossl.o ech_key.o ech_err.o
29
30 SRC= $(LIBSRC)
31
32 EXHEADER= ecdh.h
33 HEADER= ech_locl.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         $(RANLIB) $(LIB) || echo Never mind.
45         @touch lib
46
47 files:
48         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
49
50 links:
51         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
52         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
53         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
54
55 install:
56         @headerlist="$(EXHEADER)"; for i in $$headerlist; \
57         do  \
58         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
59         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
60         done;
61
62 tags:
63         ctags $(SRC)
64
65 tests:
66
67 lint:
68         lint -DLINT $(INCLUDES) $(SRC)>fluff
69
70 depend:
71         $(MAKEDEPEND) -- $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
72
73 dclean:
74         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
75         mv -f Makefile.new $(MAKEFILE)
76
77 clean:
78         rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
79
80 # DO NOT DELETE THIS LINE -- make depend depends on it.
81
82 ech_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
83 ech_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
84 ech_err.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
85 ech_err.o: ../../include/openssl/ecdh.h ../../include/openssl/err.h
86 ech_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
87 ech_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
88 ech_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
89 ech_err.o: ../../include/openssl/symhacks.h ech_err.c
90 ech_key.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
91 ech_key.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
92 ech_key.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h
93 ech_key.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
94 ech_key.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
95 ech_key.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
96 ech_key.o: ../../include/openssl/err.h ../../include/openssl/evp.h
97 ech_key.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
98 ech_key.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
99 ech_key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
100 ech_key.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
101 ech_key.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
102 ech_key.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
103 ech_key.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h
104 ech_key.o: ../../include/openssl/ui.h ../../include/openssl/x509.h
105 ech_key.o: ../../include/openssl/x509_vfy.h ecdh.h ech_key.c
106 ech_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
107 ech_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
108 ech_lib.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h
109 ech_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
110 ech_lib.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
111 ech_lib.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
112 ech_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h
113 ech_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
114 ech_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
115 ech_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
116 ech_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
117 ech_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
118 ech_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
119 ech_lib.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h
120 ech_lib.o: ../../include/openssl/ui.h ../../include/openssl/x509.h
121 ech_lib.o: ../../include/openssl/x509_vfy.h ecdh.h ech_lib.c
122 ech_ossl.o: ../../e_os.h ../../include/openssl/asn1.h
123 ech_ossl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
124 ech_ossl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
125 ech_ossl.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
126 ech_ossl.o: ../../include/openssl/ecdh.h ../../include/openssl/err.h
127 ech_ossl.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
128 ech_ossl.o: ../../include/openssl/opensslconf.h
129 ech_ossl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
130 ech_ossl.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
131 ech_ossl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
132 ech_ossl.o: ../cryptlib.h ech_ossl.c