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=	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= 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	$(AR) $(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_old.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
161des_old.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
162des_old.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
163des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
164des_old.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
165des_old.o: ../../include/openssl/ui_compat.h des_old.c
166des_old2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
167des_old2.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
168des_old2.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
169des_old2.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
170des_old2.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
171des_old2.o: ../../include/openssl/ui_compat.h des_old2.c
172ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
173ecb3_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
174ecb3_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
175ecb3_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
176ecb3_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
177ecb3_enc.o: des_locl.h ecb3_enc.c
178ecb_enc.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
179ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
180ecb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
181ecb_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
182ecb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
183ecb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
184ecb_enc.o: ../../include/openssl/ui_compat.h des_locl.h des_ver.h ecb_enc.c
185ecb_enc.o: spr.h
186ede_cbcm_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
187ede_cbcm_enc.o: ../../include/openssl/e_os2.h
188ede_cbcm_enc.o: ../../include/openssl/opensslconf.h
189ede_cbcm_enc.o: ../../include/openssl/ossl_typ.h
190ede_cbcm_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
191ede_cbcm_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
192ede_cbcm_enc.o: ../../include/openssl/ui_compat.h des_locl.h ede_cbcm_enc.c
193enc_read.o: ../../e_os.h ../../include/openssl/bio.h
194enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
195enc_read.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
196enc_read.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
197enc_read.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
198enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
199enc_read.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
200enc_read.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
201enc_read.o: ../../include/openssl/ui_compat.h ../cryptlib.h des_locl.h
202enc_read.o: enc_read.c
203enc_writ.o: ../../e_os.h ../../include/openssl/bio.h
204enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
205enc_writ.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
206enc_writ.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
207enc_writ.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
208enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
209enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
210enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
211enc_writ.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
212enc_writ.o: ../cryptlib.h des_locl.h enc_writ.c
213fcrypt.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
214fcrypt.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
215fcrypt.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
216fcrypt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
217fcrypt.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
218fcrypt.o: des_locl.h fcrypt.c
219fcrypt_b.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
220fcrypt_b.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
221fcrypt_b.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
222fcrypt_b.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
223fcrypt_b.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
224fcrypt_b.o: des_locl.h fcrypt_b.c
225ofb64ede.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
226ofb64ede.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
227ofb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
228ofb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
229ofb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
230ofb64ede.o: des_locl.h ofb64ede.c
231ofb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
232ofb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
233ofb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
234ofb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
235ofb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
236ofb64enc.o: des_locl.h ofb64enc.c
237ofb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
238ofb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
239ofb_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
240ofb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
241ofb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
242ofb_enc.o: des_locl.h ofb_enc.c
243pcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
244pcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
245pcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
246pcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
247pcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
248pcbc_enc.o: des_locl.h pcbc_enc.c
249qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
250qud_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
251qud_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
252qud_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
253qud_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
254qud_cksm.o: des_locl.h qud_cksm.c
255rand_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
256rand_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
257rand_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
258rand_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
259rand_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
260rand_key.o: ../../include/openssl/ui_compat.h rand_key.c
261read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
262read2pwd.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
263read2pwd.o: ../../include/openssl/opensslconf.h
264read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
265read2pwd.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
266read2pwd.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
267read2pwd.o: ../../include/openssl/ui_compat.h read2pwd.c
268rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
269rpc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
270rpc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
271rpc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
272rpc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
273rpc_enc.o: des_locl.h des_ver.h rpc_des.h rpc_enc.c
274set_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
275set_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
276set_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
277set_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
278set_key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
279set_key.o: des_locl.h set_key.c
280str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
281str2key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
282str2key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
283str2key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
284str2key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
285str2key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
286str2key.o: des_locl.h str2key.c
287xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
288xcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
289xcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
290xcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
291xcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
292xcbc_enc.o: des_locl.h xcbc_enc.c
293