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