29838c8fd34af837690e393b741a4f5b795f3aa3
[openssl.git] / crypto / rsa / Makefile.ssl
1 #
2 # SSLeay/crypto/rsa/Makefile
3 #
4
5 DIR=    rsa
6 TOP=    ../..
7 CC=     cc
8 INCLUDES= -I.. -I../../include
9 CFLAG=-g
10 INSTALLTOP=/usr/local/ssl
11 MAKE=           make -f Makefile.ssl
12 MAKEDEPEND=     $(TOP)/util/domd $(TOP)
13 MAKEFILE=       Makefile.ssl
14 AR=             ar r
15
16 CFLAGS= $(INCLUDES) $(CFLAG)
17
18 ERR=rsa
19 ERRC=rsa_err
20 GENERAL=Makefile
21 TEST=rsa_oaep_test.c
22 APPS=
23
24 LIB=$(TOP)/libcrypto.a
25 LIBSRC= rsa_eay.c rsa_gen.c rsa_lib.c rsa_sign.c rsa_saos.c $(ERRC).c \
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 \
28         rsa_pk1.o rsa_ssl.o rsa_none.o rsa_oaep.o
29
30 SRC= $(LIBSRC)
31
32 EXHEADER= rsa.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         sh $(TOP)/util/ranlib.sh $(LIB)
45         @touch lib
46
47 files:
48         perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
49
50 links:
51         /bin/rm -f Makefile
52         $(TOP)/util/point.sh Makefile.ssl Makefile ;
53         $(TOP)/util/mklink.sh ../../include $(EXHEADER)
54         $(TOP)/util/mklink.sh ../../test $(TEST)
55         $(TOP)/util/mklink.sh ../../apps $(APPS)
56
57 install:
58         @for i in $(EXHEADER) ; \
59         do  \
60         (cp $$i $(INSTALLTOP)/include/$$i; \
61         chmod 644 $(INSTALLTOP)/include/$$i ); \
62         done;
63
64 tags:
65         ctags $(SRC)
66
67 tests:
68
69 lint:
70         lint -DLINT $(INCLUDES) $(SRC)>fluff
71
72 depend:
73         $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
74
75 dclean:
76         perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
77         mv -f Makefile.new $(MAKEFILE)
78
79 clean:
80         /bin/rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
81
82 errors: $(ERRC).c
83
84 $(ERRC).c: $(ERR).err $(ERR).h
85         perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h
86         perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c
87
88 # DO NOT DELETE THIS LINE -- make depend depends on it.
89
90 rsa_eay.o: ../../include/bio.h ../../include/bn.h ../../include/buffer.h
91 rsa_eay.o: ../../include/e_os.h ../../include/err.h ../../include/rand.h
92 rsa_eay.o: ../../include/stack.h ../cryptlib.h ../crypto.h rsa.h
93 rsa_err.o: ../../include/bn.h ../../include/err.h ../../include/stack.h
94 rsa_err.o: ../crypto.h rsa.h
95 rsa_gen.o: ../../include/bio.h ../../include/bn.h ../../include/buffer.h
96 rsa_gen.o: ../../include/e_os.h ../../include/err.h ../../include/stack.h
97 rsa_gen.o: ../cryptlib.h ../crypto.h rsa.h
98 rsa_lib.o: ../../include/bio.h ../../include/bn.h ../../include/buffer.h
99 rsa_lib.o: ../../include/e_os.h ../../include/err.h ../../include/lhash.h
100 rsa_lib.o: ../../include/stack.h ../cryptlib.h ../crypto.h rsa.h
101 rsa_none.o: ../../include/bio.h ../../include/bn.h ../../include/buffer.h
102 rsa_none.o: ../../include/e_os.h ../../include/err.h ../../include/rand.h
103 rsa_none.o: ../../include/stack.h ../cryptlib.h ../crypto.h rsa.h
104 rsa_pk1.o: ../../include/bio.h ../../include/bn.h ../../include/buffer.h
105 rsa_pk1.o: ../../include/e_os.h ../../include/err.h ../../include/rand.h
106 rsa_pk1.o: ../../include/stack.h ../cryptlib.h ../crypto.h rsa.h
107 rsa_saos.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
108 rsa_saos.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h
109 rsa_saos.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h
110 rsa_saos.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
111 rsa_saos.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h
112 rsa_saos.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
113 rsa_saos.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
114 rsa_saos.o: ../../include/ripemd.h ../../include/sha.h ../../include/stack.h
115 rsa_saos.o: ../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h
116 rsa_saos.o: ../crypto.h rsa.h
117 rsa_sign.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
118 rsa_sign.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h
119 rsa_sign.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h
120 rsa_sign.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
121 rsa_sign.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h
122 rsa_sign.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
123 rsa_sign.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
124 rsa_sign.o: ../../include/ripemd.h ../../include/sha.h ../../include/stack.h
125 rsa_sign.o: ../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h
126 rsa_sign.o: ../crypto.h rsa.h
127 rsa_ssl.o: ../../include/bio.h ../../include/bn.h ../../include/buffer.h
128 rsa_ssl.o: ../../include/e_os.h ../../include/err.h ../../include/rand.h
129 rsa_ssl.o: ../../include/stack.h ../cryptlib.h ../crypto.h rsa.h