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