diff options
Diffstat (limited to 'src/lib/libcrypto/rc4/Makefile')
-rw-r--r-- | src/lib/libcrypto/rc4/Makefile | 128 |
1 files changed, 128 insertions, 0 deletions
diff --git a/src/lib/libcrypto/rc4/Makefile b/src/lib/libcrypto/rc4/Makefile new file mode 100644 index 0000000000..20d078ec87 --- /dev/null +++ b/src/lib/libcrypto/rc4/Makefile | |||
@@ -0,0 +1,128 @@ | |||
1 | # | ||
2 | # OpenSSL/crypto/rc4/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= rc4 | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | CPP= $(CC) -E | ||
9 | INCLUDES= | ||
10 | CFLAG=-g | ||
11 | INSTALL_PREFIX= | ||
12 | OPENSSLDIR= /usr/local/ssl | ||
13 | INSTALLTOP=/usr/local/ssl | ||
14 | MAKEDEPPROG= makedepend | ||
15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
16 | MAKEFILE= Makefile | ||
17 | AR= ar r | ||
18 | |||
19 | RC4_ENC=rc4_enc.o | ||
20 | # or use | ||
21 | #RC4_ENC=asm/rx86-elf.o | ||
22 | #RC4_ENC=asm/rx86-out.o | ||
23 | #RC4_ENC=asm/rx86-sol.o | ||
24 | #RC4_ENC=asm/rx86bdsi.o | ||
25 | |||
26 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
27 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
28 | |||
29 | GENERAL=Makefile | ||
30 | TEST=rc4test.c | ||
31 | APPS= | ||
32 | |||
33 | LIB=$(TOP)/libcrypto.a | ||
34 | LIBSRC=rc4_skey.c rc4_enc.c | ||
35 | LIBOBJ=rc4_skey.o $(RC4_ENC) | ||
36 | |||
37 | SRC= $(LIBSRC) | ||
38 | |||
39 | EXHEADER= rc4.h | ||
40 | HEADER= $(EXHEADER) rc4_locl.h | ||
41 | |||
42 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
43 | |||
44 | top: | ||
45 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
46 | |||
47 | all: lib | ||
48 | |||
49 | lib: $(LIBOBJ) | ||
50 | $(AR) $(LIB) $(LIBOBJ) | ||
51 | $(RANLIB) $(LIB) || echo Never mind. | ||
52 | @touch lib | ||
53 | |||
54 | # elf | ||
55 | asm/rx86-elf.s: asm/rc4-586.pl ../perlasm/x86asm.pl | ||
56 | (cd asm; $(PERL) rc4-586.pl elf $(CFLAGS) > rx86-elf.s) | ||
57 | |||
58 | # a.out | ||
59 | asm/rx86-out.o: asm/rx86unix.cpp | ||
60 | $(CPP) -DOUT asm/rx86unix.cpp | as -o asm/rx86-out.o | ||
61 | |||
62 | # bsdi | ||
63 | asm/rx86bsdi.o: asm/rx86unix.cpp | ||
64 | $(CPP) -DBSDI asm/rx86unix.cpp | sed 's/ :/:/' | as -o asm/rx86bsdi.o | ||
65 | |||
66 | asm/rx86unix.cpp: asm/rc4-586.pl ../perlasm/x86asm.pl | ||
67 | (cd asm; $(PERL) rc4-586.pl cpp >rx86unix.cpp) | ||
68 | |||
69 | asm/rc4-x86_64.s: asm/rc4-x86_64.pl; $(PERL) asm/rc4-x86_64.pl $@ | ||
70 | |||
71 | asm/rc4-ia64.s: asm/rc4-ia64.S | ||
72 | @case `awk '/^#define RC4_INT/{print$$NF}' $(TOP)/include/openssl/opensslconf.h` in \ | ||
73 | int) set -x; $(CC) $(CFLAGS) -DSZ=4 -E asm/rc4-ia64.S > $@ ;; \ | ||
74 | char) set -x; $(CC) $(CFLAGS) -DSZ=1 -E asm/rc4-ia64.S > $@ ;; \ | ||
75 | *) exit 1 ;; \ | ||
76 | esac | ||
77 | |||
78 | files: | ||
79 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
80 | |||
81 | links: | ||
82 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
83 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
84 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
85 | |||
86 | install: | ||
87 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
88 | do \ | ||
89 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
90 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
91 | done; | ||
92 | |||
93 | tags: | ||
94 | ctags $(SRC) | ||
95 | |||
96 | tests: | ||
97 | |||
98 | lint: | ||
99 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
100 | |||
101 | depend: | ||
102 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
103 | |||
104 | dclean: | ||
105 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
106 | mv -f Makefile.new $(MAKEFILE) | ||
107 | |||
108 | clean: | ||
109 | rm -f asm/rx86unix.cpp asm/*-elf.* *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o | ||
110 | |||
111 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
112 | |||
113 | rc4_enc.o: ../../e_os.h ../../include/openssl/bio.h | ||
114 | rc4_enc.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
115 | rc4_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
116 | rc4_enc.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
117 | rc4_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/rc4.h | ||
118 | rc4_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
119 | rc4_enc.o: ../../include/openssl/symhacks.h ../cryptlib.h rc4_enc.c rc4_locl.h | ||
120 | rc4_skey.o: ../../e_os.h ../../include/openssl/bio.h | ||
121 | rc4_skey.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
122 | rc4_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
123 | rc4_skey.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | ||
124 | rc4_skey.o: ../../include/openssl/opensslconf.h | ||
125 | rc4_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/rc4.h | ||
126 | rc4_skey.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
127 | rc4_skey.o: ../../include/openssl/symhacks.h ../cryptlib.h rc4_locl.h | ||
128 | rc4_skey.o: rc4_skey.c | ||