2 # OpenSSL/crypto/rc4/Makefile
13 RC4_ENC=rc4_enc.o rc4_skey.o
15 CFLAGS= $(INCLUDES) $(CFLAG)
16 ASFLAGS= $(INCLUDES) $(ASFLAG)
23 LIB=$(TOP)/libcrypto.a
24 LIBSRC=rc4_skey.c rc4_enc.c rc4_fblk.c
25 LIBOBJ=$(RC4_ENC) rc4_fblk.o
30 HEADER= $(EXHEADER) rc4_locl.h
32 ALL= $(GENERAL) $(SRC) $(HEADER)
35 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
40 $(ARX) $(LIB) $(LIBOBJ)
41 $(RANLIB) $(LIB) || echo Never mind.
45 rx86-elf.s: asm/rc4-586.pl ../perlasm/x86asm.pl
46 (cd asm; $(PERL) rc4-586.pl elf $(CFLAGS) > ../$@)
48 rx86-cof.s: asm/rc4-586.pl ../perlasm/x86asm.pl
49 (cd asm; $(PERL) rc4-586.pl coff $(CFLAGS) > ../$@)
51 rx86-out.s: asm/rc4-586.pl ../perlasm/x86asm.pl
52 (cd asm; $(PERL) rc4-586.pl a.out $(CFLAGS) > ../$@)
54 rc4-x86_64.s: asm/rc4-x86_64.pl; $(PERL) asm/rc4-x86_64.pl $@
56 rc4-ia64.s: asm/rc4-ia64.S
57 @case `awk '/^#define RC4_INT/{print$$NF}' $(TOP)/include/openssl/opensslconf.h` in \
58 int) set -x; $(CC) $(CFLAGS) -DSZ=4 -E asm/rc4-ia64.S > $@ ;; \
59 char) set -x; $(CC) $(CFLAGS) -DSZ=1 -E asm/rc4-ia64.S > $@ ;; \
64 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
67 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
68 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
69 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
72 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
73 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
75 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
76 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
85 lint -DLINT $(INCLUDES) $(SRC)>fluff
88 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
89 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
92 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
93 mv -f Makefile.new $(MAKEFILE)
96 rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
98 # DO NOT DELETE THIS LINE -- make depend depends on it.
100 rc4_enc.o: ../../e_os.h ../../include/openssl/bio.h
101 rc4_enc.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
102 rc4_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
103 rc4_enc.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
104 rc4_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
105 rc4_enc.o: ../../include/openssl/rc4.h ../../include/openssl/safestack.h
106 rc4_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
107 rc4_enc.o: ../cryptlib.h rc4_enc.c rc4_locl.h
108 rc4_fblk.o: ../../e_os.h ../../include/openssl/bio.h
109 rc4_fblk.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
110 rc4_fblk.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
111 rc4_fblk.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
112 rc4_fblk.o: ../../include/openssl/opensslconf.h
113 rc4_fblk.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
114 rc4_fblk.o: ../../include/openssl/rc4.h ../../include/openssl/safestack.h
115 rc4_fblk.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
116 rc4_fblk.o: ../cryptlib.h rc4_fblk.c rc4_locl.h
117 rc4_skey.o: ../../e_os.h ../../include/openssl/bio.h
118 rc4_skey.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
119 rc4_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
120 rc4_skey.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
121 rc4_skey.o: ../../include/openssl/opensslconf.h
122 rc4_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
123 rc4_skey.o: ../../include/openssl/rc4.h ../../include/openssl/safestack.h
124 rc4_skey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
125 rc4_skey.o: ../cryptlib.h rc4_locl.h rc4_skey.c