1# 2# OpenSSL/crypto/rc4/Makefile 3# 4 5DIR= rc4 6TOP= ../.. 7CC= cc 8CPP= $(CC) -E 9INCLUDES= 10CFLAG=-g 11AR= ar r 12 13RC4_ENC=rc4_enc.o rc4_skey.o 14 15CFLAGS= $(INCLUDES) $(CFLAG) 16ASFLAGS= $(INCLUDES) $(ASFLAG) 17AFLAGS= $(ASFLAGS) 18 19GENERAL=Makefile 20TEST=rc4test.c 21APPS= 22 23LIB=$(TOP)/libcrypto.a 24LIBSRC=rc4_skey.c rc4_enc.c 25LIBOBJ=$(RC4_ENC) 26 27SRC= $(LIBSRC) 28 29EXHEADER= rc4.h 30HEADER= $(EXHEADER) rc4_locl.h 31 32ALL= $(GENERAL) $(SRC) $(HEADER) 33 34top: 35 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) 36 37all: lib 38 39lib: $(LIBOBJ) 40 $(AR) $(LIB) $(LIBOBJ) 41 $(RANLIB) $(LIB) || echo Never mind. 42 @touch lib 43 44# ELF 45rx86-elf.s: asm/rc4-586.pl ../perlasm/x86asm.pl 46 (cd asm; $(PERL) rc4-586.pl elf $(CFLAGS) > ../$@) 47# COFF 48rx86-cof.s: asm/rc4-586.pl ../perlasm/x86asm.pl 49 (cd asm; $(PERL) rc4-586.pl coff $(CFLAGS) > ../$@) 50# a.out 51rx86-out.s: asm/rc4-586.pl ../perlasm/x86asm.pl 52 (cd asm; $(PERL) rc4-586.pl a.out $(CFLAGS) > ../$@) 53 54rc4-x86_64.s: asm/rc4-x86_64.pl; $(PERL) asm/rc4-x86_64.pl $@ 55 56rc4-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 > $@ ;; \ 60 *) exit 1 ;; \ 61 esac 62 63files: 64 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO 65 66links: 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) 70 71install: 72 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... 73 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ 74 do \ 75 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ 76 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ 77 done; 78 79tags: 80 ctags $(SRC) 81 82tests: 83 84lint: 85 lint -DLINT $(INCLUDES) $(SRC)>fluff 86 87depend: 88 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... 89 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) 90 91dclean: 92 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new 93 mv -f Makefile.new $(MAKEFILE) 94 95clean: 96 rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff 97 98# DO NOT DELETE THIS LINE -- make depend depends on it. 99 100rc4_enc.o: ../../e_os.h ../../include/openssl/bio.h 101rc4_enc.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 102rc4_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 103rc4_enc.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h 104rc4_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 105rc4_enc.o: ../../include/openssl/rc4.h ../../include/openssl/safestack.h 106rc4_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 107rc4_enc.o: ../cryptlib.h rc4_enc.c rc4_locl.h 108rc4_skey.o: ../../e_os.h ../../include/openssl/bio.h 109rc4_skey.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 110rc4_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 111rc4_skey.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h 112rc4_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 113rc4_skey.o: ../../include/openssl/rc4.h ../../include/openssl/safestack.h 114rc4_skey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 115rc4_skey.o: ../cryptlib.h rc4_locl.h rc4_skey.c 116