]>
Commit | Line | Data |
---|---|---|
d02b48c6 RE |
1 | # |
2 | # SSLeay/crypto/des/Makefile | |
3 | # | |
4 | ||
5 | DIR= des | |
6 | TOP= ../.. | |
7 | CC= cc | |
8 | CPP= $(CC) -E | |
9 | INCLUDES= | |
10 | CFLAG=-g | |
11 | INSTALLTOP=/usr/local/ssl | |
12 | MAKE= make -f Makefile.ssl | |
13 | MAKEDEPEND= makedepend -f Makefile.ssl | |
14 | MAKEFILE= Makefile.ssl | |
15 | AR= ar r | |
16 | DES_ENC= des_enc.o fcrypt_b.o | |
17 | # or use | |
18 | #DES_ENC= dx86-elf.o cx86-elf.o | |
19 | ||
20 | CFLAGS= $(INCLUDES) $(CFLAG) | |
21 | ||
22 | GENERAL=Makefile des.org des_locl.org | |
23 | TEST=destest.c | |
24 | APPS= | |
25 | ||
26 | LIB=$(TOP)/libcrypto.a | |
27 | LIBSRC= cbc3_enc.c cbc_cksm.c cbc_enc.c cfb64enc.c cfb_enc.c \ | |
28 | ecb3_enc.c ecb_enc.c ede_enc.c enc_read.c enc_writ.c \ | |
29 | fcrypt.c ncbc_enc.c ofb64enc.c ofb_enc.c pcbc_enc.c \ | |
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 \ | |
33 | str2key.c cfb64ede.c ofb64ede.c supp.c | |
34 | ||
35 | LIBOBJ= set_key.o ecb_enc.o ede_enc.o cbc_enc.o cbc3_enc.o \ | |
36 | ecb3_enc.o cfb64enc.o cfb64ede.o cfb_enc.o ofb64ede.o \ | |
37 | enc_read.o enc_writ.o ncbc_enc.o ofb64enc.o \ | |
38 | ofb_enc.o str2key.o pcbc_enc.o qud_cksm.o rand_key.o \ | |
39 | ${DES_ENC} read2pwd.o \ | |
40 | fcrypt.o xcbc_enc.o read_pwd.o rpc_enc.o cbc_cksm.o supp.o | |
41 | ||
42 | SRC= $(LIBSRC) | |
43 | ||
44 | EXHEADER= des.h | |
45 | HEADER= des_locl.h rpc_des.h podd.h sk.h spr.h des_ver.h $(EXHEADER) | |
46 | ||
47 | ALL= $(GENERAL) $(SRC) $(HEADER) | |
48 | ||
49 | top: | |
50 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | |
51 | ||
52 | all: lib | |
53 | ||
54 | lib: $(LIBOBJ) | |
55 | $(AR) $(LIB) $(LIBOBJ) | |
56 | sh $(TOP)/util/ranlib.sh $(LIB) | |
57 | @touch lib | |
58 | ||
59 | # elf | |
60 | asm/dx86-elf.o: asm/dx86-cpp.s asm/dx86unix.cpp | |
61 | $(CPP) -DELF asm/dx86unix.cpp | as -o asm/dx86-elf.o | |
62 | ||
63 | asm/cx86-elf.o: asm/cx86-cpp.s asm/cx86unix.cpp | |
64 | $(CPP) -DELF asm/cx86unix.cpp | as -o asm/cx86-elf.o | |
65 | ||
66 | # solaris | |
67 | asm/dx86-sol.o: asm/dx86-cpp.s asm/dx86unix.cpp | |
68 | $(CC) -E -DSOL asm/dx86unix.cpp | sed 's/^#.*//' > asm/dx86-sol.s | |
69 | as -o asm/dx86-sol.o asm/dx86-sol.s | |
70 | rm -f asm/dx86-sol.s | |
71 | ||
72 | asm/cx86-sol.o: asm/cx86-cpp.s asm/cx86unix.cpp | |
73 | $(CC) -E -DSOL asm/cx86unix.cpp | sed 's/^#.*//' > asm/cx86-sol.s | |
74 | as -o asm/cx86-sol.o asm/cx86-sol.s | |
75 | rm -f asm/cx86-sol.s | |
76 | ||
77 | # a.out | |
78 | asm/dx86-out.o: asm/dx86-cpp.s asm/dx86unix.cpp | |
79 | $(CPP) -DOUT asm/dx86unix.cpp | as -o asm/dx86-out.o | |
80 | ||
81 | asm/cx86-out.o: asm/cx86-cpp.s asm/cx86unix.cpp | |
82 | $(CPP) -DOUT asm/cx86unix.cpp | as -o asm/cx86-out.o | |
83 | ||
84 | # bsdi | |
85 | asm/dx86bsdi.o: asm/dx86-cpp.s asm/dx86unix.cpp | |
86 | $(CPP) -DBSDI asm/dx86unix.cpp | as -o asm/dx86bsdi.o | |
87 | ||
88 | asm/cx86bsdi.o: asm/cx86-cpp.s asm/cx86unix.cpp | |
89 | $(CPP) -DBSDI asm/cx86unix.cpp | as -o asm/cx86bsdi.o | |
90 | ||
91 | files: | |
92 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | |
93 | ||
94 | links: | |
95 | /bin/rm -f Makefile | |
96 | $(TOP)/util/point.sh Makefile.ssl Makefile | |
97 | /bin/rm -f des.doc | |
98 | $(TOP)/util/point.sh ../../doc/des.doc des.doc | |
99 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | |
100 | $(TOP)/util/mklink.sh ../../test $(TEST) | |
101 | $(TOP)/util/mklink.sh ../../apps $(APPS) | |
102 | /bin/rm -f asm/x86ms.pl asm/x86unix.pl | |
103 | $(TOP)/util/point.sh ../../perlasm/x86ms.pl asm/x86ms.pl | |
104 | $(TOP)/util/point.sh ../../perlasm/x86unix.pl asm/x86unix.pl | |
105 | ||
106 | install: installs | |
107 | ||
108 | installs: | |
109 | @for i in $(EXHEADER) ; \ | |
110 | do \ | |
111 | (cp $$i $(INSTALLTOP)/include/$$i; \ | |
112 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | |
113 | done; | |
114 | ||
115 | tags: | |
116 | ctags $(SRC) | |
117 | ||
118 | tests: | |
119 | ||
120 | lint: | |
121 | lint -DLINT $(INCLUDES) $(SRC)>fluff | |
122 | ||
123 | depend: | |
124 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | |
125 | ||
126 | dclean: | |
127 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | |
128 | mv -f Makefile.new $(MAKEFILE) | |
129 | ||
130 | clean: | |
131 | /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | |
132 | ||
133 | errors: | |
134 | ||
135 | # DO NOT DELETE THIS LINE -- make depend depends on it. |