Makefile.ssl 5.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#
# SSLeay/crypto/rsa/Makefile
#

DIR=	rsa
TOP=	../..
CC=	cc
INCLUDES= -I.. -I../../include
CFLAG=-g
INSTALLTOP=/usr/local/ssl
MAKE=		make -f Makefile.ssl
12
MAKEDEPEND=	$(TOP)/util/domd $(TOP)
13 14 15 16 17 18 19 20
MAKEFILE=	Makefile.ssl
AR=		ar r

CFLAGS= $(INCLUDES) $(CFLAG)

ERR=rsa
ERRC=rsa_err
GENERAL=Makefile
B
Ben Laurie 已提交
21
TEST=rsa_oaep_test.c
22 23 24
APPS=

LIB=$(TOP)/libcrypto.a
25
LIBSRC= rsa_eay.c rsa_gen.c rsa_lib.c rsa_sign.c rsa_saos.c $(ERRC).c \
B
Ben Laurie 已提交
26
	rsa_pk1.c rsa_ssl.c rsa_none.c rsa_oaep.c
27
LIBOBJ= rsa_eay.o rsa_gen.o rsa_lib.o rsa_sign.o rsa_saos.o $(ERRC).o \
B
Ben Laurie 已提交
28
	rsa_pk1.o rsa_ssl.o rsa_none.o rsa_oaep.o
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43

SRC= $(LIBSRC)

EXHEADER= rsa.h
HEADER=	$(EXHEADER)

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

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

all:	lib

lib:	$(LIBOBJ)
	$(AR) $(LIB) $(LIBOBJ)
44
	$(RANLIB) $(LIB)
45 46 47
	@touch lib

files:
48
	$(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
49 50

links:
51 52 53 54
	@$(TOP)/util/point.sh Makefile.ssl Makefile
	@$(TOP)/util/mklink.sh ../../include $(EXHEADER)
	@$(TOP)/util/mklink.sh ../../test $(TEST)
	@$(TOP)/util/mklink.sh ../../apps $(APPS)
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74

install:
	@for i in $(EXHEADER) ; \
	do  \
	(cp $$i $(INSTALLTOP)/include/$$i; \
	chmod 644 $(INSTALLTOP)/include/$$i ); \
	done;

tags:
	ctags $(SRC)

tests:

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

depend:
	$(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)

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

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

81 82
errors: $(ERRC).c

83
$(ERRC).c: $(ERR).err $(ERR).h
84 85
	$(PERL) $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h
	$(PERL) ../err/err_genc.pl -s $(ERR).h $(ERRC).c
86 87

# DO NOT DELETE THIS LINE -- make depend depends on it.
B
Ben Laurie 已提交
88 89 90

rsa_eay.o: ../../include/bio.h ../../include/bn.h ../../include/buffer.h
rsa_eay.o: ../../include/e_os.h ../../include/err.h ../../include/rand.h
B
Ben Laurie 已提交
91 92
rsa_eay.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslconf.h
rsa_eay.o: ../opensslv.h rsa.h
B
Ben Laurie 已提交
93
rsa_err.o: ../../include/bn.h ../../include/err.h ../../include/stack.h
B
Ben Laurie 已提交
94
rsa_err.o: ../crypto.h ../opensslconf.h ../opensslv.h rsa.h
B
Ben Laurie 已提交
95 96
rsa_gen.o: ../../include/bio.h ../../include/bn.h ../../include/buffer.h
rsa_gen.o: ../../include/e_os.h ../../include/err.h ../../include/stack.h
B
Ben Laurie 已提交
97
rsa_gen.o: ../cryptlib.h ../crypto.h ../opensslconf.h ../opensslv.h rsa.h
B
Ben Laurie 已提交
98 99
rsa_lib.o: ../../include/bio.h ../../include/bn.h ../../include/buffer.h
rsa_lib.o: ../../include/e_os.h ../../include/err.h ../../include/lhash.h
B
Ben Laurie 已提交
100 101
rsa_lib.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslconf.h
rsa_lib.o: ../opensslv.h rsa.h
B
Ben Laurie 已提交
102 103
rsa_none.o: ../../include/bio.h ../../include/bn.h ../../include/buffer.h
rsa_none.o: ../../include/e_os.h ../../include/err.h ../../include/rand.h
B
Ben Laurie 已提交
104 105
rsa_none.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslconf.h
rsa_none.o: ../opensslv.h rsa.h
B
Ben Laurie 已提交
106 107 108
rsa_oaep.o: ../../include/bio.h ../../include/bn.h ../../include/buffer.h
rsa_oaep.o: ../../include/e_os.h ../../include/err.h ../../include/rand.h
rsa_oaep.o: ../../include/sha.h ../../include/stack.h ../cryptlib.h ../crypto.h
B
Ben Laurie 已提交
109
rsa_oaep.o: ../opensslconf.h ../opensslv.h rsa.h
B
Ben Laurie 已提交
110 111
rsa_pk1.o: ../../include/bio.h ../../include/bn.h ../../include/buffer.h
rsa_pk1.o: ../../include/e_os.h ../../include/err.h ../../include/rand.h
B
Ben Laurie 已提交
112 113
rsa_pk1.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslconf.h
rsa_pk1.o: ../opensslv.h rsa.h
B
Ben Laurie 已提交
114 115 116 117 118 119 120
rsa_saos.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
rsa_saos.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h
rsa_saos.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h
rsa_saos.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
rsa_saos.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h
rsa_saos.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
rsa_saos.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
B
Ben Laurie 已提交
121 122
rsa_saos.o: ../../include/ripemd.h ../../include/safestack.h
rsa_saos.o: ../../include/sha.h ../../include/stack.h ../../include/x509.h
B
Ben Laurie 已提交
123 124
rsa_saos.o: ../../include/x509_vfy.h ../cryptlib.h ../crypto.h ../opensslconf.h
rsa_saos.o: ../opensslv.h rsa.h
B
Ben Laurie 已提交
125 126 127 128 129 130 131
rsa_sign.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
rsa_sign.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h
rsa_sign.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h
rsa_sign.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
rsa_sign.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h
rsa_sign.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
rsa_sign.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
B
Ben Laurie 已提交
132 133
rsa_sign.o: ../../include/ripemd.h ../../include/safestack.h
rsa_sign.o: ../../include/sha.h ../../include/stack.h ../../include/x509.h
B
Ben Laurie 已提交
134 135
rsa_sign.o: ../../include/x509_vfy.h ../cryptlib.h ../crypto.h ../opensslconf.h
rsa_sign.o: ../opensslv.h rsa.h
B
Ben Laurie 已提交
136 137
rsa_ssl.o: ../../include/bio.h ../../include/bn.h ../../include/buffer.h
rsa_ssl.o: ../../include/e_os.h ../../include/err.h ../../include/rand.h
B
Ben Laurie 已提交
138 139
rsa_ssl.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslconf.h
rsa_ssl.o: ../opensslv.h rsa.h