f8a474631cd40d6d412077ccbcd295f2e5b5656c
[openssl.git] / crypto / ecdh / Makefile.ssl
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 -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=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= $(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.ssl >> $(TOP)/MINFO
49
50 links:
51         @$(TOP)/util/point.sh Makefile.ssl Makefile
52         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
53         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
54         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
55
56 install:
57         @for i in $(EXHEADER) ; \
58         do  \
59         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
60         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
61         done;
62
63 tags:
64         ctags $(SRC)
65
66 tests:
67
68 lint:
69         lint -DLINT $(INCLUDES) $(SRC)>fluff
70
71 depend:
72         $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
73
74 dclean:
75         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
76         mv -f Makefile.new $(MAKEFILE)
77
78 clean:
79         rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
80
81 # DO NOT DELETE THIS LINE -- make depend depends on it.
82
83 ech_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
84 ech_err.o: ../../include/openssl/e_os2.h ../../include/openssl/ecdh.h
85 ech_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
86 ech_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
87 ech_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
88 ech_err.o: ../../include/openssl/symhacks.h ech_err.c
89 ech_key.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
90 ech_key.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
91 ech_key.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
92 ech_key.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
93 ech_key.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
94 ech_key.o: ../../include/openssl/engine.h ../../include/openssl/err.h
95 ech_key.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
96 ech_key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
97 ech_key.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h
98 ech_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
99 ech_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h ecdh.h
100 ech_key.o: ech_key.c
101 ech_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
102 ech_lib.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
103 ech_lib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
104 ech_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
105 ech_lib.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
106 ech_lib.o: ../../include/openssl/engine.h ../../include/openssl/err.h
107 ech_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
108 ech_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
109 ech_lib.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h
110 ech_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
111 ech_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h ecdh.h
112 ech_lib.o: ech_lib.c
113 ech_ossl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
114 ech_ossl.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
115 ech_ossl.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
116 ech_ossl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
117 ech_ossl.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
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
121 ech_ossl.o: ecdh.h ech_ossl.c