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