]>
Commit | Line | Data |
---|---|---|
d02b48c6 RE |
1 | # |
2 | # SSLeay/crypto/rc4/Makefile | |
3 | # | |
4 | ||
5 | DIR= rc4 | |
6 | TOP= ../.. | |
7 | CC= cc | |
8 | INCLUDES= | |
9 | CFLAG=-g | |
10 | INSTALLTOP=/usr/local/ssl | |
11 | MAKE= make -f Makefile.ssl | |
8039257d | 12 | MAKEDEPEND= $(TOP)/util/domd $(TOP) |
d02b48c6 RE |
13 | MAKEFILE= Makefile.ssl |
14 | AR= ar r | |
15 | ||
58964a49 RE |
16 | RC4_ENC=rc4_enc.o |
17 | # or use | |
18 | #RC4_ENC=asm/rx86-elf.o | |
19 | #RC4_ENC=asm/rx86-out.o | |
20 | #RC4_ENC=asm/rx86-sol.o | |
21 | #RC4_ENC=asm/rx86bdsi.o | |
22 | ||
d02b48c6 RE |
23 | CFLAGS= $(INCLUDES) $(CFLAG) |
24 | ||
25 | GENERAL=Makefile | |
26 | TEST=rc4test.c | |
27 | APPS= | |
28 | ||
29 | LIB=$(TOP)/libcrypto.a | |
58964a49 RE |
30 | LIBSRC=rc4_skey.c rc4_enc.c |
31 | LIBOBJ=rc4_skey.o $(RC4_ENC) | |
d02b48c6 RE |
32 | |
33 | SRC= $(LIBSRC) | |
34 | ||
35 | EXHEADER= rc4.h | |
58964a49 | 36 | HEADER= $(EXHEADER) rc4_locl.h |
d02b48c6 RE |
37 | |
38 | ALL= $(GENERAL) $(SRC) $(HEADER) | |
39 | ||
40 | top: | |
41 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | |
42 | ||
43 | all: lib | |
44 | ||
45 | lib: $(LIBOBJ) | |
46 | $(AR) $(LIB) $(LIBOBJ) | |
99aab161 | 47 | $(RANLIB) $(LIB) |
d02b48c6 RE |
48 | @touch lib |
49 | ||
58964a49 RE |
50 | # elf |
51 | asm/rx86-elf.o: asm/rx86unix.cpp | |
52 | $(CPP) -DELF asm/rx86unix.cpp | as -o asm/rx86-elf.o | |
53 | ||
54 | # solaris | |
55 | asm/rx86-sol.o: asm/rx86unix.cpp | |
56 | $(CC) -E -DSOL asm/rx86unix.cpp | sed 's/^#.*//' > asm/rx86-sol.s | |
57 | as -o asm/rx86-sol.o asm/rx86-sol.s | |
58 | rm -f asm/rx86-sol.s | |
59 | ||
60 | # a.out | |
61 | asm/rx86-out.o: asm/rx86unix.cpp | |
62 | $(CPP) -DOUT asm/rx86unix.cpp | as -o asm/rx86-out.o | |
63 | ||
64 | # bsdi | |
65 | asm/rx86bsdi.o: asm/rx86unix.cpp | |
dfeab068 | 66 | $(CPP) -DBSDI asm/rx86unix.cpp | sed 's/ :/:/' | as -o asm/rx86bsdi.o |
58964a49 | 67 | |
05dc84b8 | 68 | asm/rx86unix.cpp: asm/rc4-586.pl |
99aab161 | 69 | (cd asm; $(PERL) rc4-586.pl cpp >rx86unix.cpp) |
58964a49 | 70 | |
d02b48c6 | 71 | files: |
99aab161 | 72 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
d02b48c6 RE |
73 | |
74 | links: | |
bb8f3c58 | 75 | @$(TOP)/util/point.sh Makefile.ssl Makefile |
ec577822 | 76 | @$(TOP)/util/mklink.sh ../../include/openssl $(EXHEADER) |
bb8f3c58 RE |
77 | @$(TOP)/util/mklink.sh ../../test $(TEST) |
78 | @$(TOP)/util/mklink.sh ../../apps $(APPS) | |
d02b48c6 RE |
79 | |
80 | install: | |
81 | @for i in $(EXHEADER) ; \ | |
82 | do \ | |
ec577822 BM |
83 | (cp $$i $(INSTALLTOP)/include/openssl/$$i; \ |
84 | chmod 644 $(INSTALLTOP)/include/openssl/$$i ); \ | |
d02b48c6 RE |
85 | done; |
86 | ||
87 | tags: | |
88 | ctags $(SRC) | |
89 | ||
90 | tests: | |
91 | ||
92 | lint: | |
93 | lint -DLINT $(INCLUDES) $(SRC)>fluff | |
94 | ||
95 | depend: | |
96 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | |
97 | ||
98 | dclean: | |
99aab161 | 99 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
d02b48c6 RE |
100 | mv -f Makefile.new $(MAKEFILE) |
101 | ||
102 | clean: | |
bb8f3c58 | 103 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o |
d02b48c6 | 104 | |
d02b48c6 | 105 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
6242bb9c | 106 | |
bf57da07 BM |
107 | rc4_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc4.h |
108 | rc4_enc.o: rc4_locl.h | |
109 | rc4_skey.o: ../../include/openssl/opensslconf.h | |
110 | rc4_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/rc4.h | |
111 | rc4_skey.o: rc4_locl.h |