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