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