]>
Commit | Line | Data |
---|---|---|
d02b48c6 RE |
1 | # |
2 | # SSLeay/crypto/des/Makefile | |
3 | # | |
4 | ||
5 | DIR= des | |
6 | TOP= ../.. | |
7 | CC= cc | |
8 | CPP= $(CC) -E | |
9 | INCLUDES= | |
10 | CFLAG=-g | |
e5f3045f BM |
11 | INSTALL_PREFIX= |
12 | OPENSSLDIR= /usr/local/ssl | |
d02b48c6 RE |
13 | INSTALLTOP=/usr/local/ssl |
14 | MAKE= make -f Makefile.ssl | |
8039257d | 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) |
d02b48c6 RE |
16 | MAKEFILE= Makefile.ssl |
17 | AR= ar r | |
18 | DES_ENC= des_enc.o fcrypt_b.o | |
19 | # or use | |
58964a49 | 20 | #DES_ENC= dx86-elf.o yx86-elf.o |
d02b48c6 RE |
21 | |
22 | CFLAGS= $(INCLUDES) $(CFLAG) | |
23 | ||
169cc7a1 | 24 | GENERAL=Makefile |
d02b48c6 RE |
25 | TEST=destest.c |
26 | APPS= | |
27 | ||
28 | LIB=$(TOP)/libcrypto.a | |
58964a49 RE |
29 | LIBSRC= cbc_cksm.c cbc_enc.c cfb64enc.c cfb_enc.c \ |
30 | ecb3_enc.c ecb_enc.c enc_read.c enc_writ.c \ | |
31 | fcrypt.c ofb64enc.c ofb_enc.c pcbc_enc.c \ | |
d02b48c6 RE |
32 | qud_cksm.c rand_key.c read_pwd.c rpc_enc.c set_key.c \ |
33 | des_enc.c fcrypt_b.c read2pwd.c \ | |
34 | fcrypt.c xcbc_enc.c \ | |
4a71b90d | 35 | str2key.c cfb64ede.c ofb64ede.c supp.c ede_cbcm_enc.c |
d02b48c6 | 36 | |
58964a49 | 37 | LIBOBJ= set_key.o ecb_enc.o cbc_enc.o \ |
d02b48c6 | 38 | ecb3_enc.o cfb64enc.o cfb64ede.o cfb_enc.o ofb64ede.o \ |
58964a49 | 39 | enc_read.o enc_writ.o ofb64enc.o \ |
d02b48c6 RE |
40 | ofb_enc.o str2key.o pcbc_enc.o qud_cksm.o rand_key.o \ |
41 | ${DES_ENC} read2pwd.o \ | |
4a71b90d BL |
42 | fcrypt.o xcbc_enc.o read_pwd.o rpc_enc.o cbc_cksm.o supp.o \ |
43 | ede_cbcm_enc.o | |
d02b48c6 RE |
44 | |
45 | SRC= $(LIBSRC) | |
46 | ||
47 | EXHEADER= des.h | |
48 | HEADER= des_locl.h rpc_des.h podd.h sk.h spr.h des_ver.h $(EXHEADER) | |
49 | ||
50 | ALL= $(GENERAL) $(SRC) $(HEADER) | |
51 | ||
52 | top: | |
53 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | |
54 | ||
55 | all: lib | |
56 | ||
57 | lib: $(LIBOBJ) | |
58 | $(AR) $(LIB) $(LIBOBJ) | |
99aab161 | 59 | $(RANLIB) $(LIB) |
d02b48c6 RE |
60 | @touch lib |
61 | ||
62 | # elf | |
58964a49 | 63 | asm/dx86-elf.o: asm/dx86unix.cpp |
d02b48c6 RE |
64 | $(CPP) -DELF asm/dx86unix.cpp | as -o asm/dx86-elf.o |
65 | ||
58964a49 RE |
66 | asm/yx86-elf.o: asm/yx86unix.cpp |
67 | $(CPP) -DELF asm/yx86unix.cpp | as -o asm/yx86-elf.o | |
d02b48c6 RE |
68 | |
69 | # solaris | |
58964a49 | 70 | asm/dx86-sol.o: asm/dx86unix.cpp |
d02b48c6 RE |
71 | $(CC) -E -DSOL asm/dx86unix.cpp | sed 's/^#.*//' > asm/dx86-sol.s |
72 | as -o asm/dx86-sol.o asm/dx86-sol.s | |
73 | rm -f asm/dx86-sol.s | |
74 | ||
58964a49 RE |
75 | asm/yx86-sol.o: asm/yx86unix.cpp |
76 | $(CC) -E -DSOL asm/yx86unix.cpp | sed 's/^#.*//' > asm/yx86-sol.s | |
77 | as -o asm/yx86-sol.o asm/yx86-sol.s | |
78 | rm -f asm/yx86-sol.s | |
d02b48c6 RE |
79 | |
80 | # a.out | |
58964a49 | 81 | asm/dx86-out.o: asm/dx86unix.cpp |
d02b48c6 RE |
82 | $(CPP) -DOUT asm/dx86unix.cpp | as -o asm/dx86-out.o |
83 | ||
58964a49 RE |
84 | asm/yx86-out.o: asm/yx86unix.cpp |
85 | $(CPP) -DOUT asm/yx86unix.cpp | as -o asm/yx86-out.o | |
d02b48c6 RE |
86 | |
87 | # bsdi | |
58964a49 | 88 | asm/dx86bsdi.o: asm/dx86unix.cpp |
dfeab068 | 89 | $(CPP) -DBSDI asm/dx86unix.cpp | sed 's/ :/:/' | as -o asm/dx86bsdi.o |
d02b48c6 | 90 | |
58964a49 | 91 | asm/yx86bsdi.o: asm/yx86unix.cpp |
dfeab068 | 92 | $(CPP) -DBSDI asm/yx86unix.cpp | sed 's/ :/:/' | as -o asm/yx86bsdi.o |
58964a49 | 93 | |
9151d396 | 94 | asm/dx86unix.cpp: asm/des-586.pl |
99aab161 | 95 | (cd asm; $(PERL) des-586.pl cpp >dx86unix.cpp) |
58964a49 | 96 | |
9151d396 | 97 | asm/yx86unix.cpp: asm/crypt586.pl |
99aab161 | 98 | (cd asm; $(PERL) crypt586.pl cpp >yx86unix.cpp) |
d02b48c6 RE |
99 | |
100 | files: | |
99aab161 | 101 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
d02b48c6 RE |
102 | |
103 | links: | |
bb8f3c58 RE |
104 | @$(TOP)/util/point.sh Makefile.ssl Makefile |
105 | @$(TOP)/util/point.sh ../../perlasm asm/perlasm | |
1314c344 BM |
106 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
107 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | |
108 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | |
d02b48c6 RE |
109 | |
110 | install: installs | |
111 | ||
112 | installs: | |
113 | @for i in $(EXHEADER) ; \ | |
114 | do \ | |
e5f3045f BM |
115 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
116 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | |
d02b48c6 RE |
117 | done; |
118 | ||
119 | tags: | |
120 | ctags $(SRC) | |
121 | ||
122 | tests: | |
123 | ||
124 | lint: | |
125 | lint -DLINT $(INCLUDES) $(SRC)>fluff | |
126 | ||
127 | depend: | |
f5d7a031 | 128 | $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) |
d02b48c6 RE |
129 | |
130 | dclean: | |
99aab161 | 131 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
d02b48c6 RE |
132 | mv -f Makefile.new $(MAKEFILE) |
133 | ||
134 | clean: | |
436a376b | 135 | rm -f asm/dx86unix.cpp asm/yx86unix.cpp *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
d02b48c6 | 136 | |
d02b48c6 | 137 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
6242bb9c | 138 | |
127640b4 | 139 | cbc_cksm.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd | 140 | cbc_cksm.o: ../../include/openssl/opensslconf.h des_locl.h |
127640b4 | 141 | cbc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd | 142 | cbc_enc.o: ../../include/openssl/opensslconf.h des_locl.h |
127640b4 | 143 | cfb64ede.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd | 144 | cfb64ede.o: ../../include/openssl/opensslconf.h des_locl.h |
127640b4 | 145 | cfb64enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd | 146 | cfb64enc.o: ../../include/openssl/opensslconf.h des_locl.h |
127640b4 | 147 | cfb_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd | 148 | cfb_enc.o: ../../include/openssl/opensslconf.h des_locl.h |
127640b4 | 149 | des_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd | 150 | des_enc.o: ../../include/openssl/opensslconf.h des_locl.h |
127640b4 | 151 | ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd | 152 | ecb3_enc.o: ../../include/openssl/opensslconf.h des_locl.h |
127640b4 | 153 | ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd BL |
154 | ecb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
155 | ecb_enc.o: des_locl.h spr.h | |
127640b4 | 156 | ede_cbcm_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd | 157 | ede_cbcm_enc.o: ../../include/openssl/opensslconf.h des_locl.h |
bf57da07 BM |
158 | enc_read.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h |
159 | enc_read.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | |
7e701817 BM |
160 | enc_read.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
161 | enc_read.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h | |
bf57da07 | 162 | enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h |
7e701817 | 163 | enc_read.o: ../cryptlib.h des_locl.h |
bf57da07 BM |
164 | enc_writ.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h |
165 | enc_writ.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | |
7e701817 BM |
166 | enc_writ.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
167 | enc_writ.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h | |
bf57da07 | 168 | enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h |
7e701817 | 169 | enc_writ.o: ../cryptlib.h des_locl.h |
bf57da07 | 170 | fcrypt.o: ../../include/openssl/des.h ../../include/openssl/des.h |
127640b4 | 171 | fcrypt.o: ../../include/openssl/e_os2.h ../../include/openssl/e_os2.h |
bf57da07 BM |
172 | fcrypt.o: ../../include/openssl/opensslconf.h |
173 | fcrypt.o: ../../include/openssl/opensslconf.h des_locl.h des_locl.h | |
127640b4 | 174 | fcrypt_b.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd | 175 | fcrypt_b.o: ../../include/openssl/opensslconf.h des_locl.h |
127640b4 | 176 | ofb64ede.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd | 177 | ofb64ede.o: ../../include/openssl/opensslconf.h des_locl.h |
127640b4 | 178 | ofb64enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd | 179 | ofb64enc.o: ../../include/openssl/opensslconf.h des_locl.h |
127640b4 | 180 | ofb_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd | 181 | ofb_enc.o: ../../include/openssl/opensslconf.h des_locl.h |
127640b4 | 182 | pcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd | 183 | pcbc_enc.o: ../../include/openssl/opensslconf.h des_locl.h |
127640b4 | 184 | qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd | 185 | qud_cksm.o: ../../include/openssl/opensslconf.h des_locl.h |
127640b4 | 186 | rand_key.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd | 187 | rand_key.o: ../../include/openssl/opensslconf.h des_locl.h |
127640b4 | 188 | read2pwd.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd | 189 | read2pwd.o: ../../include/openssl/opensslconf.h des_locl.h |
bf57da07 BM |
190 | read_pwd.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h |
191 | read_pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | |
7e701817 BM |
192 | read_pwd.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
193 | read_pwd.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h | |
bf57da07 | 194 | read_pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h |
7e701817 | 195 | read_pwd.o: ../cryptlib.h des_locl.h |
127640b4 | 196 | rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd | 197 | rpc_enc.o: ../../include/openssl/opensslconf.h des_locl.h des_ver.h rpc_des.h |
127640b4 | 198 | set_key.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd | 199 | set_key.o: ../../include/openssl/opensslconf.h des_locl.h podd.h sk.h |
127640b4 | 200 | str2key.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd | 201 | str2key.o: ../../include/openssl/opensslconf.h des_locl.h |
127640b4 | 202 | supp.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd | 203 | supp.o: ../../include/openssl/opensslconf.h des_locl.h |
127640b4 | 204 | xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h |
2adca9cd | 205 | xcbc_enc.o: ../../include/openssl/opensslconf.h des_locl.h |