]> git.ipfire.org Git - thirdparty/openssl.git/blob - crypto/Makefile.ssl
New Configure option no-<cipher> (rsa, idea, rc5, ...).
[thirdparty/openssl.git] / crypto / Makefile.ssl
1 #
2 # SSLeay/crypto/Makefile
3 #
4
5 DIR= crypto
6 TOP= ..
7 CC= cc
8 INCLUDE= -I. -I../include
9 INCLUDES= -I.. -I../../include
10 CFLAG= -g
11 INSTALLTOP= /usr/local/ssl
12 MAKE= make -f Makefile.ssl
13 MAKEDEPEND= $(TOP)/util/domd $(TOP)
14 MAKEFILE= Makefile.ssl
15 RM= rm -f
16 AR= ar r
17
18 PEX_LIBS=
19 EX_LIBS=
20
21 CFLAGS= $(INCLUDE) $(CFLAG) -DCFLAGS="\"$(CC) $(CFLAG)\"" -DPLATFORM="\"$(PLATFORM)\""
22
23
24 LIBS=
25
26 SDIRS= md2 md5 sha mdc2 hmac ripemd \
27 des rc2 rc4 rc5 idea bf cast \
28 bn rsa dsa dh \
29 buffer bio stack lhash rand err objects \
30 evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp
31
32 GENERAL=Makefile README
33
34 LIB= $(TOP)/libcrypto.a
35 LIBSRC= cryptlib.c mem.c cversion.c ex_data.c tmdiff.c cpt_err.c
36 LIBOBJ= cryptlib.o mem.o cversion.o ex_data.o tmdiff.o cpt_err.o
37
38 SRC= $(LIBSRC)
39
40 EXHEADER= crypto.h tmdiff.h opensslv.h opensslconf.h
41 HEADER= cryptlib.h date.h $(EXHEADER)
42
43 ALL= $(GENERAL) $(SRC) $(HEADER)
44
45 top:
46 @(cd ..; $(MAKE) DIRS=$(DIR) all)
47
48 all: date.h lib subdirs
49
50 date.h: ../Makefile.ssl
51 echo "#define DATE \"`date`\"" >date.h
52
53 subdirs:
54 @for i in $(SDIRS) ;\
55 do \
56 (cd $$i && echo "making all in crypto/$$i..." && \
57 $(MAKE) CC='$(CC)' INCLUDES='${INCLUDES}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' all ) || exit 1; \
58 done;
59
60 files:
61 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
62 @for i in $(SDIRS) ;\
63 do \
64 (cd $$i; echo "making 'files' in crypto/$$i..."; \
65 $(MAKE) files ); \
66 done;
67
68 links:
69 @$(TOP)/util/point.sh Makefile.ssl Makefile
70 @$(TOP)/util/mklink.sh ../include/openssl $(EXHEADER)
71 @$(TOP)/util/mklink.sh ../test $(TEST)
72 @$(TOP)/util/mklink.sh ../apps $(APPS)
73 @$(TOP)/util/point.sh Makefile.ssl Makefile
74 @for i in $(SDIRS); do \
75 (cd $$i; echo "making links in crypto/$$i..."; \
76 $(MAKE) CC='$(CC)' INCLUDES='${INCLUDES}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' AR='${AR}' links ); \
77 done;
78
79 lib: $(LIBOBJ)
80 $(AR) $(LIB) $(LIBOBJ)
81 $(RANLIB) $(LIB)
82 @touch lib
83
84 libs:
85 @for i in $(SDIRS) ;\
86 do \
87 (cd $$i; echo "making libs in crypto/$$i..."; \
88 $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' AR='${AR}' lib ); \
89 done;
90
91 tests:
92 @for i in $(SDIRS) ;\
93 do \
94 (cd $$i; echo "making tests in crypto/$$i..."; \
95 $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' AR='${AR}' tests ); \
96 done;
97
98 install:
99 @for i in $(EXHEADER) ;\
100 do \
101 (cp $$i $(INSTALLTOP)/include/openssl/$$i; \
102 chmod 644 $(INSTALLTOP)/include/openssl/$$i ); \
103 done;
104 @for i in $(SDIRS) ;\
105 do \
106 (cd $$i; echo "making install in crypto/$$i..."; \
107 $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' install ); \
108 done;
109
110 lint:
111 @for i in $(SDIRS) ;\
112 do \
113 (cd $$i; echo "making lint in crypto/$$i..."; \
114 $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' lint ); \
115 done;
116
117 depend:
118 $(MAKEDEPEND) $(INCLUDE) $(DEPFLAG) $(PROGS) $(LIBSRC)
119 @for i in $(SDIRS) ;\
120 do \
121 (cd $$i; echo "making depend in crypto/$$i..."; \
122 $(MAKE) MAKEFILE='${MAKEFILE}' INCLUDES='${INCLUDES}' DEPFLAG='${DEPFLAG}' depend ); \
123 done;
124
125 clean:
126 rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
127 @for i in $(SDIRS) ;\
128 do \
129 (cd $$i; echo "making clean in crypto/$$i..."; \
130 $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' clean ); \
131 done;
132
133 dclean:
134 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
135 mv -f Makefile.new $(MAKEFILE)
136 @for i in $(SDIRS) ;\
137 do \
138 (cd $$i; echo "making dclean in crypto/$$i..."; \
139 $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' dclean ); \
140 done;
141
142 # DO NOT DELETE THIS LINE -- make depend depends on it.
143
144 cpt_err.o: ../include/openssl/crypto.h ../include/openssl/err.h
145 cpt_err.o: ../include/openssl/opensslv.h ../include/openssl/stack.h
146 cryptlib.o: ../include/openssl/bio.h ../include/openssl/buffer.h
147 cryptlib.o: ../include/openssl/crypto.h ../include/openssl/e_os.h
148 cryptlib.o: ../include/openssl/err.h ../include/openssl/opensslconf.h
149 cryptlib.o: ../include/openssl/opensslv.h ../include/openssl/stack.h cryptlib.h
150 cryptlib.o: date.h
151 cversion.o: ../include/openssl/bio.h ../include/openssl/buffer.h
152 cversion.o: ../include/openssl/crypto.h ../include/openssl/e_os.h
153 cversion.o: ../include/openssl/err.h ../include/openssl/opensslconf.h
154 cversion.o: ../include/openssl/opensslv.h ../include/openssl/stack.h cryptlib.h
155 cversion.o: date.h
156 ex_data.o: ../include/openssl/bio.h ../include/openssl/buffer.h
157 ex_data.o: ../include/openssl/crypto.h ../include/openssl/e_os.h
158 ex_data.o: ../include/openssl/err.h ../include/openssl/lhash.h
159 ex_data.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
160 ex_data.o: ../include/openssl/stack.h cryptlib.h
161 mem.o: ../include/openssl/bio.h ../include/openssl/buffer.h
162 mem.o: ../include/openssl/crypto.h ../include/openssl/e_os.h
163 mem.o: ../include/openssl/err.h ../include/openssl/lhash.h
164 mem.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
165 mem.o: ../include/openssl/stack.h cryptlib.h
166 tmdiff.o: ../include/openssl/bio.h ../include/openssl/buffer.h
167 tmdiff.o: ../include/openssl/crypto.h ../include/openssl/e_os.h
168 tmdiff.o: ../include/openssl/err.h ../include/openssl/opensslconf.h
169 tmdiff.o: ../include/openssl/opensslv.h ../include/openssl/stack.h
170 tmdiff.o: ../include/openssl/tmdiff.h cryptlib.h