Makefile 7.6 KB
Newer Older
1
#
2
# OpenSSL/crypto/des/Makefile
3 4 5 6 7 8
#

DIR=	des
TOP=	../..
CC=	cc
CPP=	$(CC) -E
9
INCLUDES=-I$(TOP) -I../../include
10
CFLAG=-g
B
Ben Laurie 已提交
11
MAKEFILE=	Makefile
12
AR=		ar r
U
Ulf Möller 已提交
13
RANLIB=		ranlib
14 15 16
DES_ENC=	des_enc.o fcrypt_b.o

CFLAGS= $(INCLUDES) $(CFLAG)
17
ASFLAGS= $(INCLUDES) $(ASFLAG)
18
AFLAGS= $(ASFLAGS)
19

20
GENERAL=Makefile
21 22

LIB=$(TOP)/libcrypto.a
23 24 25
LIBSRC=	cbc_cksm.c cbc_enc.c  cfb64enc.c cfb_enc.c  \
	ecb3_enc.c ecb_enc.c  enc_read.c enc_writ.c \
	fcrypt.c ofb64enc.c ofb_enc.c  pcbc_enc.c \
R
Richard Levitte 已提交
26 27
	qud_cksm.c rand_key.c rpc_enc.c  set_key.c  \
	des_enc.c fcrypt_b.c \
U
Ulf Möller 已提交
28
	xcbc_enc.c \
R
Rich Salz 已提交
29
	str2key.c  cfb64ede.c ofb64ede.c \
30
	read2pwd.c
31

32
LIBOBJ= set_key.o  ecb_enc.o  cbc_enc.o \
33
	ecb3_enc.o cfb64enc.o cfb64ede.o cfb_enc.o  ofb64ede.o \
34
	enc_read.o enc_writ.o ofb64enc.o \
35
	ofb_enc.o  str2key.o  pcbc_enc.o qud_cksm.o rand_key.o \
36 37
	${DES_ENC} \
	fcrypt.o xcbc_enc.o rpc_enc.o  cbc_cksm.o \
R
Rich Salz 已提交
38
	read2pwd.o
39 40 41

SRC= $(LIBSRC)

R
Rich Salz 已提交
42
HEADER=	des_locl.h rpc_des.h spr.h
43 44 45 46 47 48

ALL=    $(GENERAL) $(SRC) $(HEADER)

top:
	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)

U
Ulf Möller 已提交
49
all:	lib
50 51

lib:	$(LIBOBJ)
52
	$(AR) $(LIB) $(LIBOBJ)
53
	$(RANLIB) $(LIB) || echo Never mind.
54 55
	@touch lib

56 57
des_enc-sparc.S:	asm/des_enc.m4
	m4 -B 8192 asm/des_enc.m4 > des_enc-sparc.S
58 59
dest4-sparcv9.s:	asm/dest4-sparcv9.pl
	$(PERL) asm/dest4-sparcv9.pl $(CFLAGS) > $@
60

A
Andy Polyakov 已提交
61 62 63 64
des-586.s:	asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
	$(PERL) asm/des-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
crypt586.s:	asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
	$(PERL) asm/crypt586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
65 66

files:
B
Ben Laurie 已提交
67
	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
68 69 70 71 72 73 74 75 76

tags:
	ctags $(SRC)

tests:

lint:
	lint -DLINT $(INCLUDES) $(SRC)>fluff

77 78
update: depend

79
depend:
80
	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
81
	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
82 83

dclean:
84
	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
85 86 87
	mv -f Makefile.new $(MAKEFILE)

clean:
88
	rm -f *.s *.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff
89 90

# DO NOT DELETE THIS LINE -- make depend depends on it.
B
Ben Laurie 已提交
91

