1#
2# OpenSSL/crypto/des/Makefile
3#
4
5DIR=	des
6TOP=	../..
7CC=	cc
8CPP=	$(CC) -E
9INCLUDES=-I$(TOP) -I../../include
10CFLAG=-g
11MAKEFILE=	Makefile
12AR=		ar r
13RANLIB=		ranlib
14DES_ENC=	des_enc.o fcrypt_b.o
15# or use
16#DES_ENC=	dx86-elf.o yx86-elf.o
17
18CFLAGS= $(INCLUDES) $(CFLAG)
19ASFLAGS= $(INCLUDES) $(ASFLAG)
20AFLAGS= $(ASFLAGS)
21
22GENERAL=Makefile
23TEST=destest.c
24APPS=
25
26LIB=$(TOP)/libcrypto.a
27LIBSRC=	des_lib.c cbc_cksm.c cbc_enc.c  cfb64enc.c cfb_enc.c  \
28	ecb3_enc.c ecb_enc.c  enc_read.c enc_writ.c \
29	fcrypt.c ofb64enc.c ofb_enc.c  pcbc_enc.c \
30	qud_cksm.c rand_key.c rpc_enc.c  set_key.c  \
31	des_enc.c fcrypt_b.c \
32	xcbc_enc.c \
33	str2key.c  cfb64ede.c ofb64ede.c ede_cbcm_enc.c des_old.c des_old2.c \
34	read2pwd.c
35
36LIBOBJ= des_lib.o set_key.o  ecb_enc.o  cbc_enc.o \
37	ecb3_enc.o cfb64enc.o cfb64ede.o cfb_enc.o  ofb64ede.o \
38	enc_read.o enc_writ.o ofb64enc.o \
39	ofb_enc.o  str2key.o  pcbc_enc.o qud_cksm.o rand_key.o \
40	${DES_ENC} \
41	fcrypt.o xcbc_enc.o rpc_enc.o  cbc_cksm.o \
42	ede_cbcm_enc.o des_old.o des_old2.o read2pwd.o
43
44SRC= $(LIBSRC)
45
46EXHEADER= des.h des_old.h
47HEADER=	des_locl.h rpc_des.h spr.h des_ver.h $(EXHEADER)
48
49ALL=    $(GENERAL) $(SRC) $(HEADER)
50
51top:
52	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
53
54all:	lib
55
56lib:	$(LIBOBJ)
57	$(ARX) $(LIB) $(LIBOBJ)
58	$(RANLIB) $(LIB) || echo Never mind.
59	@touch lib
60
61des: des.o cbc3_enc.o lib
62	$(CC) $(CFLAGS) -o des des.o cbc3_enc.o $(LIB)
63
64des_enc-sparc.S:	asm/des_enc.m4
65	m4 -B 8192 asm/des_enc.m4 > des_enc-sparc.S
66
67# ELF
68dx86-elf.s:	asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
69	(cd asm; $(PERL) des-586.pl elf $(CFLAGS) > ../$@)
70yx86-elf.s:	asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
71	(cd asm; $(PERL) crypt586.pl elf $(CFLAGS) > ../$@)
72# COFF
73dx86-cof.s: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
74	(cd asm; $(PERL) des-586.pl coff $(CFLAGS) > ../$@)
75yx86-cof.s: asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
76	(cd asm; $(PERL) crypt586.pl coff $(CFLAGS) > ../$@)
77# a.out
78dx86-out.s: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
79	(cd asm; $(PERL) des-586.pl a.out $(CFLAGS) > ../$@)
80yx86-out.s: asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
81	(cd asm; $(PERL) crypt586.pl a.out $(CFLAGS) > ../$@)
82
83files:
84	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
85
86links:
87	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
88	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
89	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
90
91# We need to use force because 'install' matches 'INSTALL' on case
92# insensitive systems
93FRC.install:
94install: FRC.install
95	@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
96	@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
97	do  \
98	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
99	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
100	done;
101
102tags:
103	ctags $(SRC)
104
105tests:
106
107lint:
108	lint -DLINT $(INCLUDES) $(SRC)>fluff
109
110depend:
111	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
112	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
113
114dclean:
115	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
116	mv -f Makefile.new $(MAKEFILE)
117
118clean:
119	rm -f *.s *.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff
120
121# DO NOT DELETE THIS LINE -- make depend depends on it.
122
123cbc_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
124cbc_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
125cbc_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
126cbc_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
127cbc_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
128cbc_cksm.o: cbc_cksm.c des_locl.h
129cbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
130cbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
131cbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
132cbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
133cbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
134cbc_enc.o: cbc_enc.c des_locl.h ncbc_enc.c
135cfb64ede.o: ../../e_os.h ../../include/openssl/des.h
136cfb64ede.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
137cfb64ede.o: ../../include/openssl/opensslconf.h
138cfb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
139cfb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
140cfb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
141cfb64ede.o: cfb64ede.c des_locl.h
142cfb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
143cfb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
144cfb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
145cfb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
146cfb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
147cfb64enc.o: cfb64enc.c des_locl.h
148cfb_enc.o: ../../e_os.h ../../include/openssl/des.h
149cfb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
150cfb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/ossl_typ.h
151cfb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
152cfb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
153cfb_enc.o: ../../include/openssl/ui_compat.h cfb_enc.c des_locl.h
154des_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
155des_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
156des_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
157des_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
158des_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
159des_enc.o: des_enc.c des_locl.h ncbc_enc.c
160des_lib.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
161des_lib.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
162des_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
163des_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
164des_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
165des_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
166des_lib.o: ../../include/openssl/ui_compat.h des_lib.c des_locl.h des_ver.h
167des_old.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
168des_old.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
169des_old.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
170des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
171des_old.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
172des_old.o: ../../include/openssl/ui_compat.h des_old.c
173des_old2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
174des_old2.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
175des_old2.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
176des_old2.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
177des_old2.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
178des_old2.o: ../../include/openssl/ui_compat.h des_old2.c
179ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
180ecb3_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
181ecb3_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
182ecb3_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
183ecb3_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
184ecb3_enc.o: des_locl.h ecb3_enc.c
185ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
186ecb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
187ecb_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
188ecb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
189ecb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
190ecb_enc.o: des_locl.h ecb_enc.c spr.h
191ede_cbcm_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
192ede_cbcm_enc.o: ../../include/openssl/e_os2.h
193ede_cbcm_enc.o: ../../include/openssl/opensslconf.h
194ede_cbcm_enc.o: ../../include/openssl/ossl_typ.h
195ede_cbcm_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
196ede_cbcm_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
197ede_cbcm_enc.o: ../../include/openssl/ui_compat.h des_locl.h ede_cbcm_enc.c
198enc_read.o: ../../e_os.h ../../include/openssl/bio.h
199enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
200enc_read.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
201enc_read.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
202enc_read.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
203enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
204enc_read.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
205enc_read.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
206enc_read.o: ../../include/openssl/ui_compat.h ../cryptlib.h des_locl.h
207enc_read.o: enc_read.c
208enc_writ.o: ../../e_os.h ../../include/openssl/bio.h
209enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
210enc_writ.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
211enc_writ.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
212enc_writ.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
213enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
214enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
215enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
216enc_writ.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
217enc_writ.o: ../cryptlib.h des_locl.h enc_writ.c
218fcrypt.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
219fcrypt.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
220fcrypt.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
221fcrypt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
222fcrypt.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
223fcrypt.o: des_locl.h fcrypt.c
224fcrypt_b.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
225fcrypt_b.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
226fcrypt_b.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
227fcrypt_b.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
228fcrypt_b.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
229fcrypt_b.o: des_locl.h fcrypt_b.c
230ofb64ede.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
231ofb64ede.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
232ofb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
233ofb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
234ofb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
235ofb64ede.o: des_locl.h ofb64ede.c
236ofb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
237ofb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
238ofb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
239ofb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
240ofb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
241ofb64enc.o: des_locl.h ofb64enc.c
242ofb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
243ofb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
244ofb_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
245ofb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
246ofb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
247ofb_enc.o: des_locl.h ofb_enc.c
248pcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
249pcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
250pcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
251pcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
252pcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
253pcbc_enc.o: des_locl.h pcbc_enc.c
254qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
255qud_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
256qud_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
257qud_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
258qud_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
259qud_cksm.o: des_locl.h qud_cksm.c
260rand_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
261rand_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
262rand_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
263rand_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
264rand_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
265rand_key.o: ../../include/openssl/ui_compat.h rand_key.c
266read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
267read2pwd.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
268read2pwd.o: ../../include/openssl/opensslconf.h
269read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
270read2pwd.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
271read2pwd.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
272read2pwd.o: ../../include/openssl/ui_compat.h read2pwd.c
273rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
274rpc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
275rpc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
276rpc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
277rpc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
278rpc_enc.o: des_locl.h des_ver.h rpc_des.h rpc_enc.c
279set_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
280set_key.o: ../../include/openssl/e_os2.h ../../include/openssl/fips.h
281set_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/ossl_typ.h
282set_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
283set_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
284set_key.o: ../../include/openssl/ui_compat.h des_locl.h set_key.c
285str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
286str2key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
287str2key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
288str2key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
289str2key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
290str2key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
291str2key.o: des_locl.h str2key.c
292xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
293xcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
294xcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
295xcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
296xcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
297xcbc_enc.o: des_locl.h xcbc_enc.c
298