Makefile 5.0 KB
Newer Older
B
Bodo Möller 已提交
1 2 3 4 5 6 7 8 9 10 11 12
#
# crypto/ecdh/Makefile
#

DIR=	ecdh
TOP=	../..
CC=	cc
INCLUDES= -I.. -I$(TOP) -I../../include
CFLAG=-g -Wall
INSTALL_PREFIX=
OPENSSLDIR=     /usr/local/ssl
INSTALLTOP=/usr/local/ssl
B
Ben Laurie 已提交
13
MAKE=		make
B
Bodo Möller 已提交
14 15
MAKEDEPPROG=	makedepend
MAKEDEPEND=	$(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
B
Ben Laurie 已提交
16
MAKEFILE=	Makefile
B
Bodo Möller 已提交
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
AR=		ar r

CFLAGS= $(INCLUDES) $(CFLAG)

GENERAL=Makefile
TEST=ecdhtest.c
APPS=

LIB=$(TOP)/libcrypto.a
LIBSRC=	ech_lib.c ech_ossl.c ech_key.c ech_err.c

LIBOBJ=	ech_lib.o ech_ossl.o ech_key.o ech_err.o

SRC= $(LIBSRC)

EXHEADER= ecdh.h
33
HEADER=	ech_locl.h $(EXHEADER)
B
Bodo Möller 已提交
34 35 36 37 38 39 40 41 42 43 44 45 46 47

ALL=    $(GENERAL) $(SRC) $(HEADER)

top:
	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)

all:	lib

lib:	$(LIBOBJ)
	$(AR) $(LIB) $(LIBOBJ)
	$(RANLIB) $(LIB) || echo Never mind.
	@touch lib

files:
B
Ben Laurie 已提交
48
	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
B
Bodo Möller 已提交
49 50 51 52 53 54 55

links:
	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)

install:
56
	@headerlist="$(EXHEADER)"; for i in $$headerlist; \
B
Bodo Möller 已提交
57 58 59 60 61 62 63 64 65 66 67 68 69 70
	do  \
	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
	done;

tags:
	ctags $(SRC)

tests:

lint:
	lint -DLINT $(INCLUDES) $(SRC)>fluff

depend:
71
	$(MAKEDEPEND) -- $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
B
Bodo Möller 已提交
72 73 74 75 76 77 78 79 80 81

dclean:
	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
	mv -f Makefile.new $(MAKEFILE)

clean:
	rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff

# DO NOT DELETE THIS LINE -- make depend depends on it.

R
Richard Levitte 已提交
82 83 84 85 86 87
ech_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
ech_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
ech_err.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
ech_err.o: ../../include/openssl/ecdh.h ../../include/openssl/err.h
ech_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
ech_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
B
Bodo Möller 已提交
88 89 90
ech_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
ech_err.o: ../../include/openssl/symhacks.h ech_err.c
ech_key.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
R
Richard Levitte 已提交
91 92 93 94 95 96 97 98
ech_key.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
ech_key.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h
ech_key.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
ech_key.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
ech_key.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
ech_key.o: ../../include/openssl/err.h ../../include/openssl/evp.h
ech_key.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
ech_key.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
B
Bodo Möller 已提交
99
ech_key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
R
Richard Levitte 已提交
100 101 102 103 104
ech_key.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
ech_key.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
ech_key.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
ech_key.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h
ech_key.o: ../../include/openssl/ui.h ../../include/openssl/x509.h
105
ech_key.o: ../../include/openssl/x509_vfy.h ech_key.c ech_locl.h
B
Bodo Möller 已提交
106
ech_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
R
Richard Levitte 已提交
107 108 109 110 111 112 113 114
ech_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
ech_lib.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h
ech_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
ech_lib.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
ech_lib.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
ech_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h
ech_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
ech_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
B
Bodo Möller 已提交
115
ech_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
R
Richard Levitte 已提交
116 117 118 119 120
ech_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
ech_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
ech_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
ech_lib.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h
ech_lib.o: ../../include/openssl/ui.h ../../include/openssl/x509.h
121
ech_lib.o: ../../include/openssl/x509_vfy.h ech_lib.c ech_locl.h
D
Dr. Stephen Henson 已提交
122 123 124
ech_ossl.o: ../../e_os.h ../../include/openssl/asn1.h
ech_ossl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
ech_ossl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
B
Bodo Möller 已提交
125
ech_ossl.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
D
Dr. Stephen Henson 已提交
126 127 128
ech_ossl.o: ../../include/openssl/ecdh.h ../../include/openssl/err.h
ech_ossl.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
ech_ossl.o: ../../include/openssl/opensslconf.h
B
Bodo Möller 已提交
129 130 131
ech_ossl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
ech_ossl.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
ech_ossl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
132
ech_ossl.o: ../cryptlib.h ech_locl.h ech_ossl.c