D
Dr. Stephen Henson 已提交
92 93 94 95
cbc_cksm.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
cbc_cksm.o: ../../include/openssl/opensslconf.h cbc_cksm.c des_locl.h
cbc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
cbc_enc.o: ../../include/openssl/opensslconf.h cbc_enc.c des_locl.h ncbc_enc.c
96
cfb64ede.o: ../../e_os.h ../../include/openssl/des.h
D
Dr. Stephen Henson 已提交
97
cfb64ede.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
98
cfb64ede.o: cfb64ede.c des_locl.h
D
Dr. Stephen Henson 已提交
99 100
cfb64enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
cfb64enc.o: ../../include/openssl/opensslconf.h cfb64enc.c des_locl.h
101
cfb_enc.o: ../../e_os.h ../../include/openssl/des.h
D
Dr. Stephen Henson 已提交
102
cfb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
R
Rich Salz 已提交
103
cfb_enc.o: cfb_enc.c des_locl.h
D
Dr. Stephen Henson 已提交
104
des_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
D
Dr. Stephen Henson 已提交
105 106 107 108 109 110 111
des_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
des_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
des_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
des_enc.o: ../../include/openssl/symhacks.h des_enc.c des_locl.h ncbc_enc.c
des_enc.o: spr.h
ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
ecb3_enc.o: ../../include/openssl/opensslconf.h des_locl.h ecb3_enc.c
R
Richard Levitte 已提交
112
ecb_enc.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
D
Dr. Stephen Henson 已提交
113 114 115 116
ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
ecb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
ecb_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
ecb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
R
Rich Salz 已提交
117
ecb_enc.o: des_locl.h ecb_enc.c
118 119
enc_read.o: ../../e_os.h ../../include/openssl/bio.h
enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
D
Dr. Stephen Henson 已提交
120 121 122
enc_read.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
enc_read.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
enc_read.o: ../../include/openssl/opensslconf.h
123 124
enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
enc_read.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
R
Richard Levitte 已提交
125 126
enc_read.o: ../../include/openssl/symhacks.h ../include/internal/cryptlib.h
enc_read.o: des_locl.h enc_read.c
127 128
enc_writ.o: ../../e_os.h ../../include/openssl/bio.h
enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
D
Dr. Stephen Henson 已提交
129 130 131
enc_writ.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
enc_writ.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
enc_writ.o: ../../include/openssl/opensslconf.h
132 133 134
enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
R
Richard Levitte 已提交
135
enc_writ.o: ../include/internal/cryptlib.h des_locl.h enc_writ.c
D
Dr. Stephen Henson 已提交
136
fcrypt.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
D
Dr. Stephen Henson 已提交
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
fcrypt.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
fcrypt.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
fcrypt.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
fcrypt.o: ../../include/openssl/symhacks.h des_locl.h fcrypt.c
fcrypt_b.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
fcrypt_b.o: ../../include/openssl/opensslconf.h des_locl.h fcrypt_b.c
ofb64ede.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
ofb64ede.o: ../../include/openssl/opensslconf.h des_locl.h ofb64ede.c
ofb64enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
ofb64enc.o: ../../include/openssl/opensslconf.h des_locl.h ofb64enc.c
ofb_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
ofb_enc.o: ../../include/openssl/opensslconf.h des_locl.h ofb_enc.c
pcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
pcbc_enc.o: ../../include/openssl/opensslconf.h des_locl.h pcbc_enc.c
qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
qud_cksm.o: ../../include/openssl/opensslconf.h des_locl.h qud_cksm.c
rand_key.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
rand_key.o: ../../include/openssl/opensslconf.h
155
rand_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
R
Rich Salz 已提交
156
rand_key.o: rand_key.c
R
Richard Levitte 已提交
157
read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
D
Dr. Stephen Henson 已提交
158
read2pwd.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
G
Geoff Thorpe 已提交
159 160 161
read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
read2pwd.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
read2pwd.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
R
Rich Salz 已提交
162
read2pwd.o: read2pwd.c
D
Dr. Stephen Henson 已提交
163
rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
R
Rich Salz 已提交
164
rpc_enc.o: ../../include/openssl/opensslconf.h des_locl.h rpc_des.h rpc_enc.c
D
Dr. Stephen Henson 已提交
165
set_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
D
Dr. Stephen Henson 已提交
166 167 168 169
set_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
set_key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
set_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
set_key.o: ../../include/openssl/symhacks.h des_locl.h set_key.c
R
Richard Levitte 已提交
170
str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
D
Dr. Stephen Henson 已提交
171 172 173 174 175 176
str2key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
str2key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
str2key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
str2key.o: ../../include/openssl/symhacks.h des_locl.h str2key.c
xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
xcbc_enc.o: ../../include/openssl/opensslconf.h des_locl.h xcbc_enc.c